:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --accent-red: #e63946;
    --accent-silver: #a8dadc;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-sm {
    max-width: 800px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Slider Section ===== */

.main-container {
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.slider-container {
    width: 80vw;
    height: 60vh;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.slider-holder {
    display: grid;
    grid-template-columns: repeat(6, 100%);
    height: 100%;
    width: 100%;
    animation: slider 25s ease-in-out infinite;
}

.slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}



/* Slider Animation */

@keyframes slider {
    0% { transform: translateX(0%); }
    16.66% { transform: translateX(-100%); }
    33.33% { transform: translateX(-200%); }
    50% { transform: translateX(-300%); }
    66.66% { transform: translateX(-400%); }
    83.33% { transform: translateX(-500%); }
    100% { transform: translateX(0%); }
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background-color: #d62828;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
}

.btn-accent.border-btn {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: #fff;
}

.btn-accent.border-btn:hover {
    background: var(--accent-red);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    background: var(--bg-card);
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

select, input[type="range"] {
    background: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

select:focus {
    border-color: var(--accent-red);
}

input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 250px;
    height: 4px;
    background: #333;
    border: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-red);
    border-radius: 50%;
    cursor: pointer;
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.car-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-color: rgba(230, 57, 70, 0.3);
}

.car-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.car-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.car-card:hover .car-img-wrapper img {
    transform: scale(1.1);
}

.car-info {
    padding: 25px;
}

.car-brand {
    font-size: 0.85rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.car-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.car-price {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--accent-silver);
}

.car-card .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    text-align: center;
    background: #252525;
}

.car-card:hover .btn {
    background: var(--accent-red);
}

/* Booking Form */
.test-drive {
    background: linear-gradient(to bottom, var(--bg-dark), #111);
}

.form-wrapper {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.form-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-wrapper p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group input, .input-group select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    color: #fff;
    border-radius: 4px;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--accent-red);
}

#booking-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #050505;
    padding: 80px 0 20px;
    border-top: 1px solid #1a1a1a;
}

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

.brand-col p {
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 300px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-red);
}

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

.footer-col ul a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    input[type="range"] {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
