/* =====================================================
   LUXURY CARS - Premium Automotive Website
   A sophisticated, modern design for luxury car showcase
   ===================================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Red & White Theme */
    --color-primary: #ea0505;
    --color-primary-dark: #c50404;
    --color-primary-light: #ff2a2a;
    --color-secondary: #1a1a1a;
    --color-dark: #0d0d0d;
    --color-darker: #050505;
    --color-light: #f8f8f8;
    --color-white: #ffffff;
    --color-gray: #888888;
    --color-gray-light: #cccccc;
    --color-gray-dark: #333333;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions - Smoother for mobile */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.2);
    --shadow-red: 0 5px 30px rgba(234, 5, 5, 0.3);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-gray-dark);
    border-radius: 50%;
    position: relative;
}

.loader-inner {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-padding);
}

.section-dark {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.btn-full {
    width: 100%;
}

/* ===== Header & Navigation ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
}

#header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 15px 0;
    transition: var(--transition-normal);
}

#header.scrolled .navbar {
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--color-white);
}

.logo-accent {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* WhatsApp CTA in nav */
.nav-cta {
    background: #25D366;
    color: var(--color-white) !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: #128C7E;
    color: var(--color-white) !important;
    transform: scale(1.05);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    position: relative;
    transition: var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    animation: kenburns 20s ease-in-out infinite alternate;
}

.hero-slider .slide.active {
    opacity: 1;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.hero-title {
    display: block;
    font-family: var(--font-secondary);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content > p {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    opacity: 0.7;
    transition: var(--transition-normal);
}

.hero-scroll a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-red);
}

.badge-number {
    display: block;
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-content .section-tag {
    display: block;
    margin-bottom: 15px;
}

.about-content .section-title {
    margin-bottom: 25px;
}

.about-text {
    color: var(--color-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-gray-light);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-red);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--color-white);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Vehicles Section ===== */
.vehicle-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gray);
    background: transparent;
    border: 2px solid var(--color-gray-light);
    border-radius: 50px;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vehicle-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.vehicle-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.vehicle-card.hidden {
    display: none;
}

.vehicle-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.1);
}

.vehicle-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 50px;
}

.vehicle-badge.sale {
    background: #e74c3c;
    color: var(--color-white);
}

.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-normal);
}

.vehicle-card:hover .vehicle-overlay {
    opacity: 1;
}

.vehicle-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    color: var(--color-dark);
    border-radius: 50%;
    font-size: 1.1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-normal);
}

.vehicle-card:hover .vehicle-btn {
    transform: translateY(0);
    opacity: 1;
}

.vehicle-card:hover .vehicle-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.vehicle-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.vehicle-info {
    padding: 25px;
}

.vehicle-brand {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.vehicle-name {
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.vehicle-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-light);
}

