/**
 * V Car Rental
 * CSS Architecture: BEM (Block Element Modifier)
 */

/* 1. Design Tokens (CSS Variables)
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary: #E68A00;
    --clr-primary-hover: #cc7a00;
    --clr-bg-dark: #2D2D2D;
    --clr-bg-section: #222222;
    --clr-bg-light: #F8F9FA;
    --clr-bg-card: rgba(255, 255, 255, 0.1);
    --clr-border: rgba(255, 255, 255, 0.15);
    --clr-text-main: #FFFFFF;
    --clr-text-muted: #BBBBBB;

    /* Typography */
    --ff-main: 'Inter', sans-serif;
    --ff-arabic: 'Cairo', sans-serif;

    /* Layout */
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

/* 2. Base Styles
   ========================================================================== */
body {
    font-family: var(--ff-main);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Arabic / RTL font override */
body.rtl,
[dir="rtl"] {
    font-family: var(--ff-arabic);
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-primary {
    color: var(--clr-primary) !important;
}

/* 3. Global Components (Buttons, Links)
   ========================================================================== */
.btn-primary {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
    transform: translateY(-2px);
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #222;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--clr-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* 4. Layout Sections
   ========================================================================== */

/* Navbar */
.main-nav {
    background-color: rgba(18, 18, 18, 0.88) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 1050;
    transition: background-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease,
                padding var(--transition-speed) ease;
}

.main-nav--scrolled {
    background-color: rgba(12, 12, 12, 0.97) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.main-nav--scrolled .main-nav__logo {
    height: 48px !important;
}

.main-nav__logo {
    height: 68px;
    transition: height var(--transition-speed) ease;
    display: block;
}

/* Nav links */
.main-nav__list .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color var(--transition-speed);
    position: relative;
    padding-bottom: 4px;
}

.main-nav__list .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width var(--transition-speed) ease;
}

[dir="rtl"] .main-nav__list .nav-link::after {
    left: auto;
    right: 0;
}

.main-nav__list .nav-link:hover::after,
.main-nav__list .nav-link.active::after {
    width: 100%;
}

.main-nav__list .nav-link:hover,
.main-nav__list .nav-link.active {
    color: var(--clr-primary) !important;
}

/* Language switcher */
.main-nav__lang-switcher .btn {
    font-size: 0.85rem;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-speed) ease;
}

.main-nav__lang-switcher .btn:hover {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('../images/landing/newnew01.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50px;
    left: -50px;
    width: 200px;
    height: 300px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
    transform: rotate(5deg);
}

.hero::after {
    content: '';
    position: absolute;
    top: 120px;
    left: -80px;
    width: 200px;
    height: 300px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
    transform: rotate(5deg);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.2) 0%, rgba(45, 45, 45, 0.9) 70%, rgba(45, 45, 45, 1) 100%);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
}

[dir="rtl"] .hero__title {
    letter-spacing: 0;
}

/* Generic Section with Pattern */
.section--with-pattern {
    background-color: var(--clr-bg-section);
    position: relative;
}

/* About Section — reduced overlay so background image is visible */
.section--light {
    background-image: url('../images/landing/Untitled-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

.section--light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 12, 0.82);
    z-index: 0;
}

.section--light .section__text {
    color: #fff !important;
    max-width: 800px;
    margin-left: auto;
}

[dir="rtl"] .section--light .section__text {
    margin-left: 0;
    margin-right: auto;
}

.section--with-pattern--v {
    position: relative;
}

.section--with-pattern--v::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -100px;
    width: 300px;
    height: 400px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.section--with-pattern--v::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 300px;
    height: 400px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* 5. Specific Components
   ========================================================================== */

/* Stat Cards */
.card--stat {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: all var(--transition-speed) ease;
    height: 100%;
    color: #fff;
}

.card--stat:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--clr-primary);
}

.card--stat__icon {
    width: 60px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card--stat__icon img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0) invert(1);
}

