﻿/* 
=========================================================
GDF Premium Enterprise Redesign - Bootstrap 5 RTL Optimized
Architecture: Overlapping Stats, Alternating Colors, Pro Gallery
=========================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Kufam:wght@400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* Brand Colors */
    --brand-brown: #5a4b37;
    --brand-gold: #c6a87c;
    --brand-green: #25D366;
    --brand-dark: #110e0c;
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-sand: #fcfbf9;
    --bg-brown: #5a4b37;
    /* Typography */
    --font-heading: 'Kufam', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --header-height: 90px;
    --ticker-height: 40px;
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: #2a241b;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   Unified Section Spacing
========================================================= */
.section-padding {
    padding: 100px 0;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-sand {
    background-color: var(--bg-sand);
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.bg-brown {
    background-color: var(--bg-brown);
    color: #fff;
    position: relative;
    z-index: 1;
}

    .bg-brown h2, .bg-brown h3, .bg-brown h4 {
        color: var(--brand-gold);
    }

    .bg-brown p, .bg-brown .section-subtitle {
        color: rgba(255, 255, 255, 0.85);
    }

/* Premium Dotted Background */
.bg-brown-dotted {
    position: relative;
    z-index: 1;
    background-color: var(--brand-brown);
}

    .bg-brown-dotted::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background-image: radial-gradient(var(--brand-gold) 1.5px, transparent 1.5px);
        background-size: 30px 30px;
        opacity: 0.15;
        pointer-events: none;
    }

/* =========================================================
   Sticky Ticker
========================================================= */
.premium-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--ticker-height);
    background: var(--brand-dark);
    color: #fff;
    z-index: 10000;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    align-items: center;
    animation: scroll-left 40s linear infinite;
}

    .ticker-track:hover {
        animation-play-state: paused;
    }

.ticker-item {
    padding: 0 40px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

    .ticker-item i {
        color: var(--brand-gold);
        margin-left: 10px;
        font-size: 16px;
    }

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* =========================================================
   Header & Nav
========================================================= */
.header-glass {
    position: fixed;
    top: var(--ticker-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

    .header-glass.scrolled {
        height: 85px;
        box-shadow: 0 10px 30px rgba(90, 75, 55, 0.08);
    }

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo img {
    height: 85px;
    transition: var(--transition);
}

.header-glass.scrolled .header-logo img {
    height: 85px;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-right: auto;
    margin-left: 30px;
}

    .main-nav a {
        font-size: 14px;
        font-weight: 700;
        color: var(--brand-brown);
        position: relative;
        padding: 10px 0;
        font-family: var(--font-heading);
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .main-nav a i {
            color: var(--brand-gold);
            font-size: 18px;
        }

        .main-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0%;
            height: 3px;
            background: var(--brand-gold);
            transition: var(--transition);
        }

        .main-nav a.active::after, .main-nav a:hover::after {
            width: 100%;
            left: 0;
        }

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-whatsapp {
    background: var(--brand-green);
    color: #fff;
}

    .btn-whatsapp:hover {
        background: #1ebd5a;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
    }

.btn-consult {
    background: var(--brand-gold);
    color: var(--brand-brown);
}

    .btn-consult:hover {
        background: #b5986c;
        color: var(--brand-brown);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(198, 168, 124, 0.2);
    }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 38px;
    color: var(--brand-brown);
    cursor: pointer;
    margin-right: 15px;
}

/* =========================================================
   Hero Section
========================================================= */
.hero-section {
    margin-top: calc(var(--ticker-height) + var(--header-height));
    height: calc(100vh - var(--ticker-height) - var(--header-height));
    min-height: 600px;
    position: relative;
    width: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.swiper-slide-active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(17,14,12,0.95) 0%, rgba(17,14,12,0.3) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
}

.hero-inner {
    max-width: 800px;
    color: #fff;
}

.hero-title {
    font-size: clamp(20px, 3vw, 68px);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: clamp(18px, 2vw, 22px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.8;
}

/* =========================================================
   Stats Overlay Matrix
========================================================= */
.stats-overlap {
    margin-top: -100px;
    position: relative;
    z-index: 20;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(97, 82, 61, 0.08);
    position: relative;
    z-index: 20;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    padding: 45px 20px;
    border-left: 1px solid rgba(0,0,0,0.05);
}

    .stat-item:first-child {
        border-left: none;
    }

.stat-icon {
    font-size: 45px;
    color: var(--brand-gold);
    display: block;
    margin-bottom: 10px;
}

.stat-num {
    font-size: clamp(38px, 4vw, 48px);
    color: var(--brand-brown);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 10px;
}

/* =========================================================
   Typography & Sections
========================================================= */
.tech-title {
    font-size: clamp(38px, 4vw, 56px);
    color: var(--brand-brown);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.tech-divider {
    width: 80px;
    height: 3px;
    background-color: var(--brand-gold);
    margin-bottom: 30px;
}

.tech-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 50px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    flex-shrink: 0;
    color: var(--brand-brown);
    font-size: 26px;
}

.tech-dark-card {
    background-color: var(--brand-dark);
    border-radius: 12px;
    padding: 60px 40px;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.tech-card-title {
    color: var(--brand-gold);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    text-align: right;
}

.tech-card-desc {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    text-align: right;
}

.tech-card-icon {
    text-align: left;
    margin-top: auto;
    color: #fff;
    font-size: 80px;
    opacity: 0.9;
}

.section-header-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.section-title-center {
    font-size: clamp(36px, 4vw, 48px);
    position: relative;
    padding-bottom: 20px;
    color: var(--brand-brown);
}

    .section-title-center::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--brand-gold);
    }

.bg-brown .section-title-center {
    color: var(--brand-gold);
}

    .bg-brown .section-title-center::after {
        background: #fff;
    }

.split-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

    .split-wrap.reverse .split-img-box {
        order: 2;
    }

.split-img-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    height: 500px;
    position: relative;
}

    .split-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.feature-list {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

    .feature-list li {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-brown);
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.bg-brown .feature-icon {
    background: rgba(255,255,255,0.1);
    color: var(--brand-gold);
    border-color: rgba(255,255,255,0.2);
}

.feature-text h4 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--brand-brown);
}

