:root {
    --primary: #DC0000;
    /* Red Ferrari */
    --primary-glow: rgba(220, 0, 0, 0.5);
    --secondary: #0a0a0c;
    /* Deep Black */
    --accent: #FFD93D;
    /* Warning Yellow */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--secondary);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Header */
.header {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: white;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu a:hover {
    color: white;
}

.btn-nav-register {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-size: 0.8rem !important;
    transition: var(--transition) !important;
}

.btn-nav-register:hover {
    box-shadow: 0 0 20px var(--primary-glow) !important;
    transform: scale(1.05) !important;
}


/* Hero Section with Movement */
.hero {
    min-height: 85vh;
    /* Background removed for slider */
    background: #000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Changed to hidden to contain slider */
    padding-bottom: 4rem;
    width: 100%;
    /* Ensure it fits container */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Ensures image covers area */
    background-position: center center;
    /* Centers image */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Mobile Responsiveness for Slider */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        /* Reduce height on mobile to prevent extreme zoom */
    }

    .hero-slide {
        background-position: center center;
    }
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 75%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 90%;
    width: 1000px;
    margin: 0 auto;
    z-index: 10;
    text-align: center;
    position: static;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 5rem;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

.hero-title span {
    color: white;
    -webkit-text-stroke: 1px white;
    display: block;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-top: 18rem;
    margin-bottom: 0;
    font-size: 1.2rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
    position: absolute;
    right: 5%;
    top: 10%;
    margin: 0;
    z-index: 20;
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--primary-glow);
}



/* Vehicle Cards with Hover Movement */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    /* ... existing mobile styles ... */

    .hero-btn {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin-top: 4rem !important;
        margin-left: 0 !important;
    }
}

.vehicle-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.vehicle-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
    /* Zoom effect */
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vehicle-price {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-rent {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn-rent:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Filter Buttons */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 4rem 0 2rem;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Global Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-primary-glow {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-disabled {
    background: #666;
    color: #ccc;
    cursor: not-allowed;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(220, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}


/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #2ecc71;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.2);
}

/* Video Promo Section */
.video-section {
    padding: 4rem 2rem;
    background: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-container {
    max-width: 400px;
    /* iPhone Max width approx */
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(220, 0, 0, 0.2);
    aspect-ratio: 9/16;
}

.promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 3rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

.video-text {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.video-btn {
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    width: auto;
    display: inline-block;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.video-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-glow);
}

@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        border-radius: 0;
        aspect-ratio: auto;
        height: 80vh;
    }

    .video-section {
        padding: 0;
    }

    .video-text {
        font-size: 1rem;
    }
}

.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .hero-title {
        margin-top: 0 !important;
        font-size: 2rem !important;
    }

    .hero p {
        margin-top: 2rem !important;
        font-size: 1rem !important;
    }

    .hero-btn {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin: 2rem auto !important;
        display: inline-block !important;
    }
}