:root {
    --bg-dark: #111111;
    --bg-light: #1a1a1a;
    --accent-silver: #d3d3d1;
    --accent-chrome: #ffffff;
    --text-body: #ececec;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    font-family: var(--body-font);
    overflow-x: hidden;
}

/* Header Centering */
.main-header {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: black;
}

.logo {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 10px 40px;
}

/* Hero Section Centering */
.hero-intro {
    position: relative;
    padding: 60px 20px 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers children horizontally */
    text-align: center;
    background: black;
}

.video-frame {
    width: 640px;
    height: 640px;
    max-width: 90vw; /* Ensures it shrinks on mobile phones */
    max-height: 90vw; /* Keeps it square on mobile phones */
    margin: 40px auto; /* Centers it and adds spacing */
    border-radius: 40px; /* Deep sleek curves */
    overflow: hidden;
    position: relative;
    z-index: 5;
    background: #000;
    
    /* Chrome-like border effect */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 
                0 0 0 10px rgba(255, 255, 255, 0.03); /* Subtle outer rim */
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the 640x640 square perfectly */
}

/* Adjusting the hero content spacing for the larger video */
.hero-intro {
    padding-top: 40px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 5px;
}

/* Bio Centering */
.bio-section {
    padding: 100px 20px;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.bio-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

/* Gallery Centering */
.gallery-section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.car-grid {
    display: grid;
    /* This creates a grid that wraps but remains centered */
    grid-template-columns: repeat(auto-fit, 320px); 
    justify-content: center; /* Centers the whole grid */
    gap: 40px;
}

.car-card {
    width: 320px;
    height: 240px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease;
    background: #000;
}

.car-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.4s;
}

.car-card:hover {
    transform: scale(1.03);
}

.car-card:hover img {
    opacity: 1;
}

.car-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    text-align: center;
}

.car-info h3 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--accent-chrome);
}

/* Decorative Curve */
.curve-divider {
    position: absolute;
    bottom: -1px;
    width: 100%;
}

.curve-divider .shape-fill {
    fill: var(--bg-light);
}

footer {
    text-align: center;
    padding: 60px;
    opacity: 0.5;
    font-size: 0.8rem;
}