.bg-brown .feature-text h4 {
    color: var(--brand-gold);
}

.feature-text p {
    font-size: 16px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.bg-brown .feature-text p {
    color: rgba(255, 255, 255, 0.85);
}

/* CEO Profile Quote */
.ceo-block {
    text-align: center;
    position: relative;
}

.ceo-quote-mark {
    font-size: 200px;
    color: var(--brand-gold);
    opacity: 0.1;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.ceo-text {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 400;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    color: var(--brand-brown);
}

/* Accreditations Grid */
.accreditations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.acc-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

    .acc-card:hover {
        transform: translateY(-10px);
        background: rgba(255,255,255,0.1);
        border-color: var(--brand-gold);
    }

.acc-icon {
    font-size: 50px;
    color: var(--brand-gold);
    margin-bottom: 20px;
    display: inline-block;
}

/* =========================================================
   Mobile View Side-Drawer Menu (Improved)
========================================================= */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 100000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
}

    .mobile-nav-overlay.active {
        right: 0;
    }

.mobile-nav-dim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .mobile-nav-dim.active {
        opacity: 1;
        pointer-events: auto;
        cursor: pointer;
    }

.close-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--brand-brown);
    font-size: 40px;
    cursor: pointer;
}

.mobile-logo-wrap {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 20px;
    margin-bottom: 30px;
    text-align: center;
}

    .mobile-logo-wrap img {
        height: 50px;
        margin: 0 auto;
    }

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .mobile-links a {
        color: var(--brand-brown);
        font-size: 18px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        font-family: var(--font-heading);
    }

        .mobile-links a i {
            color: var(--brand-gold);
            font-size: 20px;
        }

/* =========================================================
   Responsive Adjustments
========================================================= */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .stat-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

        .stat-item:nth-child(even) {
            border-left: none;
        }

    .split-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

        .split-wrap.reverse .split-img-box {
            order: 0;
        }
}

