/* =============================================
   Buck's Auto Care — Custom Styles
   ============================================= */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Space Grotesk', sans-serif;
}

/* =============================================
   Geometric Background Shapes
   ============================================= */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -200px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    border-radius: 50%;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 107, 74, 0.2);
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
    border-radius: 8px;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 107, 74, 0.1);
    bottom: 20%;
    right: 5%;
    transform: rotate(-15deg);
}

.geo-dots {
    background-image: radial-gradient(rgba(255, 107, 74, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    width: 200px;
    height: 200px;
    top: 60%;
    left: 3%;
    border-radius: 50%;
}

/* =============================================
   Navbar
   ============================================= */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled .nav-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* =============================================
   Mobile Menu
   ============================================= */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* =============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible 
    by default, JS adds animation class)
   ============================================= */
.scroll-reveal {
    /* Default: fully visible (works without JS) */
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Initial state for animated elements — 
       only applied via JS to avoid flash */
    .js .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* =============================================
   Custom Select Styling
   ============================================= */
select option {
    background: #2D2D2D;
    color: #fff;
}

/* =============================================
   Selection Color
   ============================================= */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

/* =============================================
   Focus Visible
   ============================================= */
:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

/* =============================================
   Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .geo-shape {
        animation: none;
    }
    
    button, a {
        transition: none;
    }
}
