/* ============================================= */
/* SCROLL-DRIVEN HERO ANIMATION                  */
/* ============================================= */

/* Hero scroll container - creates scroll space for frame animation */
#hero-scroll-container {
    position: relative;
    background-color: #000000;
}

/* Canvas wrapper - gets pinned by GSAP ScrollTrigger */
#hero-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000000;
}

/* Canvas fills the wrapper */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Text Overlays ---- */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.hero-overlay a,
.hero-overlay button {
    pointer-events: auto;
}

.hero-overlay.active {
    opacity: 1;
}

/* Phase 1: Brand Intro */
/* Hero brand block (logo icon + text side by side) */
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-brand-icon {
    height: 64px;
    width: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.hero-brand-name {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hero-brand-sup {
    font-size: 0.625rem;
    font-weight: 600;
    color: #D4A847;
    margin-left: 2px;
    vertical-align: super;
}

.hero-brand-hindi {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -2px;
}

.hero-phase-1 .hero-tagline {
    font-size: 0.875rem;
    color: #D4A847;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-phase-1 .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator .arrow {
    display: inline-block;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Phase 2 & 3: Feature Text */
.hero-phase-2 .hero-content,
.hero-phase-3 .hero-content {
    max-width: 600px;
    padding: 0 2rem;
}

.hero-feature-label {
    font-size: 0.75rem;
    color: #D4A847;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-feature-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-feature-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Phase 4: CTA */
.hero-cta-content {
    text-align: center;
    max-width: 500px;
}

.hero-cta-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-cta-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 168, 71, 0.3);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    color: #D4A847;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-cta-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hero-cta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #E76F51;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta-btn:hover {
    background: #d4603f;
    transform: translateY(-2px);
}

/* ---- Background Transition Overlay ---- */
#hero-bg-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background: linear-gradient(to bottom, transparent, #FFFBF5);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

/* ---- Placeholder Mode ---- */
.hero-placeholder-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-placeholder-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 71, 0.15) 0%, transparent 70%);
    border: 1px solid rgba(212, 168, 71, 0.1);
    animation: placeholderPulse 4s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* ---- Loading Indicator ---- */
.hero-loading {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-loading-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.hero-loading-fill {
    height: 100%;
    background: #D4A847;
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
    .hero-phase-1 .hero-logo {
        height: 56px;
    }

    .hero-phase-2 .hero-content,
    .hero-phase-3 .hero-content {
        padding: 0 1.25rem;
    }

    .hero-cta-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-placeholder-circle {
        width: 200px;
        height: 200px;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    #hero-scroll-container {
        height: 100vh !important;
    }

    .hero-overlay {
        opacity: 1 !important;
        transition: none !important;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-placeholder-circle {
        animation: none;
    }

    @keyframes scrollBounce {
        0%, 100% { transform: none; }
    }
}
