/* Base & Utilities */
:root {
    --color-teal-700: #0f766e;
    --color-teal-600: #14b8a6;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    overflow-x: hidden;
}

/* Scroll reveal base — content always visible by default */
.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);
}

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

/* Reduced motion: disable all transitions */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* Navbar */
.navbar-scrolled #navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.navbar-scrolled .nav-brand-text {
    color: #0f172a;
}

.navbar-scrolled .nav-link {
    color: #475569;
}

.navbar-scrolled .nav-link:hover {
    color: #0f766e;
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Selection color */
::selection {
    background: rgba(15, 118, 110, 0.15);
    color: #0f766e;
}

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

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
