/* --- Global Styles --- */
:root {
    --primary-color: #364A6F;
    --blue-accent: #3D4E8F;
    --white: #FFFFFF;
    --gray-text: #646464;
    --dark-bg: #1E2C35;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    overflow-x: hidden;
}
/* أضف هذا الجزء في بداية ملف about.css */




/* تعديل هيرو سكشن ليتناسب مع المنيو */
.about-hero {
    position: relative;
    width: 100%;
    height: 538px;
    background: #1E2C35;
    background-image: linear-gradient(rgba(19, 26, 32, 0.55), rgba(19, 26, 32, 0.55)), url('../assets/hero.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    margin-top: 60px; /* لتعويض مكان المنيو */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
.about-hero {
    position: relative;
    width: 100%;
    height: 538px;
    background: var(--dark-bg);
    background-image: linear-gradient(rgba(19, 26, 32, 0.55), rgba(19, 26, 32, 0.55)), url('../assets/about-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
}

.hero-title {
    font-family: 'Palanquin', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin: 10px 0 0 0;
    text-transform: capitalize;
}

/* --- Content Sections --- */
.about-content-area {
    padding: 100px 0;
    position: relative;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

/* Image Wrappers with Figma Gradient Box */
.image-wrapper {
    flex: 1;
    position: relative;
    padding: 20px;
}

.gradient-box {
    position: absolute;
    width: 342px;
    height: 276px;
    background: linear-gradient(52.56deg, rgba(37, 180, 248, 0) 0%, rgba(42, 114, 149, 0.11) 81.76%, #73ACDA 126.21%);
    border-radius: 10px;
    z-index: 1;
}

.gradient-box.top-right { top: -20px; right: -20px; }
.gradient-box.bottom-left { bottom: -20px; left: -20px; transform: rotate(180deg); }

.about-img {
    position: relative;
    width: 100%;
    max-width: 426px;
    height: auto;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Text Styling */
.text-wrapper {
    flex: 1.2;
}

.section-h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: 0.015em;
    color: var(--gray-text);
}

.deco-line {
    width: 146px;
    height: 4px;
    background: linear-gradient(226.42deg, rgba(42, 128, 208, 0.38) 0%, #204997 98.32%);
    border-radius: 3px;
    margin-bottom: 20px;
}

/* --- Footer Section --- */
.footer-main {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-desc {
    font-size: 16px;
    line-height: 23px;
    max-width: 450px;
    margin: 20px 0;
}

.footer-nav h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--white);
    padding-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .about-row, .about-row.reverse { flex-direction: column; text-align: center; }
    .hero-title { font-size: 40px; }
    .gradient-box { display: none; }
}
/* تنسيق الموبايل */
@media (max-width: 991px) {
    .menu-toggle {
        display: block; /* إظهار الزر في الموبايل فقط */
        z-index: 1001;
    }

    .nav-links {
        display: none; /* إخفاء المنيو العادي */
        flex-direction: column;
        position: fixed;
        right: 0;
        top: 0;
        background: #364A6F; /* لون مناسب للمنيو */
        width: 70%;
        height: 100vh;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav-links.active {
        display: flex; /* إظهاره عند الضغط على الزر */
    }
}
/* --- Navbar Base --- */
.navbar {
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* إخفاء زر التوجل في الويب */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* --- Mobile Responsive (أقل من 991px) --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex; /* إظهار الزر الآن */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* مخفية تماماً جهة اليمين */
        top: 0;
        height: 100vh;
        width: 70%;
        background: #1E293B; /* لون غامق للمنيو */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    /* عندما يتم الضغط على الزر (بواسطة JS) */
    .nav-links.active {
        right: 0; /* تظهر المنيو */
    }

    /* تحويل زر التوجل لشكل X عند الفتح */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
.navbar .logo img 
{
width:64px;
}
/* ============================================================
   MOBILE ONLY STYLES (Applies only to screens <= 991px)
   ============================================================ */
@media (max-width: 991px) {
    
    /* 1. Navbar & Toggle Menu */
    .menu-toggle {
        display: flex; /* Shows the hamburger icon */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Hidden off-screen by default */
        top: 0;
        height: 100vh;
        width: 75%;
        background: #1E293B; /* Dark background for mobile menu */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.4s ease-in-out;
        z-index: 2000;
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0; /* Slides in when active */
    }

    .nav-links a {
        font-size: 20px;
    }

    /* 2. Hero Section Adjustments */
    .hero-section {
        height: 400px; /* Reduced height for mobile screens */
    }

    .hero-title {
        font-size: 32px; /* Smaller font to prevent text overflow */
        padding: 0 15px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 5px;
    }

    /* 3. About Content Rows */
    .about-content-area {
        padding: 60px 0;
    }

    .about-row, 
    .about-row.reverse {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
        gap: 30px;
        margin-bottom: 60px;
    }

    .text-wrapper, 
    .image-wrapper {
        width: 100%;
        flex: none;
    }

    /* 4. Images & Decorations */
    .about-img {
        max-width: 100%; /* Image takes full width of container */
        height: auto;
    }

    .gradient-box {
        display: none; /* Hide decorative boxes to keep mobile view clean */
    }

    .deco-line {
        margin: 0 auto 15px; /* Center the decorative line */
    }

    .section-h2 {
        font-size: 24px;
    }

    .section-p {
        font-size: 16px;
        padding: 0 10px;
    }

    /* 5. Footer Adjustments */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column footer */
        text-align: center;
        gap: 30px;
    }

    .footer-desc {
        margin: 15px auto;
    }
}