:root {
    --primary-color: #ff0000; /* Red accent */
    --dark-bg: #121212;
    --light-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: var(--dark-bg);
    color: var(--text-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 1px;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
}

/* Header */
.hero-header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/image-1.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
/* Header */
.hero-header-audi-a6 {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/audi-a6/side1.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    font-weight: 400;
}

/* Car Selection Section */
#car-selection {
    padding: 4rem 0;
}

.car-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.car-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.car-card h3 {
    font-size: 1.8rem;
    margin-top: 0;
    color: #fff;
}

.car-card p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #d10000;
    transform: translateY(-3px);
}

/* Car Details Section */
#car-details {
    padding: 4rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.detail-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.detail-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Pricing Section */
#pricing {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid var(--primary-color);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-top: 0;
    color: #fff;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.pricing-card .role {
    font-style: italic;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.pricing-card .cta-button {
    margin-top: auto;
}


/* Video & Gallery */
#video, #gallery {
    padding: 4rem 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 auto;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-container a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-container a:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Contact Section */
.contact-cta {
    background: var(--light-bg);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin: 4rem 0;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    color: #666;
    margin-top: 0;
    border-top: 1px solid #222;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--primary-color);
}

.prev-button, .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    user-select: none; /* Prevent text selection */
    padding: 15px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-button svg, .next-button svg {
    width: 40px;
    height: 40px;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.prev-button:hover, .next-button:hover {
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.1);
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Scroll animations */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}
