/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0A;
    color: #F5F5F5;
    overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A017;
}

/* ===== Navigation ===== */
#navbar {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Nav link underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #D4A017;
    transition: width 300ms ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
#hero-bg img {
    will-change: transform;
}

/* Scroll indicator bounce */
.scroll-indicator {
    animation: bounce-down 2s infinite ease-in-out;
}

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

/* ===== Service Cards ===== */
.service-card {
    will-change: transform, box-shadow;
}

/* ===== Area Pills ===== */
.area-pill {
    will-change: transform;
}

/* ===== Selection ===== */
::selection {
    background-color: #D4A017;
    color: #0A0A0A;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 300ms ease, opacity 300ms ease;
}

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

/* ===== GSAP Animation Initial States ===== */
.gsap-fade-up,
.gsap-scale-in {
    opacity: 0;
}

/* Only hide elements that haven't been animated yet */
.gsap-fade-up.animated,
.gsap-scale-in.animated {
    opacity: 1;
}

/* ===== Responsive Typography Adjustments ===== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 36px !important;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
