/* ===== Base & Utilities ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Navbar transition ===== */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 31, 46, 0.08);
}
#navbar.scrolled .text-midnight-900 { color: #0a1f2e !important; }
#navbar.scrolled .text-midnight-700 { color: #1f4461 !important; }
#navbar.scrolled .text-midnight-600 { color: #2d5a7f !important; }

/* ===== Mobile menu ===== */
.mobile-link {
    display: block;
}

/* ===== Service cards ===== */
.service-card {
    will-change: transform;
}

/* ===== Button focus states ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #eef4f9; }
::-webkit-scrollbar-thumb { background: #a9c4dc; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #7fa9cb; }

/* ===== Selection ===== */
::selection { background: #99f6db; color: #0a1f2e; }
</style>
