/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ── Smooth scroll offset for fixed nav ── */
section[id] { scroll-margin-top: 80px; }

/* ── Selection ── */
::selection { background: #0D9488; color: #fff; }

/* ── Navbar transition ── */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}
#navbar.scrolled .nav-logo-text { color: #0f172a; }
#navbar.scrolled .nav-link { color: #475569; }
#navbar.scrolled .nav-link:hover { color: #0D9488; }

/* ── Mobile menu animation ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding: 0;
}

/* ── Mobile link hover ── */
.mobile-link:hover { color: #0D9488; }

/* ── Button focus states ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Subtle image loading placeholder ── */
img {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .group:hover img { transform: none; }
    a:hover { transform: none; }
    .animate-bounce { animation: none; }
}
