/* =====================================================
   AFNAN AL-NAHRAIN - CORPORATE WEBSITE STYLESHEET
   Color Scheme: Green-based Professional
   Direction: RTL (Arabic)
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Primary Palette */
    --primary: #1a7a3d;
    --primary-light: #27a651;
    --primary-dark: #115a2b;
    --primary-gradient: linear-gradient(135deg, #1a7a3d 0%, #27a651 50%, #2ecc71 100%);
    --primary-gradient-dark: linear-gradient(135deg, #0d3d1f 0%, #1a7a3d 100%);

    /* Accent */
    --accent: #d4af37;
    --accent-light: #e6c85a;
    --accent-dark: #b8941f;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8faf9;
    --light-gray: #f0f5f2;
    --medium-gray: #6c757d;
    --dark-gray: #2d3436;
    --near-black: #1a1a2e;
    --black: #0a0a0a;

    /* Semantic */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #8899a6;
    --text-on-dark: #e8e8e8;
    --text-on-primary: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 122, 61, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-green: 0 8px 30px rgba(26, 122, 61, 0.25);

    /* Typography */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;

    /* Spacing */
    --section-py: 100px;
    --container-max: 1280px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.25s ease;
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-ar);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
    list-style: none;
}

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

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

/* ── Utility ── */
.section-padding {
    padding: var(--section-py) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title .subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    position: relative;
    padding: 0 20px;
}

.section-title .subtitle::before,
.section-title .subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.section-title .subtitle::before {
    right: -50px;
}

.section-title .subtitle::after {
    left: -50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.9;
}

.section-title .separator {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 18px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--near-black);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-green);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-dark {
    background: var(--near-black);
    color: var(--white);
    border-color: var(--near-black);
}

.btn-dark:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-green);
}

/* ═══════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.header.scrolled .nav-link {
    color: var(--text-primary) !important;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.header.scrolled .logo-img {
    filter: none;
    height: 50px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Preloader logo */
.preloader-logo {
    height: 60px;
    margin-bottom: 20px;
}

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

.nav-link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.header.scrolled .nav-link:hover {
    color: var(--primary) !important;
}

.header.scrolled .nav-link::after {
    background: var(--primary);
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
	margin-right: 169px;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.header.scrolled .hamburger span {
    background: var(--text-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease;
}

.hero-slide.active img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.75) 0%,
        rgba(26, 122, 61, 0.4) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
	margin-top: 86px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 28px;
    background: rgba(26, 122, 61, 0.3);
    border: 1px solid rgba(39, 166, 81, 0.5);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease 0.3s both;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.5s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 35px;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
    animation: fadeInUp 1s ease 1.1s both;
}

.hero-stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    font-family: var(--font-en);
}

.hero-stat p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
    width: 36px;
    border-radius: 6px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */

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

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-green);
}

.about-image-badge h3 {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-en);
    line-height: 1;
}

.about-image-badge p {
    font-size: 0.8rem;
    font-weight: 500;
}

.about-text h6 {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.about-feature h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.about-feature p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(26, 122, 61, 0.1) 0%, rgba(39, 166, 81, 0.1) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-green);
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   PROJECTS / PORTFOLIO SECTION
   ═══════════════════════════════════════════════════════ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 320px 320px 300px;
    gap: 20px;
    grid-template-areas:
        "a a b"
        "a a c"
        "d e f";
}

.project-card.card-a { grid-area: a; }
.project-card.card-b { grid-area: b; }
.project-card.card-c { grid-area: c; }
.project-card.card-d { grid-area: d; }
.project-card.card-e { grid-area: e; }
.project-card.card-f { grid-area: f; }

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.2) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    background: linear-gradient(
        to top,
        rgba(26, 122, 61, 0.9) 0%,
        rgba(26, 122, 61, 0.4) 50%,
        rgba(26, 122, 61, 0.1) 100%
    );
}

.project-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--white);
    margin-bottom: 10px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.project-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.project-card.card-a .project-overlay h4 {
    font-size: 1.6rem;
}

.project-overlay p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   VISION & MISSION SECTION
   ═══════════════════════════════════════════════════════ */

.vision-mission {
    position: relative;
    padding: var(--section-py) 0;
    background: var(--near-black);
    overflow: hidden;
}

.vision-mission::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 122, 61, 0.15) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.vm-card {
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.vm-card:hover {
    border-color: rgba(39, 166, 81, 0.3);
    background: rgba(26, 122, 61, 0.08);
    transform: translateY(-5px);
}

.vm-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 24px;
    box-shadow: var(--shadow-green);
}

.vm-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.vm-card p {
    font-size: 1rem;
    color: var(--text-on-dark);
    line-height: 2;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════
   STATS / COUNTERS
   ═══════════════════════════════════════════════════════ */

.stats-section {
    background: var(--primary-gradient-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 40px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-en);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-item h3 span {
    color: var(--accent);
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    display: none;
}

/* ═══════════════════════════════════════════════════════
   EQUIPMENT SECTION
   ═══════════════════════════════════════════════════════ */

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.equipment-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.equipment-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.equipment-image:hover img {
    transform: scale(1.03);
}

.equipment-content h6 {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.equipment-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.equipment-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 25px;
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}

.equipment-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.equipment-list li:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(-5px);
}

.equipment-list li .check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════
   SUSTAINABILITY / CTA SECTION
   ═══════════════════════════════════════════════════════ */

.sustainability {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.sustainability-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.8) 0%, rgba(26,122,61,0.6) 100%);
}

