/* ==========================================================================
   1. ƏSAS DƏYİŞƏNLƏR VƏ SIFIRLAMA (RESET)
   ========================================================================== */
:root {
    --primary-color: #d4af37; /* Qızılı / Gold */
    --primary-hover: #b5952f;
    --dark-bg: #0a0a0a;       /* Tünd qara fon (Əsas) */
    --light-bg: #1a1a1a;      /* Açıq qara fon (Bölmələr və kartlar) */
    --text-light: #f4f4f4;    /* Ağ mətn */
    --text-muted: #a0a0a0;    /* Boz mətn */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth; /* Səhifə daxilində yumşaq keçid */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. ÜMUMİ DİZAYN ELEMENTLƏRİ
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   3. NAVİQASİYA PANElİ (MENYU)
   ========================================================================== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid #222;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
    font-weight: 300;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   4. BAŞLIQ (HERO) BÖLMƏSİ
   ========================================================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1563720225384-9d0d33e8869b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.search-box {
    background: rgba(26, 26, 26, 0.85);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border: 1px solid #333;
    backdrop-filter: blur(5px);
}

.search-box select,
.search-box input {
    padding: 12px 15px;
    border: 1px solid #444;
    background: var(--dark-bg);
    color: white;
    outline: none;
    border-radius: 4px;
    font-size: 15px;
}

.search-box select:focus,
.search-box input:focus {
    border-color: var(--primary-color);
}

/* ==========================================================================
   5. AVTOPARK (RENT A CAR & TRANSPORT) BÖLMƏLƏRİ
   ========================================================================== */
.fleet-section {
    padding: 100px 0;
}

.bg-light-section {
    background-color: var(--light-bg);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.car-card {
    background-color: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bg-light-section .car-card {
    background-color: #111; /* İkinci bölmə üçün fərqli kart rəngi */
}

.car-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.car-image {
    height: 230px;
    background-size: cover;
    background-position: center;
}

/* --- Avtomobil Şəkilləri --- */
.bg-rangerover { background-image: url('https://images.unsplash.com/photo-1606016159991-cdf4a3328af9?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.bg-porsche { background-image: url('https://images.unsplash.com/photo-1503376711475-4303f272a08f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.bg-bmw { background-image: url('https://images.unsplash.com/photo-1555215695-3004980ad54e?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.bg-sclass { background-image: url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.bg-vclass { background-image: url('https://images.unsplash.com/photo-1610486016766-411db1e23da6?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }
.bg-sprinter { background-image: url('https://images.unsplash.com/photo-1610647752706-3bb12232b3ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80'); }

.car-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.car-type {
    color: var(--primary-color);
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    flex-grow: 1;
}

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.car-price h4 {
    font-size: 22px;
    color: white;
}

.car-price span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   6. HAQQIMIZDA BÖLMƏSİ
   ========================================================================== */
.about-section {
    padding: 100px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-top: 25px;
}

.about-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 450px;
    background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ==========================================================================
   7. ƏLAQƏ FORMASI
   ========================================================================== */
.contact-section {
    padding: 80px 0 120px;
    background-color: var(--light-bg);
}

.custom-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    gap: 20px;
}

.form-group input, 
.custom-form input, 
.custom-form textarea, 
.custom-form select {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-bg);
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.custom-form input:focus, 
.custom-form textarea:focus {
    border-color: var(--primary-color);
}

/* ==========================================================================
   8. SİFARİŞ MODALI (POP-UP)
   ========================================================================== */
.modal {
    display: none; /* Standart olaraq gizlidir, JS ilə açılır */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary-color);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.15);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   9. FOOTER (AŞAĞI HİSSƏ)
   ========================================================================== */
footer {
    background-color: #050505;
    padding: 60px 0 20px;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-logo span {
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 14px;
}

/* ==========================================================================
   10. MOBİL VƏ PLANŞET UYĞUNLUĞU (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .section-title {
        text-align: center !important;
    }
    .about-features li {
        justify-content: center;
    }
    .about-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobil menyu üçün gizlədilir, hamburger menyu əlavə etmək olar */
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .search-box {
        flex-direction: column;
        gap: 15px;
    }
    .form-group {
        flex-direction: column;
        gap: 20px;
    }
    .car-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .car-price button {
        width: 100%;
    }
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}