/* Car Cards (inside Swiper) */
.card--car {
    padding: 24px 32px;
    transition: all var(--transition-speed) ease;
    border-radius: 24px;
    cursor: default;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card--car__title {
    font-size: 1.25rem;
    color: var(--clr-text-main);
}

.card--car__img {
    transition: transform 0.4s ease;
    max-height: 240px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.55));
}

.card--car:hover .card--car__img {
    transform: translateY(-8px) scale(1.03);
}

.card--car__desc {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    max-width: 340px;
    margin: 0 auto;
}

/* Swiper — Cars */
.cars-swiper {
    padding-bottom: 56px !important;
    padding-top: 8px !important;
}

.cars-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.cars-swiper .swiper-slide .card--car {
    width: 100%;
}

.cars-swiper .swiper-slide-active .card--car {
    background-color: rgba(230, 138, 0, 0.10);
    border-color: rgba(230, 138, 0, 0.30);
}

/* Swiper Navigation Buttons */
.cars-swiper__prev,
.cars-swiper__next {
    color: var(--clr-primary) !important;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    transition: background-color var(--transition-speed) ease;
}

.cars-swiper__prev::after,
.cars-swiper__next::after {
    font-size: 18px !important;
    font-weight: 700;
}

.cars-swiper__prev:hover,
.cars-swiper__next:hover {
    background-color: var(--clr-primary);
    color: #fff !important;
}

/* Swiper Pagination */
.cars-swiper__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cars-swiper__pagination .swiper-pagination-bullet-active {
    background-color: var(--clr-primary);
    opacity: 1;
    transform: scale(1.7);
}

/* Info Cards */
.info-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    transition: border-color var(--transition-speed);
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.info-card__icon {
    width: 48px;
    height: 48px;
    background-color: #fff;
    color: var(--clr-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.info-card__icon img {
    width: 24px;
    height: 24px;
}

/* Contact Form */
.contact-form {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.contact-form__header {
    background-color: var(--clr-primary);
    color: #fff;
}

.contact-form__body {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .input-group-text {
    background-color: transparent !important;
    border: 1px solid var(--clr-border) !important;
    color: #fff !important;
}

.contact-form .form-control {
    background-color: transparent !important;
    border: 1px solid var(--clr-border) !important;
    color: #fff !important;
    padding: 14px 18px;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--clr-primary) !important;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background-color: #2D2D2D;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.footer__links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    margin-bottom: 12px;
}

.footer__links a:hover {
    color: var(--clr-primary);
}

[dir="ltr"] .footer__links a:hover {
    transform: translateX(5px);
}

[dir="rtl"] .footer__links a:hover {
    transform: translateX(-5px);
}

/* 6. Utility Classes
   ========================================================================== */
.ls-5 {
    letter-spacing: 5px;
}

.opacity-75 {
    opacity: 0.75;
}

.max-width-700 {
    max-width: 700px;
}

.z-1 {
    z-index: 1;
}

.filter-invert {
    filter: brightness(0) invert(1);
}

.ls-2 {
    letter-spacing: 2px;
}

/* 7. Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .main-nav {
        background-color: rgba(12, 12, 12, 0.97) !important;
        padding: 8px 0 !important;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__btns {
        flex-direction: column;
    }

    .hero__btn {
        width: 100%;
    }

    .cars-swiper__prev,
    .cars-swiper__next {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .main-nav__logo {
        height: 70px !important;
        margin: 0;
    }

    .section--light {
        background-attachment: scroll;
    }
}


/* 1. Design Tokens (CSS Variables)
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary: #E68A00;
    --clr-primary-hover: #cc7a00;
    --clr-bg-dark: #2D2D2D;
    --clr-bg-section: #222222;
    --clr-bg-light: #F8F9FA;
    --clr-bg-card: rgba(255, 255, 255, 0.1);
    --clr-border: rgba(255, 255, 255, 0.15);
    --clr-text-main: #FFFFFF;
    --clr-text-muted: #BBBBBB;

    /* Typography */
    --ff-main: 'Inter', sans-serif;

    /* Layout */
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

/* 2. Base Styles
   ========================================================================== */
body {
    font-family: var(--ff-main);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-primary {
    color: var(--clr-primary) !important;
}

/* 3. Global Components (Buttons, Links)
   ========================================================================== */
.btn-primary {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
    transform: translateY(-2px);
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #222;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--clr-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* 4. Layout Sections
   ========================================================================== */

/* Navbar */
.main-nav {
    transition: all var(--transition-speed) ease;
    z-index: 1000;
}

.main-nav--scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 10px 0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.main-nav__logo {
    height: 45px !important;
    transition: all var(--transition-speed) ease;
    margin: -30px 0;
    display: block;
}

.footer__logo {
    height: 100px !important;
    transition: all var(--transition-speed) ease;
    margin: -30px 0;
    display: block;
}

.main-nav__list .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 10px;
    transition: color var(--transition-speed);
}

.main-nav__list .nav-link:hover,
.main-nav__list .nav-link.active {
    color: var(--clr-primary) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('../images/landing/newnew01.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50px;
    left: -50px;
    width: 200px;
    height: 300px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
    transform: rotate(5deg);
}

.hero::after {
    content: '';
    position: absolute;
    top: 120px;
    left: -80px;
    width: 200px;
    height: 300px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
    transform: rotate(5deg);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.2) 0%, rgba(45, 45, 45, 0.9) 70%, rgba(45, 45, 45, 1) 100%);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
}

/* Generic Section with Pattern */
.section--with-pattern {
    background-color: var(--clr-bg-section);
    position: relative;
}

/* 5. Specific Components
   ========================================================================== */

/* Stat Cards */
.card--stat {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: all var(--transition-speed) ease;
    height: 100%;
    color: #fff;
}

.card--stat:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--clr-primary);
}

.card--stat__icon {
    width: 60px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card--stat__icon img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0) invert(1);
}

/* Car Cards */
.card--car {
    padding: 24px;
    transition: all var(--transition-speed) ease;
    border-radius: 24px;
}

.card--car:hover {
    background-color: rgba(230, 138, 0, 0.05);
    transform: scale(1.02);
}

.card--car__img {
    transition: transform var(--transition-speed) ease;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* Info Cards */
.info-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    transition: border-color var(--transition-speed);
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.info-card__icon {
    width: 48px;
    height: 48px;
    background-color: #fff;
    color: var(--clr-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.info-card__icon img {
    width: 24px;
    height: 24px;
}

/* Contact Form */
.contact-form {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.contact-form__header {
    background-color: var(--clr-primary);
    color: #fff;
}

.contact-form__body {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .input-group-text {
    background-color: transparent !important;
    border: 1px solid var(--clr-border) !important;
    color: #fff !important;
}

.contact-form .form-control {
    background-color: transparent !important;
    border: 1px solid var(--clr-border) !important;
    color: #fff !important;
    padding: 14px 18px;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--clr-primary) !important;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background-color: #2D2D2D;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background-image: url('../images/landing/111333.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.footer__links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    margin-bottom: 12px;
}

.footer__links a:hover {
    color: var(--clr-primary);
    transform: translateX(5px);
}

/* 6. Utility Classes
   ========================================================================== */
.ls-5 {
    letter-spacing: 5px;
}

.opacity-75 {
    opacity: 0.75;
}

.max-width-700 {
    max-width: 700px;
}

.z-1 {
    z-index: 1;
}

.filter-invert {
    filter: brightness(0) invert(1);
}

.ls-2 {
    letter-spacing: 2px;
}

/* 7. Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .main-nav {
        background-color: var(--clr-bg-dark);
        padding: 10px 0 !important;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__btns {
        flex-direction: column;
    }

    .hero__btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .section--with-pattern::before {
        background-size: 80% auto;
        background-position: center;
    }
}
