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

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

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

#navbar.scrolled {
    background: rgba(13, 148, 136, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-text {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .nav-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Mobile Menu ── */
.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #0d9488;
}

/* ── Scroll Reveal (Progressive Enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Stagger children */
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* When JS is disabled, everything is visible */
.no-js .scroll-reveal,
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* ── Form Styling ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Selection ── */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ── Responsive Tweaks ── */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}
