/* ============================================
   HERO ENTRANCE ANIMATION - Premium Style
   ============================================
   CSS-only sequenced entrance animations.
   Timing: 3 second delay to sync with video.
   ============================================ */

/* ============================================
   INITIAL STATE - Hidden
   ============================================ */
section.video-hero .hero-entrance .video-hero__title,
section.video-hero .hero-entrance .video-hero__subtitle,
section.video-hero .hero-entrance .video-hero__tagline,
section.video-hero .hero-entrance .video-hero__buttons {
    opacity: 0;
    transform: translateY(30px);
}

section.video-hero .video-hero__scroll {
    opacity: 0;
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -55%) scale(0.8);
    }
    to {
        opacity: 0.7;
        transform: translate(-50%, -55%) scale(1.1);
    }
}

/* ============================================
   AMBIENT GLOW
   ============================================ */
.hero-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 700px;
    height: 450px;
    background: radial-gradient(ellipse at center, rgba(245, 240, 230, 0.12) 0%, transparent 70%);
    z-index: 3;
    opacity: 0;
    filter: blur(80px);
    pointer-events: none;
    animation: glowReveal 1.5s ease-out 2.8s forwards;
}

/* ============================================
   SEQUENCED ANIMATIONS
   Title: 3s | Subtitle: 3.6s | Tagline: 3.8s | Buttons: 4s | Scroll: 4.3s
   ============================================ */
section.video-hero .hero-entrance .video-hero__title {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
}

section.video-hero .hero-entrance .video-hero__subtitle {
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 3.6s forwards;
}

section.video-hero .hero-entrance .video-hero__tagline {
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 3.8s forwards;
}

section.video-hero .hero-entrance .video-hero__buttons {
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 4s forwards;
}

section.video-hero .video-hero__scroll {
    animation: heroFadeUp 0.5s ease-out 4.3s forwards;
}

/* ============================================
   GRADIENT TITLE TEXT
   ============================================ */
section.video-hero .hero-entrance .video-hero__title {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0e6 50%, #e8dcc8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blue highlight for "just checking in" */
section.video-hero .hero-entrance .video-hero__title .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

/* ============================================
   GLASS BUTTON EFFECT
   ============================================ */
section.video-hero .hero-entrance .video-hero__btn--primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 4px 30px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

section.video-hero .hero-entrance .video-hero__btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

section.video-hero .hero-entrance .video-hero__btn--primary span,
section.video-hero .hero-entrance .video-hero__btn--primary svg {
    position: relative;
    z-index: 1;
}

section.video-hero .hero-entrance .video-hero__btn--primary:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow:
        0 20px 50px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] .hero-ambient-glow {
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
}

[data-theme="light"] section.video-hero .hero-entrance .video-hero__title {
    background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #3f3f46 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] section.video-hero .hero-entrance .video-hero__title .highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    section.video-hero .hero-entrance .video-hero__title,
    section.video-hero .hero-entrance .video-hero__subtitle,
    section.video-hero .hero-entrance .video-hero__tagline,
    section.video-hero .hero-entrance .video-hero__buttons,
    section.video-hero .video-hero__scroll,
    .hero-ambient-glow {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .hero-ambient-glow {
        width: 400px;
        height: 300px;
        filter: blur(60px);
    }

    section.video-hero .hero-entrance .video-hero__title,
    section.video-hero .hero-entrance .video-hero__subtitle,
    section.video-hero .hero-entrance .video-hero__tagline,
    section.video-hero .hero-entrance .video-hero__buttons {
        transform: translateY(20px);
    }
}
