/* Custom styles supplementing Tailwind */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero animations — above-the-fold content is visible by default */
.hero-eyebrow {
    animation: fadeDown 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeUp 0.9s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeUp 0.9s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeUp 0.9s ease-out 0.8s both;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section eyebrow */
.section-eyebrow {
    letter-spacing: 0.2em;
}

/* Reveal animations — below the fold only, progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

.mobile-nav-link {
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #5eead4;
}

/* Image hover parallax-lite */
.group img {
    will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #f0fdfa;
}
