/* ─── Base Reset & Utilities ─── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 9999;
}

/* ─── Navbar ─── */
.nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(4, 15, 36, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Mobile menu button */
.mobile-menu-btn .menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

.mobile-menu {
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.mobile-menu.closed {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ─── Hero Floating Cards ─── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}
.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}
.floating-card:nth-child(3) {
    animation-delay: -3s;
}

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

/* ─── Service Cards ─── */
.service-card {
    opacity: 1;
}

/* ─── Approach Cards ─── */
.approach-card {
    opacity: 1;
}

/* ─── Scroll Reveal (below fold only) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040F24; }
::-webkit-scrollbar-thumb { background: rgba(126, 205, 168, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(126, 205, 168, 0.35); }

/* ─── Selection ─── */
::selection { background: rgba(126, 205, 168, 0.25); color: #F0FBF6; }
