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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal="delay-1"] { transition-delay: 0.1s; }
.reveal[data-reveal="delay-2"] { transition-delay: 0.2s; }
.reveal[data-reveal="delay-3"] { transition-delay: 0.3s; }
.reveal[data-reveal="delay-4"] { transition-delay: 0.4s; }

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

/* ===== Floating Card Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .card-float-1 {
        animation: float1 4s ease-in-out infinite;
    }
    .card-float-2 {
        animation: float2 5s ease-in-out infinite;
    }
    .card-float-3 {
        animation: float3 4.5s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.08), 0 4px 24px rgba(5, 150, 105, 0.06);
}

.nav-scrolled #navbar {
    border-bottom: 1px solid rgba(5, 150, 105, 0.06);
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064E3B;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
    background: #D1FAE5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A7F3D0;
}

/* ===== Focus Styles ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Mobile Menu Transition ===== */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== Smooth Image Loading ===== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
