/* =========================================================================
   Base Styles & Variables
   ========================================================================= */
:root {
    --primary-yellow: #f2b705;
    /* Adjusted for better contrast based on design */
    --primary-dark: #192543;
    --primary-dark-light: #22325a;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #6b7280;
    --bg-light: #eef1f6;
    --bg-white: #ffffff;
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================================================
   Utility Classes
   ========================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-yellow {
    color: var(--primary-yellow) !important;
}

.text-white {
    color: var(--text-light) !important;
}

.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-auto {
    margin-top: auto;
}

.relative {
    position: relative;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-rounded {
    border-radius: 50px;
}

.btn-primary-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-primary-dark:hover {
    background-color: #0e162a;
    color: var(--text-light);
}

.btn-yellow {
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
}

.btn-yellow:hover {
    background-color: #e0b01c;
    color: var(--primary-dark);
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

/* Image Placeholders */
.image-placeholder {
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
}


.form-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container img {
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
    /* حركة بسيطة لما الماوس ييجي عليه */
}

/* =========================================================================
   Navbar
   ========================================================================= */
.navbar {
    background-color: var(--primary-yellow);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 65px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: brightness(1.05) contrast(1.1);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-dark);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.booking-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
/* ضبط قسم الهيرو بالكامل */
.hero {
    position: relative;
    min-height: 100vh;
    /* خليه ياخد طول الشاشة بالكامل */
    display: flex;
    align-items: center;
    /* توسيط المحتوى عمودياً */
    overflow: hidden;
    background-color: var(--primary-dark);
}

/* تنسيق الصورة الخلفية */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* طبقة التعتيم (السر في ظهور النص بوضوح) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* تدرج لوني من اليمين (غامق) لليسار (خفيف) ليظهر الأتوبيس */
    background: linear-gradient(to left,
            rgba(25, 37, 67, 0.9) 20%,
            rgba(25, 37, 67, 0.4) 100%);
    z-index: 2;
}

/* محتوى النص */
.hero-container {
    z-index: 3;
    position: relative;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    padding-top: 2rem;
    /* تقليل المسافة من فوق لتتوسط الشاشة */
}

.hero-title {
    /* تصغير حجم الخط من 5.5rem إلى 3.8rem أو حسب رغبتك */
    font-size: 3.8rem;
    font-weight: 800;

    /* زيادة المسافة بين السطور (ارتفاع السطر) */
    line-height: 1.5;

    margin-bottom: 1.5rem;
    color: var(--text-light);
    /* */
}


.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #cbd5e1;
    /* لون رمادي فاتح مريح للعين */
    max-width: 600px;
}

/* تنسيق الأزرار لتكون بجانب بعضها */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-yellow {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    /* زوايا دائرية خفيفة مثل التصميم */
}

/* =========================================================================
   About Section
   ========================================================================= */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-desc {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.8;
}

.about-visual {
    flex: 1;
    position: relative;
}

.main-about-img {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* تنسيق الكارت العائم ليتطابق مع Frame 7 */
/* تصغير وتنسيق الكارت العائم ليتطابق مع Frame 7 */
/* تنسيق الكارت العائم - شفاف وبدون تأثير زجاجي */
.floating-tech-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    /* شفافية سادة (الرقم 0.6 يتحكم في درجة الشفافية) */
    background-color: rgba(25, 37, 67, 0.6);

    color: var(--text-light);
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* إطار خفيف لتمييز الحواف */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* الأيقونة على اليمين */
.tech-icon {
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    /* بما أن الصفحة RTL، وضع الأيقونة كأول عنصر في الـ HTML يجعلها على اليمين */
}

/* النصوص بجانب الأيقونة */
.tech-info {
    text-align: right;
}

.tech-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.tech-info p {
    font-size: 0.8rem;
    color: #e2e8f0;
    margin: 0;
}

/* =========================================================================
   Fleet Section
   ========================================================================= */
.fleet .section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
}

.fleet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ده أهم سطر عشان الصور متبقاش ممطوطة */
    display: block;
    transition: transform 0.5s ease;
}

.section-header {
    margin-bottom: 4rem;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fleet-card {
    background-color: var(--primary-dark);
    border-radius: 16px;
    overflow: hidden;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-10px);
}

/* حركة الزووم لما تقف بالماوس */
.fleet-card:hover .fleet-img {
    transform: scale(1.1);
}


.card-img-wrap {
    width: 100%;
    height: 220px;
    /* الارتفاع المثالي كما في التصميم */
    overflow: hidden;
    position: relative;
    /* مهم عشان الـ Badge يثبت فوقها */
    background-color: #f8f9fa;
    /* لون احتياطي قبل تحميل الصورة */
}

.card-img-wrap .card-img {
    width: 100%;
    height: 100%;
    background-color: #4b5563;
    /* slightly darker gray for dark cards */
}

.badge-yellow {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-list {
    margin-bottom: 1.5rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.features-list li i {
    color: #4b5563;
    margin-top: 0.25rem;
}

.card-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e2e8f0;
}

.card-footer-feature {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.card-footer-feature i {
    color: var(--primary-yellow);
}

/* =========================================================================
   Core Values Section
   ========================================================================= */
.core-values {
    background-color: var(--primary-dark);
    position: relative;
    padding-top: 4rem;
    padding-bottom: 0;
}

/* Create the angled cut using clip-path */
.core-values-content {
    background-color: var(--bg-white);
    padding: 6rem 0 4rem;
    margin-top: 3rem;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* السطر ده هو اللي هيوسطن العناوين في النص بالظبط */
.core-values-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    /* ضمان إنها واخدة العرض كامل عشان السنترة تظبط */
}

.core-values-header .subtitle {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.core-values-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-hex {
    width: 80px;
    height: 80px;
    background-color: rgba(242, 192, 41, 0.1);
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    border-radius: 16px;
    /* Soft square replacing pure hex for modern look */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transform: rotate(45deg);
}

.icon-hex i {
    transform: rotate(-45deg);
}

.value-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.value-item p {
    color: var(--primary-dark);
    font-weight: 600;
    max-width: 250px;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-logo {
    height: 70px;
    width: auto;
    display: block;
    mix-blend-mode: lighten;
    /* Helps if it has a dark background or to blend white with dark blue */
    filter: brightness(1.2) contrast(1.1);
}

.brand-col p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.social-links a:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
    border-color: var(--primary-yellow);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-yellow);
    margin-top: 0.25rem;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .about-text {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-content {
        padding-top: 4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .core-values-content {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    }

    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .floating-tech-card {
        right: 20px;
        left: 20px;
        bottom: -30px;
        justify-content: center;
    }
}