/* Root Variables */
:root {
    --primary-gray: #4A4A4A;
    --secondary-gray: #696969;
    --light-gray: #C0C0C0;
    --dark-silver: #A8A8A8;
    --medium-silver: #B8B8B8;
    --light-silver: #D3D3D3;
    --dark-gray: #2C2C2C;
    --medium-gray: #6B6B6B;
    --light-bg: #F8F8F8;
    --white: #ffffff;
    --black: #000000;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    /* V2 Theme Variables */
    --primary-v2: #1a1a1a;
    --accent-v2: #4a90e2;
    --silver-v2: #f1f3f5;
    --transition-v2: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition: all 0.3s ease;
    --primary-red: #ff385c;
    --primary-blue: #4a90e2;
    --secondary-blue: #357abd;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    /* allow horizontal scroll when needed on data-heavy views like dashboard */
    overflow-x: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.navbar {
    padding: 0.3rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gray);
}

.nav-logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    margin-right: 0.5rem;
    object-fit: cover;
    border: 2px solid var(--light-silver);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu.hidden {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gray);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-red);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Adaptive nav colors when header overlays a dark section */
.header.nav-dark {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}
.header.nav-dark .nav-link {
    color: #e5e7eb;
}
.header.nav-dark .nav-link:hover {
    color: #ffffff;
}
.header.nav-dark .nav-link::after {
    background-color: #ffffff;
}
.header.nav-dark .nav-logo,
.header.nav-dark .logo-text {
    color: #f3f4f6;
}
.header.nav-dark .nav-logo img {
    border-color: rgba(255, 255, 255, 0.35);
}

.admin-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header.nav-dark .bar {
    background-color: #ffffff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Stronger overlay for better text contrast */
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.6;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gray), var(--secondary-gray), var(--dark-silver));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, var(--secondary-gray), var(--primary-gray), var(--medium-silver));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--white), var(--light-silver));
    color: var(--primary-gray);
    border: 2px solid var(--light-silver);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--light-silver), var(--medium-silver));
    color: var(--dark-gray);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.6);
}

