/* ===================================================================
   VINTAGE RETRO CLASSIC CARS - 1960s/70s Inspired Design
   Color Scheme: Black & White + Crimson Red Accent
   Typography: Bold, Condensed Vintage Fonts
   =================================================================== */

/* Vintage Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&family=Roboto+Condensed:wght@300;400;700&family=Racing+Sans+One&display=swap');

/* ==================== VARIABLES ==================== */
:root {
    /* Colors - Vintage Black & White + Red */
    --white: #ffffff;
    --cream: #faf8f3;
    --light-gray: #e8e8e8;
    --gray: #666666;
    --dark-gray: #2a2a2a;
    --black: #0d0d0d;

    /* Accent Colors */
    --red: #dc143c;
    --red-dark: #a00024;
    --red-light: #ff4757;
    --gold: #ffd700;
    --chrome: linear-gradient(135deg, #e8e8e8 0%, #ffffff 50%, #e8e8e8 100%);

    /* Typography */
    --font-display: 'Bebas Neue', 'Racing Sans One', cursive;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto Condensed', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-red: 0 4px 20px rgba(220, 20, 60, 0.3);

    /* Borders */
    --border-thin: 2px;
    --border-thick: 4px;
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--dark-gray);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== VINTAGE STRIPE PATTERN ==================== */
.stripe-pattern {
    position: relative;
}

.stripe-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--black) 0px,
        var(--black) 20px,
        var(--white) 20px,
        var(--white) 40px
    );
    z-index: 10;
}

/* Racing checkered flag pattern */
.checkered-pattern {
    background-image:
        linear-gradient(45deg, var(--light-gray) 25%, transparent 25%),
        linear-gradient(-45deg, var(--light-gray) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--light-gray) 75%),
        linear-gradient(-45deg, transparent 75%, var(--light-gray) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xs) 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: var(--spacing-md);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.contact-info a:hover {
    background: var(--red);
    transform: scale(1.05);
}

.contact-info svg {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

/* Main Navigation */
.main-nav {
    background: var(--white);
    border-bottom: var(--border-thick) solid var(--red);
    position: relative;
}

.main-nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--black);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 60px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
}

.logo:hover .logo-image {
    transform: rotate(-5deg) scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 16px 24px;
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    border-left: 2px solid var(--light-gray);
}

.nav-menu li:first-child a {
    border-left: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--red);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: var(--black);
    border: 2px solid var(--red);
    padding: 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    position: absolute;
}

.mobile-menu-btn span:nth-child(1) {
    top: 14px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 23px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 32px;
}

/* Mobile menu button active state (transforms to X) */
.mobile-menu-btn.active {
    background: var(--red);
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    background: var(--black);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    overflow: hidden;
}

/* Diagonal stripes background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        var(--black),
        var(--black) 10px,
        var(--dark-gray) 10px,
        var(--dark-gray) 20px
    );
    opacity: 0.3;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    color: var(--white);
    line-height: 0.9;
    letter-spacing: 4px;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    text-shadow:
        4px 4px 0 var(--red),
        8px 8px 0 rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease-out;
}

.hero p {
    font-family: var(--font-heading);
    font-size: clamp(18px, 3vw, 24px);
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Vintage Badge */
.hero-badge {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    padding: 8px 24px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: var(--shadow-red);
    transform: rotate(-2deg);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border: 3px solid var(--black);
    box-shadow:
        4px 4px 0 var(--black),
        var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translate(-2px, -2px);
    box-shadow:
        6px 6px 0 var(--black),
        var(--shadow-lg);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow:
        2px 2px 0 var(--black);
}

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

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}

/* White outline button for dark backgrounds (hero section) */
.hero .btn-outline {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner for loading buttons */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--spacing-xs);
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--red);
    box-shadow: 0 0 0 2px var(--black);
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    color: var(--black);
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title h2::before {
    content: '///';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-size: 24px;
}

.section-title h2::after {
    content: '///';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-size: 24px;
}

.section-title p {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Special styling for section titles on dark backgrounds */
.stats-section .section-title h2,
.hero .section-title h2 {
    color: var(--white);
}

.stats-section .section-title p,
.hero .section-title p {
    color: var(--light-gray);
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--white);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--cream);
    border: var(--border-thick) solid var(--black);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    transition: all 0.3s;
    box-shadow:
        8px 8px 0 var(--light-gray),
        var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--red);
    opacity: 0;
    transition: all 0.3s;
    z-index: -1;
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow:
        12px 12px 0 var(--light-gray),
        var(--shadow-md);
}

.feature-card:hover::before {
    opacity: 1;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    border: 4px solid var(--black);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--black);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
}

/* ==================== CARS SECTION ==================== */
.cars-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--light-gray);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.car-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.car-card {
    background: var(--white);
    border: var(--border-thick) solid var(--black);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow:
        6px 6px 0 var(--dark-gray),
        var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0px,
        var(--red) 15px,
        var(--white) 15px,
        var(--white) 30px
    );
}

.car-card-link:hover .car-card {
    transform: translate(-3px, -3px);
    box-shadow:
        9px 9px 0 var(--dark-gray),
        var(--shadow-lg);
    border-color: var(--red);
}

.car-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
    background: var(--light-gray);
}

.car-card-link:hover .car-image {
    transform: scale(1.05);
}

.car-info {
    padding: var(--spacing-md);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    min-height: 58px; /* Height for 2 lines (24px * 1.2 * 2) */
    display: flex;
    align-items: flex-start;
}

.car-card-link:hover .car-title {
    color: var(--red);
}

.car-specs {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
    min-height: 32px; /* Ensure consistent height */
    align-items: flex-start;
}

