/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal — progressive enhancement via prefers-reduced-motion */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* Selection */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Image hover */
img {
    display: block;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

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

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

/* Hero decorative elements animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-blob {
        animation: float 8s ease-in-out infinite;
    }
    .hero-blob:nth-child(2) {
        animation-delay: -3s;
        animation-duration: 10s;
    }
    .hero-blob:nth-child(3) {
        animation-delay: -5s;
        animation-duration: 12s;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -15px) scale(1.02); }
    50% { transform: translate(-5px, -25px) scale(0.98); }
    75% { transform: translate(15px, -10px) scale(1.01); }
}