@media (max-width: 991px) {
    .desktop-nav, .header-actions {
        display: none !important;
    }

    .mobile-toggle {
        display: block !important;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --ticker-height: 40px;
    }

    .hero-section {
        margin-top: 120px;
        height: 60vh;
        min-height: 500px;
    }

    .stats-overlap {
        margin-top: -50px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-left: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 30px 10px;
    }

        .stat-item:last-child {
            border-bottom: none;
        }

    .section-padding {
        padding: 80px 0;
    }

    .tech-dark-card {
        min-height: 300px;
        padding: 40px 20px;
        margin-top: 30px;
    }
}


/* =========================================================
   PRO Mobile View Side-Drawer Menu & Animations
========================================================= */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: #ffffff;
    z-index: 100000;
    /* Added rounded corner for a premium app feel */
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
    box-shadow: -15px 0 50px rgba(0,0,0,0.15);
    /* Ultra smooth physics-based slide animation */
    transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    padding: 50px 30px;
}

    .mobile-nav-overlay.active {
        right: 0;
    }

/* Glassmorphism Dimmed Background */
.mobile-nav-dim {
    position: fixed;
    inset: 0;
    background: rgba(17, 14, 12, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .mobile-nav-dim.active {
        opacity: 1;
        pointer-events: auto;
    }

.close-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--brand-brown);
    font-size: 45px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .close-nav:hover {
        transform: rotate(90deg);
        color: var(--brand-gold);
    }

.mobile-logo-wrap {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

    .mobile-logo-wrap img {
        height: 55px;
    }

/* Staggered Link Animation for Pro Feel */
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .mobile-links a {
        color: var(--brand-brown);
        font-size: 20px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        font-family: var(--font-heading);
        /* Prepare links for slide-in animation */
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

/* Animate links when menu is active with delay */
.mobile-nav-overlay.active .mobile-links a {
    opacity: 1;
    transform: translateX(0);
}

    .mobile-nav-overlay.active .mobile-links a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-nav-overlay.active .mobile-links a:nth-child(2) {
        transition-delay: 0.15s;
    }

.mobile-nav-overlay.active .mobile-nav-overlay.active .mobile-links a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-links a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-nav-overlay.active .mobile-links a:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-overlay.active .mobile-links a:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-links a i {
    color: var(--brand-gold);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.mobile-links a:hover i {
    transform: scale(1.2);
}

/* =========================================================
   Responsive Adjustments (Cleaned up)
========================================================= */
@media (max-width: 1024px) {
    .split-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

        .split-wrap.reverse .split-img-box {
            order: 0;
        }
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: block !important;
    }

    .stat-box {
        border-left: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

        .stat-box:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --ticker-height: 40px;
    }

    .hero-section {
        margin-top: 120px;
        height: 65vh;
        min-height: 500px;
    }

    .stats-overlap {
        margin-top: -50px;
    }
}


/* Update the Mobile Drawer Background to Dark */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--brand-dark); /* Changed to dark brand color */
    z-index: 100000;
    box-shadow: -15px 0 50px rgba(0,0,0,0.5); /* Stronger shadow for depth */
    border-left: 2px solid var(--brand-gold); /* Premium gold accent line */
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
}

/* Update Close Button Color */
.close-nav {
    position: absolute;
    top: 25px;
    left: 25px;
    background: none;
    border: none;
    color: #ffffff; /* Changed to white */
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-nav:hover {
        color: var(--brand-gold);
    }

/* Update Logo Separator */
.mobile-logo-wrap {
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Lightened border for dark bg */
    padding-bottom: 25px;
    margin-bottom: 40px;
    text-align: center;
}

/* Update Link Colors for Dark Background */
.mobile-links a {
    color: #ffffff; /* Changed to white */
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Lightened border */
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

    .mobile-links a:hover {
        color: var(--brand-gold);
    }

    .mobile-links a i {
        color: var(--brand-gold);
        font-size: 22px;
    }


.mobile-nav-overlay {
    position: fixed;
    top: 0;
    bottom: 0; /* This strictly forces the menu to stretch from the very top to the absolute bottom */
    height: 100%; /* Mobile fallback */
    right: -100%;
    width: 100%;
    max-width: 380px;
    background: var(--brand-dark);
    z-index: 100000;
    box-shadow: -15px 0 50px rgba(0,0,0,0.5);
    border-left: 2px solid var(--brand-gold);
    border-radius: 0; /* Removed rounded corners so it flushes perfectly with the screen frame */
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 50px 30px;
    overflow-y: auto; /* Ensures the menu can scroll smoothly if the phone screen is very small */
}


/* Fix for Mobile Simulator Scroll Clipping */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    /* Removed the direct overflow-x: hidden from here */
}

/* Ensure the footer clears all previous floating/absolute elements */
footer {
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both;
}




.page-header-banner {
    background: linear-gradient(135deg, rgba(17, 14, 12, 0.9) 0%, rgba(90, 75, 55, 0.6) 100%), url('/images/slide-military-uniform-001.jpg') center/cover no-repeat;
    padding: 160px 0 80px;
    text-align: center;
    border-bottom: 4px solid var(--brand-gold);
}

.breadcrumb-wrap a {
    color: var(--brand-gold);
    font-weight: 600;
}

.breadcrumb-wrap span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
}

.value-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
}

    .value-card:hover {
        transform: translateY(-10px);
        border-color: var(--brand-gold);
        box-shadow: 0 20px 40px rgba(198, 168, 124, 0.15);
    }

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-sand);
    color: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--brand-gold);
    color: #fff;
    transform: scale(1.1);
}



