/* ============================================================
   EASYTIMELINE — ANIMATIONS & PARALLAX
   ============================================================ */

/* ============================================================
   PARALLAX LAYERS
   ============================================================ */
.parallax-bg {
    will-change: transform;
    transition: transform 0.05s linear;
}

.parallax-slow {
    --parallax-speed: 0.3;
}

.parallax-mid {
    --parallax-speed: 0.6;
}

/* ============================================================
   HERO PARALLAX LAYERS
   ============================================================ */
.hero-layer-back {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
}

.hero-layer-mid {
    position: relative;
    z-index: 1;
    will-change: transform;
}

.hero-layer-front {
    position: relative;
    z-index: 2;
    will-change: transform;
}

/* ============================================================
   SECTION ENTRANCE TRANSITIONS
   ============================================================ */
.section-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.in-view>*:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

.stagger-children.in-view>*:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.1s;
}

.stagger-children.in-view>*:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.2s;
}

.stagger-children.in-view>*:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.3s;
}

.stagger-children.in-view>*:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

.stagger-children.in-view>*:nth-child(6) {
    opacity: 1;
    transform: none;
    transition-delay: 0.5s;
}

/* ============================================================
   HERO ENTRANCE ANIMATION
   ============================================================ */
.hero-animate-in .hero-badge {
    animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-animate-in .hero-headline {
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-animate-in .hero-sub {
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-animate-in .hero-actions {
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-animate-in .hero-social-proof {
    animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-animate-in .hero-visual {
    animation: scaleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) rotateY(-8deg) rotateX(4deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotateY(-8deg) rotateX(4deg);
    }
}

/* ============================================================
   3D TILT CARD EFFECT
   ============================================================ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ============================================================
   MAGNETIC BUTTON
   ============================================================ */
.magnetic-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   NEON TEXT FLICKER
   ============================================================ */
.neon-flicker {
    animation: neon-flicker 5s ease-in-out infinite;
}

@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green),
            0 0 40px var(--neon-green);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

/* ============================================================
   GLOW BORDER ANIMATION
   ============================================================ */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg,
            var(--neon-green) 0%,
            transparent 40%,
            transparent 60%,
            var(--neon-green) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(2px);
}

.glow-border:hover::after {
    opacity: 0.6;
}

/* ============================================================
   PRICING CARD FLOATING PARTICLES
   ============================================================ */
.pricing-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite;
    box-shadow: 0 0 6px rgba(0, 255, 102, 0.8);
}

@keyframes particle-float {
    0% {
        transform: translateY(100%) translateX(0px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-200%) translateX(var(--drift, 20px));
        opacity: 0;
    }
}

/* ============================================================
   CTA SECTION GLOW INTENSIFY ON SCROLL
   ============================================================ */
.cta-glow-intensify {
    transition: opacity 0.8s ease;
}

.final-cta.in-view .cta-bg {
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 255, 102, 0.18) 0%, transparent 70%),
        var(--bg-primary);
}

/* ============================================================
   HEADER SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
    z-index: 9999;
    transition: width 0.1s linear;
    width: 0%;
}

/* ============================================================
   HOVER UNDERLINE ANIMATION
   ============================================================ */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), transparent);
    margin: 24px 0;
    border-radius: var(--radius-full);
}

.section-divider.center {
    margin: 24px auto;
}

/* ============================================================
   BADGE ANIMATIONS
   ============================================================ */
.badge-glow {
    animation: badge-glow-pulse 3s ease-in-out infinite;
}

@keyframes badge-glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
    }
}

/* ============================================================
   MOBILE NAV MENU
   ============================================================ */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--neon-green);
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.mobile-nav-close:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* ============================================================
   HORIZONTAL SCROLL INDICATOR
   ============================================================ */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    justify-content: center;
}

.scroll-hint-arrow {
    animation: slide-right 1.5s ease-in-out infinite;
}

@keyframes slide-right {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}