/* ============================================
   BHOPAL BIKE GALLERY - MAIN STYLESHEET
   ============================================
   
   Table of Contents:
   1. CSS Variables & Root Styles
   2. Base & Reset Styles
   3. Scrollbar Customization
   4. Navigation Styles (#navbar)
   5. Hero Section (#home)
   6. Stats Section (#stats)
   7. Inventory Section (#inventory)
   8. Bike Cards (.bike-card)
   9. Filters (.filter-select)
   10. Modal (#bike-modal)
   11. Testimonials (#testimonials)
   12. Sell Section (#sell)
   13. Services Section (#services)
   14. Contact Section (#contact)
   15. Footer (footer)
   16. Utility Classes
   17. Animations
   18. Media Queries

============================================ */


/* ============================================
   1. CSS VARIABLES & ROOT STYLES
============================================ */

:root {
    /* Brand Colors */
    --color-brand: #E53935;
    --color-brand-dark: #C62828;
    --color-accent: #FF6D00;
    
    /* Background Colors */
    --color-dark: #121212;
    --color-card: #1A1A1A;
    --color-darker: #0a0a0a;
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    
    /* Border Colors */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.05);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-brand: 0 4px 14px rgba(229, 57, 53, 0.4);
}


/* ============================================
   2. BASE & RESET STYLES
============================================ */

/* #body - Main body styles */
body {
    background-color: var(--color-dark);
    color: var(--color-text-primary);
    overflow-x: hidden;
    font-family: 'Barlow', sans-serif;
}


/* ============================================
   3. SCROLLBAR CUSTOMIZATION
============================================ */

/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand);
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ============================================
   4. NAVIGATION STYLES (#navbar)
============================================ */

/* #navbar - Main navigation bar */
/* Glass effect applied on scroll via JavaScript */
.glass-nav {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

/* .nav-link - Desktop navigation links */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

/* .mobile-link - Mobile navigation links */
.mobile-link {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: var(--spacing-sm);
    display: block;
}


/* ============================================
   5. HERO SECTION (#home)
============================================ */

/* Hero section is primarily styled with Tailwind classes in HTML */
/* Additional custom styles below */


/* ============================================
   6. STATS SECTION (#stats)
============================================ */

/* #stats - Statistics counter bar at bottom of hero */
/* Responsive grid adjustments */
@media (max-width: 768px) {
    #stats > div {
        flex-wrap: wrap;
        gap: 12px;
    }

    #stats > div > div {
        flex: 1 1 45%;
        border-right: none !important;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 10px;
    }

    #stats h4 {
        font-size: 1.5rem;
    }

    #stats p {
        font-size: 0.7rem;
    }
}

/* Mobile spacing improvements */
@media (max-width: 768px) {
    /* Space between buttons and stats */
    #home .flex-wrap {
        margin-bottom: 28px;
    }

    /* Push stats down */
    #stats {
        margin-top: 20px;
    }

    /* Space inside stats cards */
    #stats > div > div {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}


/* ============================================
   7. INVENTORY SECTION (#inventory)
============================================ */

/* #bike-grid - Grid container for bike cards */
/* Grid layout handled by Tailwind classes */


/* ============================================
   8. BIKE CARDS (.bike-card)
============================================ */

/* .bike-card - Individual bike listing card */
.bike-card {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.bike-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
}

/* .brand-tag - Brand label on bike cards */
.brand-tag {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background-color: var(--color-brand);
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-sm);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