/* 
=========================================================
   Contact Page Specific Styles (contact-...)
========================================================= 
*/

.contact-header-banner {
    background: linear-gradient(135deg, rgba(17, 14, 12, 0.92) 0%, rgba(90, 75, 55, 0.85) 100%), url('/images/portfolio-002.jpg') center/cover no-repeat;
    padding: 180px 0 100px;
    text-align: center;
    border-bottom: 4px solid var(--brand-gold);
}

.contact-breadcrumb a {
    color: var(--brand-gold);
    font-weight: 600;
}

.contact-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .contact-info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--brand-gold);
        transform: scaleX(0);
        transition: transform 0.4s ease;
        transform-origin: right;
        z-index: -1;
    }

    .contact-info-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(90, 75, 55, 0.1);
    }

        .contact-info-card:hover::before {
            transform: scaleX(1);
        }

.contact-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(198, 168, 124, 0.15);
    color: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon-box {
    background: var(--brand-gold);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.contact-card-title {
    color: var(--brand-brown);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.contact-card-text, .contact-card-link {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    display: block;
    transition: color 0.3s ease;
}

    .contact-card-link:hover {
        color: var(--brand-gold);
    }

/* Contact Form & Map Section */
.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.contact-form-control {
    background: var(--bg-sand);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
    width: 100%;
}

    .contact-form-control:focus {
        background: var(--bg-white);
        border-color: var(--brand-gold);
        box-shadow: 0 5px 15px rgba(198, 168, 124, 0.15);
        outline: none;
    }

    .contact-form-control::placeholder {
        color: #a39c94;
    }

.contact-map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

    .contact-map-wrapper iframe {
        width: 100%;
        height: 100%;
        border: none;
        filter: grayscale(20%) contrast(1.1);
        transition: filter 0.5s ease;
    }

    .contact-map-wrapper:hover iframe {
        filter: grayscale(0%) contrast(1);
    }

@media (max-width: 991px) {
    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .contact-map-wrapper {
        min-height: 400px;
        margin-top: 30px;
    }
}

/* 
=========================================================
   Vision Page Specific Styles (vision-...)
========================================================= 
*/

.vision-header-banner {
    background: linear-gradient(135deg, rgba(17, 14, 12, 0.9) 0%, rgba(90, 75, 55, 0.8) 100%), url('/images/Saudi-Army.jpg') center/cover no-repeat;
    padding: 180px 0 100px;
    text-align: center;
    border-bottom: 4px solid var(--brand-gold);
}

.vision-breadcrumb a {
    color: var(--brand-gold);
    font-weight: 600;
}

.vision-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.vision-quote-box {
    background: var(--bg-white);
    border-right: 4px solid var(--brand-gold);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative;
    margin-top: 40px;
}

.vision-quote-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(198, 168, 124, 0.3);
}

.vision-value-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
}

    .vision-value-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(90, 75, 55, 0.08);
        border-color: var(--brand-gold);
    }

.vision-value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(198, 168, 124, 0.1);
    color: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    transition: var(--transition);
}

.vision-value-card:hover .vision-value-icon {
    background: var(--brand-gold);
    color: #fff;
    transform: rotateY(180deg);
}

