/**
 * Hero 3D Canvas Styles
 * Styles untuk hero section dengan 3D canvas dan scroll storytelling
 */

/* ========================================
   HERO SECTION (DARK HERO)
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 80px;
    overflow: hidden;
}

.dark-hero {
    position: relative;
    width: 100%;
}

/* ========================================
   SCROLL STORYTELLING SECTION (FIXED)
   ======================================== */

#scroll-storytelling-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    /* Smooth transition for seamless fade */
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 48px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(232, 224, 228, 0.85);
    margin-bottom: 64px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   3D CANVAS CONTAINER
   ======================================== */

.hero-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Smooth transitions for seamless effect */
    transition: opacity 0.8s ease-in-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.hero-3d-canvas canvas {
    width: 100%;
    height: 100%;
}

/* ========================================
   SECTIONS AFTER SCROLL SPACER
   ======================================== */

/* Ensure sections after scroll storytelling appear on top */
.dark-section {
    position: relative;
    z-index: 10;
}

/* ========================================
   TEXT GRADIENT
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, #E8E0E4 0%, #d6c753cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   KEYFRAMES
   ======================================== */

/* Starfield background animation */
@keyframes dark-starfield {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

/* Pulse animation for scroll indicator text */
@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Bounce animation for scroll indicator dot */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero {
        padding: 80px 24px 120px;
    }

    .hero-title {
        margin-bottom: 32px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 0;
    }

    /* Hero grid layout responsive */
    .hero-content > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .hero-content > div > div {
        text-align: left !important;
    }
}