.vehicle-specs span {
    font-size: 0.85rem;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-specs i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.vehicle-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

/* ===== Brands Section ===== */
.brands-slider {
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex-shrink: 0;
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(2);
    opacity: 0.6;
    transition: var(--transition-normal);
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== Testimonials Section ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: var(--font-secondary);
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.testimonial-source {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 0.8rem;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.testimonial-source i {
    font-size: 1rem;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-tag {
    display: block;
    margin-bottom: 15px;
}

.contact-info .section-title {
    margin-bottom: 20px;
}

.contact-text {
    color: var(--color-gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 5, 5, 0.15);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.contact-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-content p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-white);
    transition: var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--color-secondary);
    color: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    accent-color: var(--color-primary);
}

.form-group.checkbox label {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.form-group.checkbox label a {
    color: var(--color-primary);
}

.form-group.checkbox label a:hover {
    text-decoration: underline;
}

/* ===== Map Section ===== */
.map {
    filter: grayscale(100%) contrast(1.1);
    transition: var(--transition-normal);
}

.map:hover {
    filter: grayscale(0%);
}

.map iframe {
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-darker);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-gray);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--color-primary);
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* ===== Floating Action Buttons ===== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fab-btn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.fab-btn.whatsapp {
    background: #25D366;
    color: var(--color-white);
}

.fab-btn.whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.fab-btn.scroll-top {
    background: var(--color-primary);
    color: var(--color-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.fab-btn.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-btn.scroll-top:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-grid {
        gap: 50px;
    }

    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 50px;
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-title {
        font-size: 3rem;
    }

    .hero-content > p {
        font-size: 1.1rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-badge {
        right: 20px;
        bottom: -20px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero */
    .hero {
        min-height: 600px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* About */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Vehicles */
    .vehicle-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Floating Buttons */
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .vehicle-specs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand-item {
        width: 80px;
        height: 40px;
    }

    .brands-track {
        gap: 40px;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ===== Selection Styles ===== */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

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

/* ===== Enhanced Mobile Smoothness ===== */
@media (max-width: 992px) {
    /* Smooth touch scrolling */
    html {
        -webkit-overflow-scrolling: touch;
    }

    /* Optimize animations for mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Smoother mobile menu transitions */
    .nav-menu {
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: right;
    }

    /* Disable hover effects on touch devices */
    .vehicle-card:hover {
        transform: none;
    }

    .vehicle-card:active {
        transform: scale(0.98);
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    /* Smooth button feedback */
    .btn:active {
        transform: scale(0.95);
    }

    .filter-btn:active {
        transform: scale(0.95);
    }

    /* Optimize images for mobile */
    img {
        will-change: transform;
    }

    /* Reduce motion for better performance */
    .hero-slider .slide {
        animation: none;
    }

    /* Smoother scroll snap */
    .vehicle-grid {
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .vehicle-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    /* Even smoother mobile experience */
    .section {
        padding: 50px 0;
    }

    /* Larger touch targets */
    .nav-link {
        padding: 12px 0;
        font-size: 1.2rem;
    }

    .btn {
        padding: 14px 28px;
        min-height: 48px;
    }

    .filter-btn {
        padding: 12px 24px;
        min-height: 44px;
    }

    /* Better mobile form UX */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 18px 20px;
        min-height: 52px;
    }

    /* Smooth floating button */
    .floating-actions {
        bottom: 15px;
        right: 15px;
    }

    .fab-btn {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    /* Optimized hero for mobile */
    .hero {
        min-height: 100svh; /* Use small viewport height for mobile */
    }

    .hero-content {
        padding: 0 25px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    /* Better mobile cards */
    .vehicle-card {
        border-radius: var(--radius-md);
        margin-bottom: 5px;
    }

    .vehicle-image {
        height: 220px;
    }

    .vehicle-info {
        padding: 20px;
    }

    /* Contact section mobile */
    .contact-item {
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Footer mobile */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-tag {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    /* Tighter spacing on small screens */
    .container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Adjust stats for small screens */
    .about-stats {
        gap: 15px;
        padding-top: 25px;
        margin-top: 25px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Service cards */
    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* ===== Logo Styles ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img-wrapper {
    background: var(--color-white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo-img {
    height: 65px;
    width: auto;
    transition: var(--transition-normal);
}

#header.scrolled .logo-img {
    height: 45px;
}

#header.scrolled .logo-img-wrapper {
    padding: 5px 10px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    display: block;
}

.logo-accent {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

@media (max-width: 992px) {
    .logo-img {
        height: 55px;
    }

    #header.scrolled .logo-img {
        height: 40px;
    }

    .logo-text,
    .logo-accent {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }

    #header.scrolled .logo-img {
        height: 38px;
    }

    .logo-text,
    .logo-accent {
        display: none; /* Hide text on mobile to save space */
    }
}

/* Footer logo */
.footer .logo-img-wrapper {
    background: var(--color-white);
    padding: 10px 15px;
}

.footer .logo-img {
    height: 55px;
}

.footer .logo-text,
.footer .logo-accent {
    display: block;
    font-size: 1.3rem;
}
