html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Simple utility for showing/hiding pages */
.page-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-content.active {
    display: block;
    opacity: 1;
}

/* ========== SCROLL-TRIGGERED ANIMATIONS ========== */

/* Base state for all animated elements — hidden until triggered */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].animated {
    opacity: 1;
    transform: none !important;
}

/* Fade in from bottom */
[data-animate="fade-up"] {
    transform: translateY(60px);
}

/* Fade in from left */
[data-animate="fade-right"] {
    transform: translateX(-60px);
}

/* Fade in from right */
[data-animate="fade-left"] {
    transform: translateX(60px);
}

/* Fade in (no movement) */
[data-animate="fade-in"] {
    transform: none;
}

/* Scale up from small */
[data-animate="zoom-in"] {
    transform: scale(0.85);
}

/* Slide up with more distance */
[data-animate="slide-up"] {
    transform: translateY(100px);
}

/* Stagger delay classes */
[data-delay="100"] {
    transition-delay: 100ms;
}

[data-delay="200"] {
    transition-delay: 200ms;
}

[data-delay="300"] {
    transition-delay: 300ms;
}

[data-delay="400"] {
    transition-delay: 400ms;
}

[data-delay="500"] {
    transition-delay: 500ms;
}

[data-delay="600"] {
    transition-delay: 600ms;
}

[data-delay="700"] {
    transition-delay: 700ms;
}

[data-delay="800"] {
    transition-delay: 800ms;
}

/* Duration variants */
[data-duration="fast"] {
    transition-duration: 0.5s;
}

[data-duration="slow"] {
    transition-duration: 1.2s;
}

/* ========== HERO ANIMATIONS ========== */

/* Ken Burns slow zoom on hero background image */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-bg-animate {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Hero text reveal — staggered cascade */
@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-reveal>* {
    opacity: 0;
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-text-reveal>*:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-text-reveal>*:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-text-reveal>*:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-text-reveal>*:nth-child(4) {
    animation-delay: 0.8s;
}

.hero-text-reveal>*:nth-child(5) {
    animation-delay: 1.0s;
}

.hero-text-reveal>*:nth-child(6) {
    animation-delay: 1.2s;
}

/* ========== COUNTER ANIMATION ========== */

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.counter-done {
    animation: countPulse 0.4s ease-out;
}

/* ========== ENHANCED HOVER EFFECTS ========== */

/* Card lift on hover */
.card-hover {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Icon float animation on hover */
.icon-float {
    transition: transform 0.3s ease;
}

.card-hover:hover .icon-float {
    transform: translateY(-4px);
}

/* ========== SMOOTH SECTION DIVIDERS ========== */

/* Floating element animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Subtle pulse glow for CTA */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 60px rgba(245, 158, 11, 0.2);
    }
}

.cta-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ========== PARALLAX HELPERS ========== */

.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ========== LEGACY ANIMATIONS (keep for compatibility) ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ========== TEXT GRADIENT SHIMMER ========== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 25%, #fff 50%, #fbbf24 75%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}