.car-specs span {
    padding: 4px 8px;
    background: var(--light-gray);
    border: 1px solid var(--dark-gray);
    border-radius: var(--radius-sm);
}

.car-price {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--red);
    margin-top: auto; /* Push price to bottom */
    padding-top: var(--spacing-sm);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* Vintage "SALE" badge */
.car-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--red);
    color: var(--white);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    transform: rotate(15deg);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--black);
    color: var(--white);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0px,
        var(--red) 20px,
        var(--white) 20px,
        var(--white) 40px
    );
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    border: 3px dashed var(--gray);
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--red);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--red);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--light-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--dark-gray);
    color: var(--light-gray);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    border-top: 6px solid var(--red);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3,
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 20px;
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--red);
}

.footer-col p,
.footer-col ul {
    line-height: 1.9;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
    padding-left: 20px;
    position: relative;
}

.footer-col ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

.footer-col a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--gray);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--black);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: var(--radius-sm);
    color: var(--black);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow:
        0 0 0 3px rgba(220, 20, 60, 0.2),
        var(--shadow-sm);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

/* ==================== FILTERS ==================== */
.filters-section {
    background: var(--white);
    padding: var(--spacing-lg);
    border: var(--border-thick) solid var(--black);
    margin-bottom: var(--spacing-lg);
    box-shadow:
        6px 6px 0 var(--light-gray),
        var(--shadow-md);
}

.filter-group {
    margin-bottom: var(--spacing-md);
}

.filter-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    background: var(--cream);
    border: 2px solid var(--dark-gray);
    border-radius: var(--radius-sm);
    color: var(--black);
    font-size: 15px;
    transition: all 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--red);
    background: var(--white);
}

/* ==================== GALLERY ==================== */
.gallery {
    margin-bottom: var(--spacing-lg);
}

.gallery-main-wrapper {
    position: relative;
    margin-bottom: var(--spacing-md);
    border: var(--border-thick) solid var(--black);
    overflow: hidden;
    box-shadow:
        8px 8px 0 var(--dark-gray),
        var(--shadow-lg);
}

.gallery-main-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0px,
        var(--red) 15px,
        var(--black) 15px,
        var(--black) 30px
    );
    z-index: 5;
}

.main-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.5s;
}

.main-image:hover {
    transform: scale(1.03);
}

/* Gallery Navigation Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--red);
    border: 3px solid var(--white);
    color: var(--white);
    font-size: 32px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.gallery-arrow:hover {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-prev {
    left: 20px;
}

.gallery-arrow-next {
    right: 20px;
}

.gallery-fullscreen-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 12px 24px;
    border: 2px solid var(--red);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
    box-shadow: var(--shadow-md);
}

.gallery-main-wrapper:hover .gallery-fullscreen-hint {
    opacity: 1;
}

/* Thumbnails */
.thumbnails-wrapper {
    position: relative;
}

.thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
    padding-left: 5px; /* Prevent border cutoff on first thumbnail */
    scroll-behavior: smooth;
}

.thumbnails::-webkit-scrollbar {
    height: 10px;
}

.thumbnails::-webkit-scrollbar-track {
    background: var(--light-gray);
    border: 2px solid var(--dark-gray);
}

.thumbnails::-webkit-scrollbar-thumb {
    background: var(--red);
    border: 2px solid var(--white);
}

.thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

.thumbnail {
    min-width: 140px;
    height: 105px;
    flex-shrink: 0;
    object-fit: cover;
    border: 3px solid var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.thumbnail:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow:
        0 0 0 2px var(--white),
        0 0 0 5px var(--red),
        var(--shadow-md);
}

.thumbnail.active {
    border-color: var(--red);
    box-shadow:
        0 0 0 2px var(--white),
        0 0 0 5px var(--red),
        var(--shadow-red);
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border: var(--border-thick) solid var(--black);
    padding: var(--spacing-lg);
    transition: all 0.3s;
    box-shadow:
        6px 6px 0 var(--light-gray),
        var(--shadow-sm);
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow:
        8px 8px 0 var(--light-gray),
        var(--shadow-md);
}

.card h2,
.card h3,
.card h4 {
    font-family: var(--font-heading);
    color: var(--black);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card p {
    color: var(--gray);
    line-height: 1.8;
}

.card.highlight {
    background: var(--red);
    border-color: var(--black);
    color: var(--white);
}

.card.highlight h3,
.card.highlight h4,
.card.highlight p {
    color: var(--white);
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 32px;
        --spacing-xl: 48px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: 2px;
        text-shadow:
            3px 3px 0 var(--red),
            6px 6px 0 rgba(0, 0, 0, 0.3);
    }

    .section-title h2 {
        font-size: 36px;
    }

    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transition: left 0.3s;
        border-right: 6px solid var(--red);
        padding: var(--spacing-md);
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        font-size: 24px;
        padding: var(--spacing-md);
        border-left: none;
        border-bottom: 2px solid var(--light-gray);
        width: 100%;
    }

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

    .main-image {
        height: 350px;
    }

    .gallery-arrow {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .gallery-arrow-prev {
        left: 10px;
    }

    .gallery-arrow-next {
        right: 10px;
    }

    .thumbnail {
        min-width: 100px;
        height: 75px;
    }

    .contact-info {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: center;
        text-align: center;
    }

    .top-bar .container {
        justify-content: center;
    }

    .top-bar {
        padding: 12px 0;
    }

    .stat-number {
        font-size: 48px;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        position: static !important;
        left: auto !important;
        height: auto !important;
        flex-direction: row !important;
        background: transparent !important;
        border: none !important;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .main-header,
    .main-footer,
    .btn,
    .mobile-menu-btn {
        display: none;
    }
}
