
/* ========================
   CSS Variables
   ======================== */
:root {
    --primary-blue: #0048b8;
    --primary-teal: #2b8987;
    --gradient: linear-gradient(135deg, #0048b8 0%, #2b8987 100%);
    --bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   Reset & Base Styles
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
/* ========================
   Remove Horizontal Overflow
   ======================== */
body, html, header, main, section, footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* ========================
   Container
   ======================== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
}

@media (max-width: 768px) {
  .container-custom { padding: 0 1rem; }
}
/* ===========================
   MAIN CONTENT STYLES
   =========================== */
#mainContent {
    max-width: 100%;
    overflow-x: hidden;
}

.section {
    padding: 2rem 0;
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.section.active {
    display: block;
}

/* ========================
   CONTENT ANIMATIONS
   ======================== */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================
   Header
   ======================== */
.header-sticky {
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 6rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border-light);
    animation: slideDown 0.5s ease-out;
    overflow: visible; 
}

@media (max-width: 768px) {
  .header-sticky { padding: 0; }
}

.header-animate {
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-animate {
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================
   NAVIGATION BUTTONS
   ======================== */
.nav-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0048b8 0%, #2b8987 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 0.75rem;
}

.nav-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 72, 184, 0.3);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn.nav-active {
    background: linear-gradient(135deg, #0048b8 0%, #2b8987 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 72, 184, 0.4);
}

.nav-btn.nav-active::before {
    opacity: 1;
}

/* ========================
   MOBILE MENU
   ======================== */
.hamburger-icon {
    width: 28px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #0048b8 0%, #2b8987 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn:hover .hamburger-icon span {
    background: linear-gradient(135deg, #2b8987 0%, #0048b8 100%);
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;                /* BELOW header */
    right: 1rem;                 /* 🔥 force exact right */

    z-index: 10000;
    width: 280px;
    max-width: 90vw;

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);

    transform: translateY(-12px);
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        transform 0.35s ease;

}

.mobile-menu-dropdown.open {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* RIGHT */
}

.mobile-menu-item {
    width: 100%;
    max-width: 260px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;

    padding: 0.9rem 1.2rem;
    margin-bottom: 0.5rem;

    text-align: right;
    font-weight: 600;
    font-size: 1rem;

    color: #374151;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;

    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background: linear-gradient(135deg, #0048b8 0%, #2b8987 100%);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 72, 184, 0.3);
}

.mobile-menu-item i {
    font-size: 1.1rem;
}

/* ========================
   Hero Section
   ======================== */

.hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0;
}

@media (min-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
/* ========================
   GRADIENT TEXT
   ======================== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   BUTTONS
   ======================== */
.btn-primary {
    background: linear-gradient(135deg, #0048b8 0%, #2b8987 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 72, 184, 0.3);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


/* ========================
   Floating Card
   ======================== */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.floating-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.icon-large {
    font-size: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* ========================
   Stats Grid
   ======================== */

.admin-card {
    background: linear-gradient(135deg,  #0048b8 0%, #2b8987 100%);
    color: white;
}   

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================
   Section Titles
   ======================== */

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

/* ========================
   Features Section
   ======================== */

.features-section {
    margin: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gradient);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-card p {
    color: var(--white);
    line-height: 1.7;
}

/* ========================
   Marketplace Section
   ======================== */

#vehicleModal img{
    width: 100%;
    height: 100%;
}


/* ========================
   Dealership Section
   ======================== */

.dealership-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .dealership-content {
        grid-template-columns: 1fr 1fr;
    }
}

.dealership-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 2rem;
    border: 2px solid #00000084;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 72, 184, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.full-width {
    grid-column: 1 / -1;
}

/* ========================
   Benefits List
   ======================== */

.dealership-benefits {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.dealership-benefits h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.benefits-list i {
    color: #10b981;
    font-size: 1.5rem;
    flex-shrink: 0;

}

/* ===========================
   FOOTER STYLES
   =========================== */
.footer {
    background: var(--white);
    margin-top: 4rem;
    padding: 0 100px;
 
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.0rem;
    padding: 0 20px;
    margin-bottom: 2rem;
}

@media (max-width: 425px) {
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
    padding: 0 20px;
    margin-bottom: 2rem;
}
}

/* ===========================
   FLOATING WHATSAPP BUTTON
   =========================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    animation: pulseGlow 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
    }
}

/* ===========================
   ANIMATION CLASSES
   =========================== */

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.slide-up.delay-1 {
    animation: slideUp 0.6s ease-out 0.1s both;
}

.slide-up.delay-2 {
    animation: slideUp 0.6s ease-out 0.2s both;
}

.slide-up.delay-3 {
    animation: slideUp 0.6s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes horizontalLoop {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dealership-content {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========================
   GLASS EFFECT
   ======================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ========================
   UTILITY CLASSES
   ======================== */
.section-hidden {
    display: none;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0048b8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse-animation {
    animation: pulseFade 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseFade {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-active {
    background: #0048b8;
    color: white;
}

.step-completed {
    background: #2b8987;
    color: white;
}

/* ========================
   MAP ELEMENTS
   ======================== */
.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
}

.route-line {
    stroke: #0048b8;
    stroke-width: 3;
    stroke-dasharray: 10;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

/* ========================
   NOTIFICATION BADGE
   ======================== */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ========================
   CHARTS
   ======================== */
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gradient-text {
        font-size: 1.5rem;
    }
}

