@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary-color: #d4af37; /* Gold accent */
    --primary-hover: #b5952f;
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --bg-card: #1e293b; /* Slate 800 */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl; /* Arabic support */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Navbar */
header {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-darker);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

/* Using a cool geometric background since I might not generate an image immediately */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(15, 23, 42, 1), var(--bg-darker) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to left, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Section Common */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Info Cards (Why Us / Vision) */
.info-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0, 0.5);
    border-color: rgba(212, 175, 55, 0.2);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-muted);
}

/* Cars Section */
.car-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-smooth);
}

.car-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
}

.car-image {
    width: 100%;
    height: 220px;
    background: #2a3441; /* Placeholder */
    object-fit: cover;
}

.car-details {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
}

.car-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 45px;
}

.car-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Steps Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    z-index: 2;
    position: relative;
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-col p, .footer-col a {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Responsive */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .desktop-btn {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .steps-container {
        flex-direction: column;
    }
}
/* تهيئة وتوافق السكرول الفوري والسلايدر مع أجهزة الموبايل وأنظمة iOS Safari */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* يضمن تصفحاً فائق النعومة والسلاسة للآيفون */
}

#heroSlider {
    will-change: background-image;
    transform: translateZ(0);
    -webkit-transform: translateZ(0); /* تفعيل قوة الـ GPU للآيفون والآيباد لمنع أي تعليق */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* تعديلات شاشات الموبايل المتجاوبة */
@media (max-width: 768px) {
    .nav-container .logo {
        font-size: 1.1rem !important;
    }
    .hero h1 {
        font-size: 2.2rem !important;
    }
    .hero p {
        font-size: 1rem !important;
    }
    .section-title {
        font-size: 2rem !important;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}