.vision-2030-wrapper {
    background: var(--brand-dark);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.vision-2030-content {
    padding: 60px;
    position: relative;
    z-index: 2;
}

.vision-2030-bg {
    position: absolute;
    inset: 0;
    background: url('/images/portfolio-002.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
    filter: grayscale(100%);
}

.vision-2030-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--brand-dark) 40%, transparent 100%);
    z-index: 1;
}

@media (max-width: 991px) {
    .vision-2030-gradient {
        background: linear-gradient(0deg, var(--brand-dark) 60%, transparent 100%);
    }

    .vision-2030-content {
        padding: 40px 20px;
    }
}


/* 
=========================================================
   Mission Page Specific Styles (mission-...)
========================================================= 
*/

.mission-header-banner {
    background: linear-gradient(135deg, rgba(17, 14, 12, 0.92) 0%, rgba(90, 75, 55, 0.85) 100%), url('/images/mission.jpg') center/cover no-repeat;
    padding: 180px 0 100px;
    text-align: center;
    border-bottom: 4px solid var(--brand-gold);
}

.mission-breadcrumb a {
    color: var(--brand-gold);
    font-weight: 600;
}

.mission-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.mission-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .mission-checklist li {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        font-size: 18px;
        color: var(--text-muted);
        font-weight: 700;
        font-family: var(--font-heading);
    }

    .mission-checklist i {
        color: var(--brand-gold);
        font-size: 24px;
        margin-left: 15px;
        background: rgba(198, 168, 124, 0.15);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }

    .mission-checklist li:hover i {
        background: var(--brand-gold);
        color: #fff;
        transform: scale(1.1);
    }

/* Premium Progress Bars */
.mission-progress-wrapper {
    margin-bottom: 30px;
}

.mission-progress-label {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--brand-brown);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
}

.mission-progress-bar-bg {
    background: rgba(97, 82, 61, 0.1);
    border-radius: 50px;
    height: 10px;
    width: 100%;
    overflow: hidden;
}

.mission-progress-fill {
    background: linear-gradient(90deg, var(--brand-gold) 0%, #d5bfa1 100%);
    height: 100%;
    border-radius: 50px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.2, 1);
}

/* Added Profile Cards */
.mission-profile-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    transition: var(--transition);
    text-align: center;
}

    .mission-profile-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(90, 75, 55, 0.1);
        border-color: var(--brand-gold);
    }

.mission-profile-icon {
    font-size: 60px;
    color: var(--brand-gold);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.mission-profile-card:hover .mission-profile-icon {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .mission-checklist li {
        font-size: 16px;
    }
}

/* Dark Theme for Contact Form */
.contact-form-dark {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
}

    .contact-form-dark .contact-form-control {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }

        .contact-form-dark .contact-form-control:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--brand-gold);
            box-shadow: 0 5px 15px rgba(198, 168, 124, 0.1);
        }

        .contact-form-dark .contact-form-control::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

/* 
=========================================================
   Core Values Page Specific Styles (values-...)
========================================================= 
*/

.values-header-banner {
    background: linear-gradient(135deg, rgba(17, 14, 12, 0.92) 0%, rgba(90, 75, 55, 0.85) 100%), url('/images/core-values.jpg') center/cover no-repeat;
    padding: 180px 0 100px;
    text-align: center;
    border-bottom: 4px solid var(--brand-gold);
}

.values-breadcrumb a {
    color: var(--brand-gold);
    font-weight: 600;
}

.values-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.value-pro-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .value-pro-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(90, 75, 55, 0.1);
        border-color: var(--brand-gold);
    }

.value-pro-icon {
    width: 70px;
    height: 70px;
    background: rgba(198, 168, 124, 0.15);
    color: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.value-pro-card:hover .value-pro-icon {
    background: var(--brand-gold);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Watermark Number inside the card */
.value-pro-number {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 140px;
    font-weight: 900;
    color: rgba(198, 168, 124, 0.05);
    z-index: -1;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.value-pro-card:hover .value-pro-number {
    color: rgba(198, 168, 124, 0.1);
    transform: scale(1.05);
}




.contact-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%; 
    min-height: 450px; 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

    .contact-map-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }