/* ======================= Global Styles & Variables ======================= */
:root {
    --primary-color: #d4af37;
    --dark-bg: #121212;
    --secondary-dark-bg: #1e1e1e;
    --light-text: #e0e0e0;
    --white-color: #ffffff;
    --font-family: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ======================= Preloader Animation ======================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ======================= Buttons & Header ======================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.header.scrolled {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 1.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white-color);
}

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

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

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

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ======================= Hero Section ======================= */
#hero {
    height: 100vh;
    background: url('../imges/car.png') no-repeat center center/cover;
    background-attachment: 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 top, rgba(18, 18, 18, 1), rgba(18, 18, 18, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ======================= General Section Styling ======================= */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title .subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white-color);
    margin-top: 0.5rem;
}
/* ======================= Highlight Section (IMPROVED) ======================= */
.highlight-section {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 2.5rem 0; 
}

.highlight-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; 
    align-items: center;
    gap: 2rem;
}

.highlight-icon i {
    font-size: 3.5rem;
}

.highlight-content {
    flex-grow: 1; 
}

.highlight-content h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.highlight-content p {
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
}

.highlight-action .btn {
    background-color: transparent; 
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
    padding: 12px 30px;
    font-size: 1rem;
    box-shadow: none;
}
.highlight-action .btn:hover {
    background-color: var(--dark-bg); /* <<-- يصبح أسود عند المرور */
    color: var(--primary-color); /* <<-- والنص يصبح ذهبيًا */
}

/* Responsive for Highlight Section */
@media (max-width: 768px) {
    .highlight-grid {
        flex-direction: column; /* تحويله لعمود واحد */
        text-align: center;
        gap: 1.5rem;
    }
    .highlight-content p {
        max-width: 100%;
    }
    /* عكس ترتيب العناصر في الموبايل ليكون الزر في الأسفل */
    .highlight-icon { order: 1; }
    .highlight-content { order: 2; }
    .highlight-action { order: 3; }
}

/* ======================= About Us Section ======================= */
#about {
    background-color: var(--dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* ======================= Fleet Section ======================= */
#fleet {
    background-color: var(--secondary-dark-bg);
}

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

.car-card {
    background-color: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.car-image {
    height: 250px;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.car-info p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ======================= Scroll Animation ======================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================= Services Section ======================= */
#services {
    background-color: var(--dark-bg);
}

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

.service-card {
    background-color: var(--secondary-dark-bg);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

/* ======================= Why Choose Us Section ======================= */
#why-us {
    background-color: var(--secondary-dark-bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-image img {
    width: 100%;
    border-radius: 10px;
}

.section-title.text-right {
    text-align: right;
}

.section-title.text-right h2 {
    line-height: 1.4;
}

.why-us-content>p {
    text-align: right;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    text-align: right;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.features-list h4 {
    font-size: 1.3rem;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}
/* ======================= Stats / Achievements Section ======================= */
#stats {
    background-color: var(--secondary-dark-bg);
    background-image: linear-gradient(rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.95)), url('images/hero-background.jpg');
    background-attachment: fixed;
    background-size: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background-color: rgba(18, 18, 18, 0.5);
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white-color);
}

.stat-card p {
    font-size: 1.1rem;
    color: #aaa;
}

/* ======================= Contact Section (CTA) ======================= */
#contact {
    background-color: var(--secondary-dark-bg);
}
#contact p {
    max-width: 600px;
    margin: -2rem auto 2.5rem auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 280px; 
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.cta-button i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.cta-button:hover i {
    color: var(--dark-bg);
}

.cta-button div {
    text-align: right;
}

.cta-button span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
}

.cta-button strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ======================= Locations Section ======================= */
#locations {
    background-color: var(--secondary-dark-bg);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.location-card {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.location-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.location-card p i {
    margin-left: 8px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    line-height: 0; /* To remove extra space below iframe */
}

/* Responsive for Maps */
@media (max-width: 480px) {
    .locations-grid {
        grid-template-columns: 1fr; 
    }
}
/* ======================= Footer ======================= */
.footer {
    background-color: var(--dark-bg);
    border-top: 1px solid #2a2a2a;
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.4rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.footer-col p {
    line-height: 1.8;
    color: #888;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    transition: color 0.3s, padding-right 0.3s;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 8px;
}

.contact-list a,
.contact-list span {
    color: var(--light-text);
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}
/* Styling for Social Media Icons in Footer */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2a2a2a; 
    border-radius: 50%;
    color: var(--light-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

/* ======================= Floating Buttons ======================= */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}

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

.whatsapp-btn {
    background-color: #25D366;
}

/* ======================= Initial Load Animation ======================= */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .btn-lg {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-icon {
        display: block;
    }

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

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-content {
        margin-top: 2rem;
    }

    .section-title.text-right {
        text-align: center;
    }

    .why-us-content>p {
        text-align: center;
    }

    .features-list li {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
      .nav-btn {
        display: none;
    }
       .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        background-color: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%;
        height: 100vh;
        transition: right 0.5s ease-in-out;
        z-index: 999;
        padding-top: 6rem;
    }

    .nav-links.active {
        right: 0; 
    }

    .menu-icon {
        display: block;
        z-index: 1000;
    }

    .nav-btn {
        display: none;
    }
    .logo {
        font-size: 1.5rem; 
        gap: 10px;        
    }
    .logo img {
        height: 40px;      
    }
}
#achievements-dynamic {
    background-color: var(--dark-bg);
}

.achievements-container {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Space between rows */
}

.achievement-row {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.achievement-image, .achievement-content {
    flex: 1; /* Both take up 50% of the width */
}

    .achievement-image img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }

    .achievement-content h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--primary-color);
        line-height: 1.6;
    }

/* Reverse layout for odd rows */
.achievement-row.reverse {
    flex-direction: row-reverse;
}

/* Responsive for achievements */
@media (max-width: 768px) {
    .achievement-row, .achievement-row.reverse {
        flex-direction: column; /* Stack vertically on mobile */
        text-align: center;
        gap: 2rem;
    }
}

