/* ===== Base & Utilities ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ===== Scroll Reveal ===== */
.scroll-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);
}

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

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

/* ===== Floating Card Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float-slow-1 6s ease-in-out infinite;
    }
    .floating-card-2 {
        animation: float-slow-2 7s ease-in-out infinite;
    }
    .floating-card-3 {
        animation: float-slow-3 5s ease-in-out infinite;
    }
}

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

@keyframes float-slow-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(242, 251, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .nav-logo-text {
    color: #0d1f33;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    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);
    }
}

/* ===== Button Micro-interactions ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Selection ===== */
::selection {
    background: #bcebd8;
    color: #0d1f33;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2fbf8;
}
::-webkit-scrollbar-thumb {
    background: #a8bdd4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c9ac0;
}