/* .card-view-btn - View button on bike cards */
.card-view-btn {
    background: linear-gradient(135deg, var(--color-brand), #FF5252);
    color: var(--color-text-primary);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-brand);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.card-view-btn:hover {
    background: linear-gradient(135deg, var(--color-brand-dark), var(--color-brand));
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    transform: translateY(-1px) scale(1.04);
}

.card-view-btn:active {
    transform: scale(0.97);
}


/* ============================================
   9. FILTERS (.filter-select)
============================================ */

/* .form-input, .filter-select - Form inputs and filter dropdowns */
.form-input,
.filter-select {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.filter-select:focus {
    border-color: var(--color-brand);
}


/* ============================================
   10. MODAL (#bike-modal)
============================================ */

/* #bike-modal - Bike detail popup modal */
/* .thumb-btn - Thumbnail buttons in modal gallery */
.thumb-btn {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn:hover {
    opacity: 1;
}

.thumb-btn.active {
    border-color: var(--color-brand);
    opacity: 1;
    transform: scale(1.05);
}


/* ============================================
   11. TESTIMONIALS (#testimonials)
============================================ */

/* #testimonials - Rider stories section */
/* #testimonial-card - Main testimonial card container */
#testimonial-card {
    min-height: 440px;
}

/* .testimonial-img-box - Image container for testimonial */
.testimonial-img-box {
    width: 100%;
    max-height: 470px;
    min-height: 320px;
    background: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
}

/* .testimonial-img - Testimonial image */
.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Mobile responsive testimonial box */
@media (max-width: 1024px) {
    .testimonial-img-box {
        max-height: 260px;
        min-height: 220px;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    }
}

/* .testimonial-text-box - Text content area for testimonials */
.testimonial-text-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111, #1a1a1a);
    min-height: 420px;
    padding: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .testimonial-text-box {
        min-height: 260px;
        padding: 24px;
    }
}

/* .nav-btn - Navigation buttons for testimonial slider */
.nav-btn {
    padding: var(--spacing-lg);
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    color: var(--color-text-primary);
}

.nav-btn:hover {
    border-color: var(--color-brand);
    background-color: rgba(229, 57, 53, 0.1);
}


/* ============================================
   12. SELL SECTION (#sell)
============================================ */

/* #sell - Sell your bike section */
/* #sell-form - Quote request form */
/* #sell-success - Success message after form submission */
/* Form inputs use .form-input class defined above */


/* ============================================
   13. SERVICES SECTION (#services)
============================================ */

/* .service-card - Individual service cards */
.service-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: rgba(229, 57, 53, 0.3);
    transform: translateY(-5px);
}


/* ============================================
   14. CONTACT SECTION (#contact)
============================================ */

/* .showroom-title - Section heading for showroom */
.showroom-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
    margin-top: 40px;
    margin-bottom: 10px;
}

.showroom-title span {
    color: var(--color-brand);
}

/* Red underline bar */
.showroom-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 70px;
    height: 4px;
    background: var(--color-brand);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .showroom-title {
        font-size: 2rem;
        margin-top: 25px;
    }
}

/* .contact-link - Contact info links */
.contact-link {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-link:hover {
    color: var(--color-brand);
}

/* .location-link - Location link styling */
.location-link {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.location-link:hover {
    color: var(--color-brand);
}

/* .map-box - Google Maps container */
.map-box {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

/* .map-location-btn - Floating button on map */
.map-location-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: linear-gradient(135deg, var(--color-brand), #FF5252);
    color: var(--color-text-primary);
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: var(--transition-normal);
}

.map-location-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--color-brand-dark), var(--color-brand));
}


/* ============================================
   15. FOOTER (footer)
============================================ */

/* Footer is primarily styled with Tailwind classes in HTML */


/* ============================================
   16. UTILITY CLASSES
============================================ */

/* .fade-up - Fade up animation utility */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* .animate-popup - Modal popup animation */
.animate-popup {
    animation: popup 0.3s ease-out;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* ============================================
   17. ANIMATIONS
============================================ */

/* Animations are handled via GSAP in JavaScript */
/* ScrollTrigger animations defined in js/main.js */


/* ============================================
   18. MEDIA QUERIES
============================================ */

/* Additional responsive adjustments */

/* Tablet and below */
@media (max-width: 1024px) {
    /* Adjustments for tablets */
}

/* Mobile */
@media (max-width: 768px) {
    /* Adjustments for mobile */
}

/* Small mobile */
@media (max-width: 480px) {
    /* Adjustments for small screens */
}


/* Category Filter Buttons */

.category-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.active-category {
  background: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
  box-shadow: 0 0 12px rgba(229,57,53,0.6);
}
/* ===============================
   Premium Segmented Control
   =============================== */

.category-wrapper {
  display: flex;
  align-items: center;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;

  padding: 8px;
  gap: 6px;

  width: fit-content;
  min-width: 420px;

  margin: 28px auto 40px;

  backdrop-filter: blur(10px);

  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.08),
    0 10px 30px rgba(0,0,0,0.6);
}


/* Segment Button */
.segment-btn {
  flex: 1;

  padding: 14px 26px;

  border-radius: 999px;
  background: transparent;

  color: rgba(255,255,255,0.85);

  font-size: 15px;
  font-weight: 600;

  letter-spacing: 0.3px;

  border: none;
  cursor: pointer;

  transition: all 0.35s cubic-bezier(.4,0,.2,1);

  position: relative;
  overflow: hidden;
}


/* Hover Effect */
.segment-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}


/* Active Segment */
.active-segment {
  background: linear-gradient(
    135deg,
    var(--color-brand),
    #ff3d3d
  );

  color: #fff;

  box-shadow:
    0 6px 20px rgba(229,57,53,0.7),
    inset 0 2px 4px rgba(255,255,255,0.25);

  transform: scale(1.06);
}


