/* ===== Base & Reset ===== */
*, *::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 ease, transform 0.7s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ===== Navbar Scrolled State ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #3a3c43 !important;
}

.nav-scrolled .nav-link:hover {
    color: #ff6b35 !important;
    background: #fff5f0 !important;
}

.nav-scrolled .font-heading,
.nav-scrolled span:first-child {
    color: #1e2025 !important;
}

/* ===== Selection ===== */
::selection {
    background: #ff6b35;
    color: #ffffff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a1a3aa;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Form Inputs ===== */
input::placeholder,
textarea::placeholder {
    color: #a1a3aa;
}

/* ===== Mobile Menu Animation ===== */
#mobileMenu.open {
    max-height: 500px;
}

/* ===== Button Ripple Effect (subtle) ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}