.feature-item i {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.feature-item span {
    font-weight: 600;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-section .section-subtitle,
.contact-section .section-subtitle {
    color: #9ca3af;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #111827 35%, #1f2937 70%, #0b1220 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 40% 40%, rgba(148, 163, 184, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.why-choose-us::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    /* Angular cut-corners using clip-path */
    --cut: 24px;
    position: relative;
    padding: 2.75rem 2.25rem;
    text-align: center;
    background: 
        /* subtle geometric pattern */
        repeating-linear-gradient(45deg, rgba(255,255,255,0.25) 0 2px, rgba(255,255,255,0.05) 2px 6px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.10),
        0 2px 10px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.35);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}

.feature-card:hover::before {
    left: 140%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Animated gradient border using mask */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px; /* border width */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(59, 130, 246, 0.5), rgba(56, 189, 248, 0.5));
        -webkit-mask:
            linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask:
            linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
                        mask-composite: exclude;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    opacity: .6;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4A90E2 0%, #6BB6FF 50%, #357ABD 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow:
        0 8px 25px rgba(74, 144, 226, 0.3),
        0 4px 12px rgba(74, 144, 226, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4A90E2, #6BB6FF, #357ABD);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.3;
}

.feature-icon i {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2C2C2C 0%, #4A4A4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
    transition: color 0.3s ease;
}

.feature-card:hover p {
    color: #475569;
}

/* Cars Section */
.cars-section {
    padding: 1rem 0 8rem; /* extend bottom space to avoid overlap */
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at -10% 10%, rgba(148, 163, 184, 0.18), transparent 60%),
        radial-gradient(900px 500px at 110% 0%, rgba(203, 213, 225, 0.22), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    z-index: 2; /* keep above following section if they visually overlap */
}

.cars-section::before,
.cars-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* subtle dot grid overlay */
.cars-section::after {
    background: radial-gradient(rgba(100, 116, 139, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
}

/* soft gradient blobs */
.cars-section::before {
    background:
        radial-gradient(280px 180px at 15% 80%, rgba(99, 102, 241, 0.15), transparent 60%),
        radial-gradient(260px 200px at 85% 25%, rgba(14, 165, 233, 0.14), transparent 60%);
    filter: blur(2px);
}

.cars-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.car-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(203, 213, 225, 0.2);
    backdrop-filter: blur(10px);
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.car-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-silver), var(--medium-silver), var(--dark-silver));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.car-image i {
    font-size: 4rem;
    color: var(--primary-gray);
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-info {
    padding: 1.5rem;
}

.car-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.car-model {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.car-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.car-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.car-detail i {
    color: var(--primary-red);
}

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-period {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.availability {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.available {
    background: #dcfce7;
    color: #166534;
}

.unavailable {
    background: var(--light-red);
    color: var(--primary-red);
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--medium-gray);
    width: 100%;
}

.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: #0f172a; /* Darker Slate */
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.reviews-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.reviews-grid-wrapper {
    margin-top: 4rem;
    position: relative;
    overflow: hidden; /* Hide the overflow for rolling effect */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 3rem 0;
    /* Edge fade effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Rolling Marquee Container */
.reviews-grid {
    display: flex;
    gap: 2rem;
    width: max-content; /* Allow content to dictate width */
    animation: scroll 40s linear infinite;
}

.reviews-grid:hover {
    animation-play-state: paused; /* Stop on hover for readability */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move half the double-content width */
    }
}

.review-card-modern {
    flex: 0 0 350px; /* Consistent width for all cards */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
}

.review-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.review-card-modern .quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: rgba(245, 158, 11, 0.1);
    font-family: serif;
}

.review-header-modern {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.reviewer-avatar-modern {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 1.5rem;
}

.reviewer-info-modern h4 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.reviewer-info-modern span {
    color: #64748b;
    font-size: 0.85rem;
}

.stars-modern {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
}

.review-content-modern {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.reviews-footer {
    text-align: center;
    margin-top: 4rem;
}

.btn-reviews {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #0c1116;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.btn-reviews:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
    color: #000;
}

/* Review Controls - HIDDEN in new grid design but styles kept for reference if needed elsewhere */
.review-controls {
    display: none;

    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.review-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706, #b45309);
}

.review-dots {
    display: flex;
    gap: 8px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-dot.active {
    background: #f59e0b;
    transform: scale(1.2);
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gray), var(--secondary-gray));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    border: 2px solid var(--light-silver);
}

.reviewer-info h4 {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.stars {
    color: #fbbf24;
}

.review-header .fab.fa-google {
    font-size: 1.5rem;
    color: #4285f4;
}

.review-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    font-style: italic;
}

.reviews-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    /* Dark gray/black base with subtle vertical depth */
    background:
        radial-gradient(1200px 600px at 100% 0, rgba(255,255,255,0.04) 0%, transparent 60%),
        radial-gradient(900px 500px at 0 100%, rgba(255,255,255,0.03) 0%, transparent 60%),
        linear-gradient(180deg, #0f1115 0%, #0b0d12 60%, #0a0c10 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.geometric-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

.line {
    position: absolute;
    /* Subtle light lines on dark background */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: subtleMove 15s infinite ease-in-out;
}

.line-1 {
    width: 100%;
    height: 1px;
    top: 20%;
    animation-delay: 0s;
}

.line-2 {
    width: 1px;
    height: 100%;
    right: 30%;
    animation-delay: -5s;
    background: linear-gradient(0deg, transparent, rgba(255,255,255,0.15), transparent);
}

.line-3 {
    width: 100%;
    height: 1px;
    bottom: 30%;
    animation-delay: -10s;
}

.line-4 {
    width: 1px;
    height: 100%;
    left: 20%;
    animation-delay: -7s;
    background: linear-gradient(0deg, transparent, rgba(255,255,255,0.15), transparent);
}

@keyframes subtleMove {
    0%, 100% {
        opacity: 0.08;
        transform: translateY(0px);
    }
    50% {
        opacity: 0.15;
        transform: translateY(-10px);
    }
}

.subtle-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mixed patterns: fine grid + dotted matrix for texture */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 1.5px),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 12px 12px, 48px 48px, 48px 48px;
    animation: gridShift 20s infinite ease-in-out;
}

@keyframes gridShift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(25px, 25px);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Accent color glows: muted reds/blues/teals on dark */
    background:
        radial-gradient(800px 400px at 15% 25%, rgba(220, 38, 38, 0.08) 0%, transparent 60%),
        radial-gradient(700px 350px at 85% 30%, rgba(59, 130, 246, 0.075) 0%, transparent 60%),
        radial-gradient(600px 300px at 20% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
        radial-gradient(500px 250px at 80% 80%, rgba(255, 255, 255, 0.035) 0%, transparent 60%);
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
    position: relative;
}

.contact-info,
.contact-form {
    background: rgba(17, 19, 24, 0.9);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 10px 25px -8px rgba(0, 0, 0, 0.6),
        0 2px 6px -2px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(6px);
}

.contact-info:hover,
.contact-form:hover {
    box-shadow:
        0 18px 35px -10px rgba(0, 0, 0, 0.7),
        0 6px 12px -6px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.contact-info::before,
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255,255,255,0.04);
    border-left-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.1rem;
    color: #e5e7eb;
    margin-top: 0.25rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: rgba(255,255,255,0.2);
    color: #111318;
}

.contact-item h4 {
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-3px);
}

.whatsapp {
    background: #25d366;
    color: var(--white);
}

.email {
    background: var(--primary-blue);
    color: var(--white);
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.facebook {
    background: #1877f2;
    color: var(--white);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(0,0,0,0.25);
    color: #e5e7eb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(255,255,255,0.18);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #111827; /* Darker, more professional blue-black */
    color: var(--white);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: initial; /* Reset gradient-text inheritance for image */
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    transform: translateY(-5px);
    background: var(--white);
    color: #111827;
    border-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
    opacity: 0.3;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #9ca3af;
}

.footer-contact i {
    color: #ffffff;
    opacity: 0.6;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Dashboard responsive tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.table-responsive > table {
    width: 100%;
    min-width: 900px; /* ensure columns don't crush; enables horizontal scroll on small screens */
}

.car-table {
    width: 100%;
    border-collapse: collapse;
}

.car-table th, .car-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap; /* keep cells on one line so scrolling works */
}

.car-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}

/* Stretch section content to edges on wider screens while respecting container */
.dashboard-section .section-content {
    margin-left: -10px;
    margin-right: -10px;
}

@media (min-width: 1200px) {
    .dashboard-section .section-content {
        margin-left: -20px;
        margin-right: -20px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-red);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

/* Mobile Responsive Fixes and Enhancements at bottom of file */

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fleet Carousel (Our Premium Fleet) */
.fleet-carousel {
    position: relative;
    width: 100%;
    margin-top: 0.5rem; /* move the carousel a bit higher on the page */
    margin-bottom: 2.5rem; /* add space below carousel to separate sections */
}

.fleet-stage {
    position: relative;
    height: 520px; /* Increased height to prevent overlapping with CTA button */
    perspective: 1000px;
}

.fleet-card {
    position: absolute;
    top: -16px; /* nudge cards upward slightly */
    left: 50%;
    width: min(62%, 688px); /* ~20% smaller overall */
    max-width: 90vw;
    transform: translateX(-50%);
    transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
    will-change: transform, opacity, filter;
    z-index: 1;
}

.fleet-card .car-card {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.fleet-card img {
    width: 100%;
    height: 256px; /* reduced ~20% */
    object-fit: cover;
    display: block;
}

.fleet-card .car-image { height: 256px; }

.fleet-card .car-info {
    padding: 1rem 1.25rem 1.25rem;
    position: relative;
}

.fleet-card.pos-0 .car-card {
    cursor: pointer;
}

/* Positions for coverflow effect */
.fleet-card.pos-0 { /* center */
    transform: translateX(-50%) scale(1) translateZ(0);
    z-index: 5;
    filter: none;
}
.fleet-card.pos-1 { /* right */
    transform: translateX(calc(-50% + 42%)) scale(0.86) rotateY(-10deg);
    z-index: 4;
    filter: blur(0.2px) saturate(0.95);
}
.fleet-card.pos--1 { /* left */
    transform: translateX(calc(-50% - 42%)) scale(0.86) rotateY(10deg);
    z-index: 4;
    filter: blur(0.2px) saturate(0.95);
}
.fleet-card.pos-2 { /* far right */
    transform: translateX(calc(-50% + 70%)) scale(0.72) rotateY(-16deg);
    opacity: 0.75;
    z-index: 3;
}
.fleet-card.pos--2 { /* far left */
    transform: translateX(calc(-50% - 70%)) scale(0.72) rotateY(16deg);
    opacity: 0.75;
    z-index: 3;
}
.fleet-card.pos-off {
    opacity: 0;
    pointer-events: none;
}

.fleet-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #696969, #A8A8A8);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    z-index: 10;
}

.fleet-nav:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.fleet-nav.prev { left: 8px; }
.fleet-nav.next { right: 8px; }

.fleet-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 0.75rem;
}

.fleet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fleet-dot.active { background: #64748b; transform: scale(1.2); }

/* Mobile Responsive Fixes and Enhancements */

@media (max-width: 992px) {
    /* Multi-section Mobile Polish */
    
    .hamburger {
        display: flex;
    }

    /* Layout & Spacing */
    .container {
        padding: 0 20px;
    }

    section {
        padding: 3rem 0 !important;
    }

    .hero {
        padding: 7rem 1.5rem 4rem !important;
        min-height: calc(100vh - 70px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Typography */
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.6rem !important;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        margin-bottom: 2rem;
    }

    /* Navigation */
    .nav-container {
        height: 70px;
    }

    .nav-logo img {
        height: 50px;
        width: 50px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 2rem 0;
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 1.25rem;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    /* Adaptation for dark nav in mobile menu */
    .header.nav-dark .nav-menu {
        background: rgba(15, 23, 42, 0.98);
    }

    .header.nav-dark .nav-link {
        border-bottom-color: rgba(255,255,255,0.05);
    }

    /* Grid & Cards Systems */
    .features-grid, .cars-grid, .reviews-grid, .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .feature-card {
        --cut: 20px;
        padding: 2.5rem 1.75rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .car-card {
        margin: 0 auto;
        max-width: 450px;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    /* Fleet Carousel */
    .fleet-stage {
        height: 520px !important;
    }

    .fleet-card {
        width: 90% !important;
    }

    .fleet-card img, 
    .fleet-card .car-image {
        height: 220px !important;
    }

    .pos-1 { transform: translateX(calc(-50% + 20%)) scale(0.8) translateZ(-150px); opacity: 0.35; }
    .pos--1 { transform: translateX(calc(-50% - 20%)) scale(0.8) translateZ(-150px); opacity: 0.35; }
    .pos-2, .pos--2 { opacity: 0; pointer-events: none; }

    .cars-cta {
        margin-top: 5rem !important;
    }

    /* Reviews */
    .review-showcase-card {
        min-height: 380px !important;
    }

    .review-card-single {
        padding: 3rem 1.75rem !important;
    }

    /* Contact Section Mobile Polish */
    .contact-section {
        padding: 5rem 0 !important;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        margin-top: 2rem;
    }

    .contact-info, .contact-form {
        padding: 2rem 1.5rem !important;
        background: rgba(17, 19, 24, 0.95);
    }

    .contact-info h3, .contact-form h3 {
        text-align: center;
        margin-bottom: 2rem !important;
        font-size: 1.4rem !important;
    }

    .contact-item {
        margin-bottom: 1.5rem !important;
        padding: 1rem 0.75rem !important;
        gap: 1rem !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
    }

    .contact-item i {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .contact-item div h4 {
        font-size: 1rem;
    }

    .contact-item div p {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.25rem;
        margin-top: 2.5rem;
    }

    .social-link {
        width: 46px;
        height: 46px;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input, .form-group textarea {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .contact-form form .btn {
        margin-top: 0.5rem;
    }

    /* Background Effects - Simplified for performance */
    .geometric-lines {
        display: none;
    }

    .subtle-grid {
        opacity: 0.4;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .fleet-stage {
        height: 480px !important;
    }

    .review-showcase-card {
        min-height: 420px !important;
    }

    .feature-card {
        padding: 2rem 1.25rem;
    }
}

/* Fix for horizontal scroll on some devices */
html, body {
    overflow-x: hidden;
    width: 100%;
}