/* Glow Animation */
.active-segment::after {
  content: "";

  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.35),
    transparent 70%
  );

  opacity: 0.6;
}


/* Mobile Optimization */
@media (max-width: 640px) {

  .category-wrapper {
    min-width: 95%;
    padding: 6px;
  }

  .segment-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}





/* ===============================
   HERO TEXT REVEAL
================================ */

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    animation: revealHero 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

@keyframes revealHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===============================
   PARALLAX BACKGROUND
================================ */

#home .absolute.inset-0 img {
    will-change: transform;
    transition: transform 0.1s linear;
}


/* ===============================
   BIKE HEADLIGHT GLOW
================================ */

.bike-headlight {
    position: relative;
    filter: brightness(0.9);
    animation: headlightPulse 3s ease-in-out infinite;
}

@keyframes headlightPulse {

    0% {
        filter: brightness(0.9);
        box-shadow: none;
    }

    50% {
        filter: brightness(1.2);
        box-shadow:
            0 0 40px rgba(255,255,255,0.4),
            0 0 80px rgba(229,57,53,0.3);
    }

    100% {
        filter: brightness(0.9);
        box-shadow: none;
    }
}
/* ===============================
   EMI SECTION
================================ */

.emi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Left Panel */
.emi-controls {
    background: linear-gradient(135deg,#0f0f0f,#1a1a1a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 30px;
}

.emi-group {
    margin-bottom: 22px;
}

.emi-group label {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 6px;
}

.emi-group input {
    width: 100%;
    accent-color: #E53935;
}

.emi-group span {
    display: block;
    text-align: right;
    margin-top: 4px;
    font-size: 14px;
}

/* Result */
.emi-result-box {
    margin-top: 20px;
    padding: 14px;
    text-align: center;

    background: rgba(229,57,53,0.15);
    border-radius: 12px;

    font-weight: bold;
    color: #E53935;
}

.emi-result-box span {
    display: block;
    font-size: 22px;
    margin-top: 6px;
}


/* Right Panel */
.emi-chart {
    background: linear-gradient(135deg,#111,#1a1a1a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 30px;

    text-align: center;
}

.emi-chart canvas {
    max-width: 280px;
    margin: auto;
}

.emi-summary {
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}

.emi-summary p {
    margin-bottom: 6px;
}

.emi-summary span {
    color: #fff;
    font-weight: 600;
}


/* Mobile */
@media(max-width:768px){

    .emi-wrapper {
        grid-template-columns: 1fr;
    }

}


/* ===============================
   SELL FORM DESKTOP POLISH
================================ */

/* Improve padding on large screens */
@media (min-width: 1024px) {

    #sell-container {
        padding: 48px 44px !important;
    }

    /* Heading spacing */
    #sell-container h3 {
        margin-bottom: 28px;
        padding-top: 6px;
        font-size: 26px;
        letter-spacing: 0.3px;
    }

    /* Input spacing */
    #sell-container .form-input {
        padding: 16px 18px;
        font-size: 15px;
    }

    /* Button spacing */
    #sell-container button[type="submit"] {
        margin-top: 22px;
        padding: 16px;
        font-size: 17px;
    }
}
/* ===============================
   YOUTUBE SHORTS
================================ */

.shorts-row {
    display: flex;
    gap: 24px;

    overflow-x: auto;
    padding-bottom: 12px;

    scroll-snap-type: x mandatory;
}

.shorts-row::-webkit-scrollbar {
    height: 6px;
}

.shorts-row::-webkit-scrollbar-thumb {
    background: var(--color-brand);
    border-radius: 5px;
}

/* Individual Card */
.short-card {
    flex: 0 0 220px;
    height: 390px;

    background: #000;
    border-radius: 18px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.08);

    scroll-snap-align: start;

    transition: all 0.3s ease;
}

.short-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 25px rgba(229,57,53,0.4);
}

/* Video */
.short-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile */
@media(max-width:768px){

    .short-card{
        flex: 0 0 180px;
        height: 320px;
    }

}
.whatsapp-float{
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
}
a:hover {
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
}
/* ===============================
   YOUTUBE SHORTS – FINAL ALIGNMENT
================================ */

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;

  max-width: 1200px;
  margin: 0 auto;          /* center section */
  padding: 20px 16px 60px; /* spacing */
}

.short-card {
  width: 100%;
  height: 390px;

  background: #000;
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.short-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(229,57,53,0.4);
}

.short-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile */
@media (max-width: 768px) {
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .short-card {
    height: 300px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .shorts-grid {
    grid-template-columns: 1fr;
  }
}
