/* Main Stylesheet - Modern Automotive Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #0f172a;
    /* Deep Navy */
    --secondary-color: #1e293b;
    /* Slate */
    --accent-color: #fbbf24;
    /* Amber Gold */
    --accent-hover: #d97706;
    --text-dark: #334155;
    --text-light: #f8fafc;
    --white: #ffffff;
    --bg-light: #f1f5f9;
    --gradient-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

body.ar {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 700;
    margin-left: 5px;
}

.main-nav-bar {
    padding: 15px 0;
}

.main-nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo .site-brand {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    font-size: 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
}

/* Hero Slider */
.home-hero {
    position: relative;
    height: 85vh;
    /* Modern Full Height */
    min-height: 600px;
    background: var(--primary-color);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.hero-slide.active p {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.hero-slide.active .hero-btns {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);

    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;

    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.slider-btn.prev {
    left: 40px;
}

.slider-btn.next {
    right: 40px;
}

/* Brand Marquee */
.brands-section {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.brands-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.brand-item {
    flex-shrink: 0;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

body.ar .brands-track {
    animation: scroll-rtl 30s linear infinite;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* Location Section */
.location-section {
    padding: 0;
    width: 100%;
}

.map-container {
    width: 100%;
    height: 450px;
    background: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0%);
}

/* Services */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.icon-box {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    background: rgba(251, 191, 36, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dark);
    font-size: 1rem;
    color: #64748b;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-widget h3 {
    color: var(--accent-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-inline-start: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav-bar {
        display: none;
    }

    /* Mobile menu needs separate impl or display block */
    .mobile-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .brands-track {
        gap: 30px;
    }

    .slider-btn {
        display: none;
    }

    /* Hide arrows on mobile */
}