.sustainability-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.sustainability-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
}

.sustainability-content p {
    font-size: 1.05rem;
    line-height: 2;
    opacity: 0.85;
    margin-bottom: 15px;
}

.sustainability-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.sustainability-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.sustainability-feature .icon {
    width: 40px;
    height: 40px;
    background: rgba(39,166,81,0.3);
    border: 1px solid rgba(39,166,81,0.5);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════════════════ */

.team-card {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.team-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 5px solid var(--primary);
    box-shadow: var(--shadow-green);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.team-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.team-card .position {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   PARTNERS / ACHIEVEMENTS
   ═══════════════════════════════════════════════════════ */

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.achievements-content h6 {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.achievements-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.achievements-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: var(--primary);
    border-radius: var(--radius-full);
    margin-top: 6px;
    box-shadow: 0 0 0 4px rgba(26,122,61,0.2);
}

.timeline-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.achievements-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 100%;
    min-height: 400px;
}

.achievements-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
}

.contact-info-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    background: var(--off-white);
    transition: var(--transition-fast);
    outline: none;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,122,61,0.1);
    background: var(--white);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.footer {
    background: var(--near-black);
    color: var(--text-on-dark);
}

.footer-top {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-slogan {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-main {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.55);
    margin-top: 15px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '←';
    font-size: 0.75rem;
    opacity: 0;
    transition: var(--transition-fast);
    transform: translateX(5px);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 8px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
}

.footer-contact-item i {
    color: var(--primary-light);
    margin-top: 4px;
    font-size: 0.85rem;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ═══════════════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════════════ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-green);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(26,122,61,0.4);
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 122, 61, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(26, 122, 61, 0);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    :root {
        --section-py: 70px;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--near-black);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        color: var(--white) !important;
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
    }

    .nav-cta {
        margin-top: 20px;
    }

    .hamburger {
        display: flex;
    }

    .about-grid,
    .equipment-grid,
    .achievements-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .vm-card {
        text-align: center;
    }

    .vm-card .vm-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "a a"
            "b c"
            "d e"
            "f f";
    }

    .project-card { min-height: 280px; }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat h3 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h1 span {
        display: block;
        margin-top: 8px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .hero-stat {
        min-width: 100px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-top-inner {
        flex-direction: column;
        gap: 20px;
    }

    .sustainability-features {
        flex-direction: column;
        align-items: center;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title .subtitle::before,
    .section-title .subtitle::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .sustainability-content h2 {
        font-size: 1.8rem;
    }

    .about-text h2,
    .equipment-content h2,
    .achievements-content h2 {
        font-size: 1.7rem;
    }

    .vm-card {
        padding: 30px 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "a" "b" "c" "d" "e" "f";
    }

    .project-card {
        min-height: 250px;
    }
}

/* ── Preloader ── */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--near-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    animation: fadeInDown 0.6s ease both;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(39, 166, 81, 0.2);
    border-top: 4px solid var(--primary-light);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

/* ── Mobile Menu Overlay ── */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   LANGUAGE SWITCHER & ENGLISH (LTR) MODE
   ===================================================== */

/* ── Language Switcher Button ── */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-inline-start: 18px;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lang-switcher i {
    font-size: 0.95rem;
}

.lang-switcher:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.header.scrolled .lang-switcher-desktop {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}

.header.scrolled .lang-switcher-desktop:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

/* Mobile lang switcher item inside the menu (hidden on desktop) */
.nav-lang-item {
    display: none;
}

@media (max-width: 992px) {
    /* Hide the standalone desktop switcher on mobile */
    .lang-switcher-desktop {
        display: none !important;
    }

    /* Show the in-menu switcher on mobile */
    .nav-lang-item {
        display: flex;
        justify-content: center;
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    .lang-switcher-mobile {
        margin: 0;
        padding: 10px 28px;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.25);
        color: var(--white);
    }

    .lang-switcher-mobile:hover {
        background: var(--primary);
        border-color: var(--primary);
    }
}

/* ── English (LTR) Mode ── */
html[lang="en"] body {
    direction: ltr;
    font-family: var(--font-en);
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6,
html[lang="en"] .btn,
html[lang="en"] .nav-link,
html[lang="en"] .subtitle,
html[lang="en"] .project-tag,
html[lang="en"] .hero-badge,
html[lang="en"] .footer-title,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] button {
    font-family: var(--font-en);
}

/* Inputs flip to LTR when in English */
html[lang="en"] .form-group input,
html[lang="en"] .form-group textarea {
    direction: ltr;
    text-align: left;
}

/* Hamburger – clear the RTL-specific margin in LTR mode */
html[lang="en"] .hamburger {
    margin-right: 0;
    margin-left: auto;
}

/* Subtitle decorative lines: in RTL we use right; ensure both sides look balanced in LTR too (already centered) */
html[lang="en"] .section-title {
    text-align: center;
}

/* About / Equipment / Achievements text blocks default to start-aligned automatically via direction */
html[lang="en"] .about-text,
html[lang="en"] .equipment-content,
html[lang="en"] .achievements-content {
    text-align: left;
}

/* Sustainability features stay centered */
html[lang="en"] .sustainability-content {
    text-align: center;
}

/* Footer */
html[lang="en"] .footer-contact-item {
    text-align: left;
}

/* Keep phone numbers always LTR regardless */
html[lang="en"] [dir="ltr"] {
    direction: ltr;
}
