/* =========================================
   1. المتغيرات والإعدادات العامة
   ========================================= */
:root {
    --primary-color: #FFC107;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --secondary-text: #b3b3b3;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--dark-bg); color: var(--text-color); overflow-x: hidden; }

/* =========================================
   2. الهيدر (Header)
   ========================================= */
header {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 0.8rem 5%;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #333; backdrop-filter: blur(10px);
}

.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text-ar { font-family: 'Cairo', sans-serif; font-weight: 900; color: #fff; font-size: 1.4rem; }
.logo-v12-main {
    font-family: 'Russo One', sans-serif; font-size: 2.2rem; color: var(--primary-color);
    letter-spacing: 2px; text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.6); font-style: italic;
}

.v12-icons-container {
    display: flex;
    align-items: center;
    position: relative;
    direction: ltr; 
}

.v12-icons-container::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.8);
}

.v12-text-part {
    font-family: 'Russo One', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
    font-style: italic;
    padding: 0 10px;
    z-index: 1;
    background-color: var(--dark-bg);
    display: inline-block; 
}

.header-icons-group {
    display: flex; align-items: center; gap: 15px;
    padding: 0 15px;
    z-index: 1;
    background-color: var(--dark-bg);
}

.h-icon {
    color: #fff; font-size: 1.3rem; transition: all 0.3s ease;
    text-decoration: none; display: flex; align-items: center; justify-content: center;
}

.h-icon:hover { transform: scale(1.2); }
.h-icon.snap:hover { color: #FFFC00; text-shadow: 0 0 10px #FFFC00; }
.h-icon.insta:hover { color: #E1306C; text-shadow: 0 0 10px #E1306C; }
.h-icon.tiktok:hover { color: #FE2C55; text-shadow: 0 0 10px #FE2C55; }
.h-icon.wa:hover { color: #25D366; text-shadow: 0 0 10px #25D366; }
.h-icon.map:hover { color: var(--primary-color); text-shadow: 0 0 10px var(--primary-color); }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: var(--text-color); text-decoration: none; font-weight: 700; transition: 0.3s; font-size: 1.1rem; }
nav a:hover { color: var(--primary-color); }

/* =========================================
   3. قسم البداية (Hero Section)
   ========================================= */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px; overflow: hidden; background-color: #000;
}

#hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1;
    transition: opacity 1s ease-in-out;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80');
}

.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-title-v12 {
    font-family: 'Russo One', sans-serif; color: var(--primary-color); font-size: 5rem;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.5); margin: 0 10px; display: inline-block; font-style: italic;
}

