:root {
    --bg-dark: #050505;
    --text-light: #ffffff;
    --amg-red: #d00000;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 300;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--amg-red);
}

/* Hero Section */
.hero-section {
    height: 400vh; /* Scroll length for the image sequence */
    position: relative;
    background-color: #000;
}

#hero-lightpass {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.hero-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-align: center;
    opacity: 0;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

/* Models Section */
.models-section {
    padding: 100px 5%;
    background: linear-gradient(to bottom, #000 0%, var(--bg-dark) 100%);
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.model-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(208, 0, 0, 0.2);
}

.model-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.model-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.model-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.specs {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--amg-red);
    margin-bottom: 20px;
}

.btn-discover {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.model-card:hover .btn-discover {
    background: var(--amg-red);
    border-color: var(--amg-red);
}

/* Footer */
footer {
    background-color: #000;
    padding: 60px 5% 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: #888;
    line-height: 1.5;
}

.footer-credit {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #555;
    font-size: 0.9rem;
}

.footer-credit a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: var(--amg-red);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .navbar {
        padding: 15px 20px;
    }
    nav a {
        display: none;
    }
}
