/* ============================================
   Noisy Boy Mufflers — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(232, 85, 51, 0.3);
    color: #fefdf8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e85533;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(0px);
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* ============================================
   Hero
   ============================================ */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 { animation-delay: 0s; }
.orb-2 { animation-delay: -3s; }
.orb-3 { animation-delay: -5s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-badge {
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeSlideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeSlideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Section Labels & Titles
   ============================================ */
.section-label {
    position: relative;
}

.section-title {
    line-height: 1.1;
}

.section-desc {
    line-height: 1.7;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.service-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   About Section
   ============================================ */
.about-image-container {
    opacity: 1;
    transform: translateX(0);
}

.about-image-container.reveal {
    opacity: 0;
    transform: translateX(-40px);
}

.about-image-container.reveal.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ============================================
   Why Us Cards
   ============================================ */
.why-card {
    opacity: 1;
    transform: translateY(0);
}

.why-card.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.why-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

/* ============================================
   Contact Form
   ============================================ */
select option {
    background: #1a1a1a;
    color: #fdf8e8;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    @media (min-width: 768px) {
        .hero-title {
            font-size: 3.5rem;
        }
    }
    
    @media (min-width: 1024px) {
        .hero-title {
            font-size: 4.5rem;
        }
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-stats {
        opacity: 1;
        animation: none;
    }
    
    .service-card.reveal,
    .about-image-container.reveal,
    .why-card.reveal {
        opacity: 1;
        transform: none;
    }
}
