/* ================= CSS VARIABLES ================= */
:root {
    --primary: #E50914; /* Luxury Red */
    --primary-dark: #b30710;
    --bg-dark: #0A0A0A; /* Deep Black */
    --bg-light: #141414; /* Dark Gray */
    --text-main: #F5F5F5; /* White */
    --text-muted: #A0A0A0; /* Silver Accent */
    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Tajawal', sans-serif;
}

/* ================= RESET & BASICS ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4 {
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 span, h2 span { color: var(--primary); }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* ================= UTILITIES & GLASSMORPHISM ================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.dark-section { background-color: var(--bg-light); }

/* ================= BUTTONS & RIPPLE ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(229, 9, 20, 0.1);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebe57; transform: translateY(-2px); }
.btn-icon { background: var(--glass-bg); border: 1px solid var(--glass-border); color: white; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.btn-icon:hover { background: var(--primary); }

/* Ripple Effect */
.ripple .circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ================= LOADER & PROGRESS ================= */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-content { text-align: center; }
.spinner {
    width: 60px; height: 60px;
    border: 4px solid var(--glass-border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

#progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; background: var(--primary);
    width: 0%; z-index: 10000; transition: width 0.1s;
}

/* ================= NAVBAR ================= */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; color: white; display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--primary); }
.logo i { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-weight: 500; font-size: 1.1rem; color: var(--text-muted); transition: var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; right: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition);
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: white; }

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh;
    /* خلفية سينمائية تظهر أسطول سيارات داخل صالة عرض حديثة بإضاءة درامية */
    background: url('https://images.unsplash.com/photo-1617531653332-bd46c24f2068?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center;
}

.hero .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
}

.hero-content {
    position: relative; z-index: 2; max-width: 800px; padding-top: 80px;
}

.hero h1 { font-size: 4.5rem; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero p { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

.floating-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    animation: float 2s infinite ease-in-out;
}
.floating-scroll a {
    color: white; font-size: 2rem; opacity: 0.7; transition: var(--transition);
}
.floating-scroll a:hover { opacity: 1; color: var(--primary); }

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 15px); }
}

/* ================= TRUST (COUNTERS) ================= */
.trust-section {
    padding: 60px 0; background: var(--bg-light); border-bottom: 1px solid var(--glass-border);
}
.counters-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.counter-box i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.counter-box h2 { font-size: 3rem; margin-bottom: 5px; color: white; }
.counter-box p { color: var(--text-muted); font-weight: 500; font-size: 1.1rem; }

/* ================= SECTION HEADERS ================= */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; position: relative; display: inline-block; }
.section-header p { color: var(--text-muted); font-size: 1.2rem; margin-top: 10px; }