.btn {
    padding: 12px 35px; background-color: var(--primary-color); color: #000;
    border: none; border-radius: 50px; font-size: 1.1rem; cursor: pointer;
    transition: 0.3s; text-decoration: none; display: inline-block; font-weight: 900;
}
.btn:hover { background-color: #fff; transform: scale(1.05); }

/* =========================================
   4. شريط الإعلانات (Ticker)
   ========================================= */
.ads-ticker {
    background-color: #000;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.ads-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-ads 35s linear infinite;
}

.ad-item {
    color: #fff; font-weight: 700; font-size: 1.1rem; padding: 0 50px;
    display: flex; align-items: center; gap: 10px; text-decoration: none; transition: 0.3s ease;
}

.ad-item:hover { color: var(--primary-color); }
.ad-item i { color: var(--primary-color); }

@keyframes scroll-ads {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ads-ticker:hover .ads-track { animation-play-state: paused; }

/* =========================================
   5. المعرض (Showroom)
   ========================================= */
.showroom { padding: 5rem 5%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 10px;}
.section-center { text-align: center; margin-bottom: 3rem; }

.cars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.car-card { 
    background-color: var(--card-bg); border-radius: 15px; overflow: hidden; 
    transition: 0.3s; border: 1px solid #333; cursor: pointer;
}
.car-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }

.car-image { width: 100%; height: 250px; object-fit: cover; background-color: #222; }
.car-details { padding: 1.5rem; }

.car-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.car-header h3 { margin: 0; font-size: 1.2rem; font-weight: bold; }

.car-price { color: var(--primary-color); font-weight: 900; font-size: 1.1rem; white-space: nowrap; }
.car-specs { display: flex; justify-content: space-between; color: var(--secondary-text); font-size: 0.9rem; margin-top: 10px; border-top: 1px solid #333; padding-top: 15px; }

.hidden-car { display: none; animation: fadeInCar 0.8s ease-in-out; }
@keyframes fadeInCar { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.load-more-container { text-align: center; margin-top: 40px; }
.btn-outline {
    padding: 12px 40px; background-color: transparent; color: var(--primary-color);
    border: 2px solid var(--primary-color); border-radius: 50px; font-size: 1.1rem;
    cursor: pointer; transition: 0.3s; font-weight: 900;
}
.btn-outline:hover { background-color: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(255, 193, 7, 0.4); }

/* =========================================
   6. النافذة المنبثقة (Modal)
   ========================================= */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); }
.modal-content { background-color: #1a1a1a; margin: 5% auto; padding: 0; border: 2px solid var(--primary-color); border-radius: 15px; width: 90%; max-width: 800px; position: relative; animation: modalFadeIn 0.4s; }
@keyframes modalFadeIn { from {opacity: 0; transform: translateY(-50px);} to {opacity: 1; transform: translateY(0);} }
.close { color: #aaa; position: absolute; top: 15px; left: 20px; font-size: 35px; font-weight: bold; cursor: pointer; z-index: 10; }
.close:hover { color: var(--primary-color); }
.modal-body { display: flex; flex-wrap: wrap; }
.modal-img-container { flex: 1; min-width: 300px; }
.modal-img {  width: 100%; height: 100%; object-fit: contain;  border-top-right-radius: 13px;  background-color: transparent; min-height: 250px; }
.modal-info { flex: 1; padding: 30px; min-width: 300px; text-align: right; }
.modal-title { color: var(--primary-color); font-size: 2rem; margin-bottom: 10px; font-weight: 900; }
.modal-price { font-size: 1.8rem; color: #fff; margin-bottom: 20px; font-weight: bold; border-bottom: 1px solid #333; padding-bottom: 10px; display: inline-block; }
.modal-desc { color: #ddd; line-height: 1.6; margin-bottom: 20px; font-size: 1rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.spec-item { background: #252525; padding: 10px; border-radius: 8px; font-size: 0.9rem; }
.spec-item i { color: var(--primary-color); margin-left: 8px; }
.whatsapp-btn { display: block; width: 100%; background-color: #25D366; color: white; text-align: center; padding: 15px; border-radius: 50px; font-weight: bold; text-decoration: none; transition: 0.3s; font-size: 1.1rem; }
.whatsapp-btn:hover { background-color: #1ebc57; transform: scale(1.02); }

/* =========================================
   7. التواصل والفوتر
   ========================================= */
.contact-section { padding: 5rem 5%; background-color: #1a1a1a; display: flex; flex-wrap: wrap; gap: 2rem; border-top: 1px solid #333; }
.contact-info, .about-container { flex: 1; min-width: 300px; }
.info-item { margin-bottom: 2rem; display: flex; align-items: flex-start; gap: 15px; }
.info-icon { font-size: 1.5rem; color: var(--primary-color); margin-top: 5px; }
.phone-display { font-size: 1.8rem; font-weight: 900; color: var(--primary-color); text-decoration: none; display: block; margin: 5px 0; letter-spacing: 1px; direction: ltr; text-align: right; }
.social-section { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 5px; text-decoration: none; color: white; font-weight: bold; background: rgba(255,255,255,0.05); border: 1px solid #333; transition: 0.3s;}
.social-btn:hover { border-color: var(--primary-color); }
.social-btn.insta:hover { background: #E1306C; border-color: #E1306C; }
.social-btn.tiktok:hover { background: #FE2C55; border-color: #FE2C55; }
.social-btn.snap:hover { background: #FFFC00; border-color: #FFFC00; color: #000; }

.about-box { background-color: rgba(255, 255, 255, 0.03); border: 1px solid #333; border-radius: 15px; padding: 30px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.about-title { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 15px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.about-text { color: #ccc; line-height: 1.8; font-size: 1.05rem; margin-bottom: 20px; }
.features-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 0.95rem; }
.feature-item i { color: var(--primary-color); }

footer { background-color: #000; padding: 2rem; text-align: center; border-top: 1px solid #333; color: var(--secondary-text); }

@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.5rem; }
    .v12-icons-container { display: none; }
    nav ul { gap: 1rem; }
    .logo-v12-main { font-size: 1.8rem; }
    .modal-img { height: 250px; border-radius: 13px 13px 0 0; }
    .modal-body { flex-direction: column; }
}