/* ================= FEATURED CARS ================= */
.cars-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.car-card { overflow: hidden; padding: 15px; }
.car-card:hover { transform: translateY(-10px); border-color: rgba(229,9,20,0.3); }
.car-img { position: relative; border-radius: 12px; overflow: hidden; height: 250px; }
.car-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.car-card:hover .car-img img { transform: scale(1.1); }
.badge {
    position: absolute; top: 15px; right: 15px; background: var(--primary); color: white;
    padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; z-index: 2;
}
.car-details { padding: 20px 10px 10px; }
.car-details h3 { font-size: 1.4rem; margin-bottom: 5px; }
.car-details .price { color: var(--primary); font-size: 1.6rem; font-weight: 800; margin-bottom: 15px; }
.specs { display: flex; justify-content: space-between; margin-bottom: 25px; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 15px 0; }
.specs span { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.specs i { color: white; }

/* ================= SPECIAL OFFERS ================= */
.parallax-offers {
    background: url('https://images.unsplash.com/photo-1563720360172-67b8f3dce741?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    position: relative;
}
.parallax-offers .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,10,10,0.85);
}
.parallax-offers .container { position: relative; z-index: 2; }
.offers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.offer-card { padding: 40px; position: relative; overflow: hidden; }
.offer-badge {
    position: absolute; top: -10px; left: -10px; background: var(--primary); color: white;
    width: 100px; height: 100px; display: flex; align-items: flex-end; justify-content: center;
    transform: rotate(-45deg); padding-bottom: 15px; font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.offer-card h3 { font-size: 2rem; margin-bottom: 15px; color: white; margin-top: 10px; }
.offer-card p { color: var(--text-muted); margin-bottom: 25px; font-size: 1.1rem; }
.offer-features { margin-bottom: 30px; }
.offer-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: #fff; }
.offer-features i { color: #25D366; font-size: 1.2rem; }

/* ================= WHY CHOOSE US ================= */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-box {
    text-align: center; padding: 40px 20px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; transition: var(--transition);
}
.feature-box:hover { transform: translateY(-10px); background: rgba(30, 30, 30, 0.7); }
.icon-wrapper {
    width: 80px; height: 80px; background: rgba(229, 9, 20, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 25px;
    border: 1px solid rgba(229, 9, 20, 0.3); transition: var(--transition);
}
.feature-box:hover .icon-wrapper { background: var(--primary); }
.icon-wrapper i { font-size: 2rem; color: var(--primary); transition: var(--transition); }
.feature-box:hover i { color: white; }
.feature-box h3 { font-size: 1.3rem; margin-bottom: 15px; }
.feature-box p { color: var(--text-muted); font-size: 0.95rem; }

/* ================= PROCESS TIMELINE ================= */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after {
    content: ''; position: absolute; width: 2px; background: var(--glass-border);
    top: 0; bottom: 0; right: 50%; margin-right: -1px;
}
.timeline-item { padding: 20px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { right: 0; text-align: left; }
.timeline-item:nth-child(even) { right: 50%; text-align: right; }
.timeline-dot {
    position: absolute; width: 40px; height: 40px; background: var(--bg-dark); border: 3px solid var(--primary);
    border-radius: 50%; top: 30px; right: -20px; z-index: 1; display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: white;
}
.timeline-item:nth-child(even) .timeline-dot { right: auto; left: -20px; }
.timeline-content { padding: 30px; }
.timeline-content h3 { color: var(--primary); margin-bottom: 10px; }
.timeline-content p { color: var(--text-muted); }

/* ================= TESTIMONIALS ================= */
.testimonial-slider { position: relative; overflow: hidden; max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; padding: 20px; animation: fadeEffect 1s; }
.testimonial-slide.active { display: block; }
@keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} }
.stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 20px; }
.review-text { font-size: 1.5rem; font-style: italic; color: white; margin-bottom: 30px; line-height: 1.8; }
.customer-info { display: flex; align-items: center; justify-content: center; gap: 15px; }
.customer-img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.customer-info h4 { margin: 0; font-size: 1.2rem; }
.customer-info span { color: var(--text-muted); font-size: 0.9rem; }
.slider-controls { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }

/* ================= CONTACT SECTION ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-info > p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 30px; }
.info-list { margin-bottom: 40px; }
.info-list li { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.info-list i { color: var(--primary); font-size: 1.5rem; width: 30px; text-align: center; }
.contact-form-wrapper { padding: 40px; }
.contact-form-wrapper h3 { font-size: 1.8rem; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 15px 20px; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border);
    border-radius: 8px; color: white; font-size: 1rem; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); background: rgba(0,0,0,0.8);
}
.form-group select option { background: var(--bg-dark); color: white; }

/* ================= FOOTER ================= */
footer { background: #050505; padding: 80px 0 20px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); margin: 20px 0; font-size: 0.95rem; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--glass-bg); display: flex; align-items: center; justify-content: center; transition: var(--transition); border: 1px solid var(--glass-border); }
.social-links a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.footer-links h4, .footer-newsletter h4 { font-size: 1.2rem; margin-bottom: 25px; color: white; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-right: 8px; }
.footer-newsletter p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.newsletter-form { display: flex; }
.newsletter-form input { flex: 1; padding: 12px 15px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-left: none; border-radius: 0 8px 8px 0; color: white; outline: none; }
.newsletter-form button { padding: 12px 20px; background: var(--primary); border: none; border-radius: 8px 0 0 8px; color: white; cursor: pointer; transition: var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 20px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem; }
.legal-links { display: flex; gap: 20px; }
.legal-links a:hover { color: white; }

/* ================= ANIMATIONS (REVEAL) ================= */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translate(0, 0); }
.fade-up { transform: translateY(50px); }
.slide-up { transform: translateY(40px); }
.slide-right { transform: translateX(50px); }
.slide-left { transform: translateX(-50px); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    .counters-grid { grid-template-columns: repeat(2, 1fr); }
    .cars-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .offers-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline::after { right: 31px; }
    .timeline-item { width: 100%; padding-right: 80px; padding-left: 0; }
    .timeline-item:nth-child(even), .timeline-item:nth-child(odd) { right: 0; text-align: right; }
    .timeline-dot { right: 10px; left: auto !important; }
    .timeline-item:nth-child(even) .timeline-dot { right: 10px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .cars-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
    .section-header h2 { font-size: 2.2rem; }
    .review-text { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .counters-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}