/* ==========================================================================
   SAWAAED NAJD ENGINEERING CONSULTANCY (سواعد نجد للاستشارات الهندسية)
   FIXED: High-Contrast stylesheet — no blur, opacity:1 on all content,
   clear gold borders on cards, solid white text everywhere on dark bg.
   ========================================================================== */

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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --primary-green: #0C382C;
    --primary-gold: #C5A059;
    --bg-white: #FFFFFF;
    --text-main: #1A2521;

    --bg-dark-900: var(--bg-white);
    --bg-dark-800: #F4F6F5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F9FA;

    --accent-gold-primary: var(--primary-gold);
    --accent-gold-light: #E0C78F;
    --accent-gold-dark: #A6803D;

    --text-white: #FFFFFF;
    --text-offwhite: var(--text-main);
    --text-muted: #5A6B65;

    --border-gold: var(--primary-gold);
    --border-gold-hover: #B88E1F;

    --ease-fast: 0.3s ease;
    --ease-smooth: 0.5s ease;

    --max-w: 1320px;
    --nav-h: 90px;
}

/* Global Color Application */
body {
    background-color: var(--bg-white);
    color: var(--text-main);
}

h1, h2, h3, h4, h5, h6, .section-title {
    color: var(--primary-green);
}

.gold-text, .gold-title, .tag-badge {
    color: var(--primary-gold) !important;
}

p, li, span, label, blockquote {
    color: var(--text-main);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a:hover, a.active, .nav-links a:hover, .nav-links a.active {
    color: var(--primary-gold) !important;
}

.btn-gold {
    background-color: var(--primary-green) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--primary-green) !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.btn-gold:hover {
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
    color: #FFFFFF !important;
}

footer, .footer, .idx-footer, .sec-dark-focus {
    background-color: var(--primary-green) !important;
    color: #FFFFFF !important;
}

footer p, footer span, footer li, footer a,
.sec-dark-focus p, .sec-dark-focus span, .sec-dark-focus li {
    color: #FFFFFF !important;
}

footer a:hover {
    color: var(--primary-gold) !important;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-dark-900);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Global Typography Overhaul: Cairo & Montserrat */
body, h1, h2, h3, h4, h5, h6, p, a, span, button, li, input, textarea, select {
    font-family: 'Cairo', 'Montserrat', sans-serif !important;
}

body {
    line-height: 1.72;
    background: var(--bg-dark-900);
    color: var(--text-white);
    overflow-x: hidden;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased;
}

/* Font Weights Engineering */
h1, h2 {
    font-weight: 800;
    color: var(--text-white);
}

h3, h4, .nav-links a, .btn-gold {
    font-weight: 600;
    color: var(--text-white);
}

h5, h6 {
    color: var(--text-white);
}

p, li, span, label, blockquote {
    font-weight: 500;
    color: var(--text-offwhite);
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-900);
}

::-webkit-scrollbar-thumb {
    background: #0D3828;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-primary);
}

::selection {
    background: var(--accent-gold-primary);
    color: var(--bg-dark-900);
}

.container {
    width: 90%;
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */
#page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-dark-900);
    border-bottom: 4px solid var(--accent-gold-primary);
    z-index: 999999;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: bottom center;
}

/* ============================================================
   AMBIENT BACKGROUND
   ============================================================ */
.bg-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    top: -15%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, transparent 65%);
}

.ambient-glow-2 {
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 750px;
    height: 750px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 56, 40, 0.3) 0%, transparent 65%);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark-900);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.preloader-logo-img {
    width: 220px !important;
    max-width: 80vw !important;
    height: auto !important;
    object-fit: contain;
    background: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    backface-visibility: hidden !important;
    transform-style: preserve-3d !important; /* يمنع اهتزاز الحواف أثناء التكبير السينمائي */
    animation: splashZoom 2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards !important;
}

.preloader-title {
    color: var(--brand-green, #0C382C) !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-top: 15px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: splashZoom 2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards !important;
}

.preloader-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-gold, #C5A059) !important;
    letter-spacing: 2px;
    margin-top: 5px;
    animation: splashZoom 2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards !important;
}

/* ─── CINEMATIC SPLASH ZOOM ANIMATION ─── */
@keyframes splashZoom {
    0% { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    20% {
        opacity: 1; 
    }
    100% { 
        transform: scale(1.15); 
        opacity: 1; 
    }
}

.preloader-bar-wrapper {
    width: 240px;
    height: 4px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.2);
    overflow: hidden;
    margin-top: 0.8rem;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-gold-primary);
    border-radius: 4px;
}

/* ============================================================
   BUTTONS — solid, high-contrast, no blur
   ============================================================ */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 2.2rem;
    background: #C5A059;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 0.98rem;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
    transition: var(--ease-fast);
    border: none;
    /* Ensure text is never invisible */
    opacity: 1 !important;
}

.btn-gold:hover {
    background: #0C382C;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(12, 56, 44, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 2.2rem;
    background: transparent;
    color: var(--text-white) !important;
    border: 2px solid var(--accent-gold-primary);
    font-weight: 700;
    font-size: 0.98rem;
    border-radius: 4px;
    transition: var(--ease-fast);
    opacity: 1 !important;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #041610 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   PAGE BANNER (sub-pages)
   ============================================================ */
.page-banner {
    position: relative;
    padding: 11rem 0 5rem;
    background: linear-gradient(180deg, rgba(4, 22, 16, 0.93) 0%, rgba(6, 30, 23, 0.97) 100%),
        url('../assets/images/hero_bg.jpg') center / cover no-repeat;
    border-bottom: 2px solid var(--border-gold);
    text-align: center;
}

.page-banner-title {
    font-size: 3.3rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.page-banner-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    margin-bottom: 3.8rem;
}

.section-header.text-center {
    text-align: center;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.4rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-gold-primary);
    border-radius: 30px;
    color: var(--accent-gold-light) !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 1 !important;
}

.section-title {
    font-size: 2.85rem;
    font-weight: 900;
    color: #FFFFFF !important;
    line-height: 1.25;
}

.section-title .gold-text {
    color: var(--accent-gold-primary) !important;
}

.section-desc {
    color: #F8F9FA !important;
    font-size: 1.12rem;
    max-width: 720px;
    margin-top: 1rem;
    line-height: 1.82;
    opacity: 1 !important;
}

.section-header.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SOLID FLOATING NAVBAR ON SCROLL (.glass-header)
   ============================================================ */
header, #navbar, .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    height: 86px;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 9999 !important;
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(4, 22, 16, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* الهيدر العائم الأبيض الصافي عند التمرير */
.glass-header {
    top: 15px !important;
    width: 92% !important;
    max-width: 1200px !important;
    border-radius: 40px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: 70px !important;
    
    background: #FFFFFF !important; 
    background-color: #FFFFFF !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.glass-header .nav-link {
    color: #0C382C !important;
}

.glass-header .nav-link:hover,
.glass-header .nav-link.active {
    color: #C5A059 !important;
}

.glass-header .lang-btn {
    color: #0C382C !important;
    border-color: rgba(12, 56, 44, 0.2) !important;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Crisp Clean Logo on White Background */
.brand-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    z-index: 1005 !important;
    overflow: visible !important;
}

.brand-logo-img {
    height: 48px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 230px !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    transition: height 0.35s ease, transform 0.35s ease !important;
}

.brand-logo-img:hover {
    transform: scale(1.03) !important;
}

#navbar.scrolled .brand-logo-img {
    height: 40px !important;
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
}

/* ════════════════════════════════════════════════
   ARCHITECTURAL LOGO STACKING & CRISP RENDERING
   ------------------------------------------------
   تشخيص الخلل: السبب الرئيسي للغشاوة كان انخفاض سياق التكديس (Z-Index Stacking Context) للرابط الأب <a> وغوصه خلف الـ Overlays وتأثيرات الشفافية، بالإضافة إلى غياب تسريع العتاد وبكسلات الـ JPEG المضغوطة.
   
   ملاحظة للمطور (فحص مصدر الصورة):
   تم تطبيق كود الـ CSS الصارم لمنع التغبيش وإلغاء فلاتر الدمج وتفعيل تسريع العتاد الهاردوير (-moz-crisp-edges & translateZ).
   ولكن للحصول على أفضل دقة لا نائية وبكسلات نقية 100% بدون أي ضبابية ناتجة عن ضغط الـ JPG،
   يُنصح بتزويدنا بملف الشعار بصيغة SVG أو صورة PNG شفافة عالية الدقة (مثل assets/images/سواعد نجد.png).
════════════════════════════════════════════════ */

/* 1. سحب الحاويات الأب للشعار فوق أي طبقات أو Overlays */
.navbar-brand, 
.brand-logo,
.footer-logo,
.footer-logo-link,
.footer-logo-wrapper {
    position: relative !important;
    z-index: 999 !important;
    display: inline-block !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* 2. إجبار صورة الشعار نفسها على التواجد بالطبقة العليا وتفعيل تسريع العتاد والحدّة */
.navbar-brand img,
.brand-logo img,
.brand-logo-img,
.footer-logo img,
.footer-logo-img,
.footer-logo-link img,
.footer-logo-wrapper img,
.site-logo,
.preloader-logo-img,
.header-logo img {
    position: relative !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    image-rendering: -moz-crisp-edges !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    transform: translateZ(0) scale(1) !important; /* تفعيل تسريع الهاردوير لمنع التغبيش */
    backface-visibility: hidden !important;
    will-change: transform;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* 3. تنظيف ومنع العناصر الوهمية من تغطية الشعار */
.navbar-brand::before,
.navbar-brand::after,
.brand-logo::before,
.brand-logo::after,
.footer-logo-link::before,
.footer-logo-link::after,
.footer-logo-wrapper::before,
.footer-logo-wrapper::after {
    display: none !important;
    content: none !important;
}

/* Mobile Actions inside Sidebar (Hidden on Desktop) */
.mobile-nav-actions {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Brand Identity Header Navigation Links & Buttons (Reversed Scheme) */
.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #0C382C !important;                  /* Default: Deep Forest Green */
    position: relative;
    padding: 0.5rem 0;
    opacity: 1 !important;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #C5A059 !important;              /* Luxury Bronze Gold Underline Accent */
    transition: var(--ease-fast);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #C5A059 !important;                  /* Hover/Active: Luxury Bronze Gold */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

/* ============================================================
   HEADER BUTTONS UNIFICATION (Geometry & Visual States)
   ============================================================ */

/* 1. Geometry & Alignment Unification for Header Action Buttons */
.nav-actions .lang-btn,
.nav-actions #navCta,
.nav-actions .btn-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 2. Language Button (Ghost Button Style) */
.nav-actions .lang-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(12, 56, 44, 0.2) !important;
    color: #0C382C !important;
    box-shadow: none !important;
}

.nav-actions .lang-btn span {
    color: #0C382C !important;
    transition: color 0.3s ease !important;
}

.nav-actions .lang-btn svg {
    stroke: #0C382C !important;
    color: #0C382C !important;
    transition: stroke 0.3s ease, color 0.3s ease !important;
}

.nav-actions .lang-btn:hover {
    background: #0C382C !important;
    background-color: #0C382C !important;
    border-color: #0C382C !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.nav-actions .lang-btn:hover span {
    color: #FFFFFF !important;
}

.nav-actions .lang-btn:hover svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
    fill: none !important;
}

/* 3. Contact Button (Solid Button Style) */
.nav-actions #navCta,
.nav-actions .btn-gold {
    background: #0C382C !important;
    background-color: #0C382C !important;
    color: #FFFFFF !important;
    border: 1px solid #0C382C !important;
    box-shadow: 0 4px 12px rgba(12, 56, 44, 0.15) !important;
}

.nav-actions #navCta:hover,
.nav-actions .btn-gold:hover {
    background: #C5A059 !important;
    background-color: #C5A059 !important;
    border-color: #C5A059 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.3) !important;
}





.mobile-toggle span {
    background: #0C382C !important;              /* Dark mobile toggle bars for white header */
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2.5px;
    background: #FFFFFF;
    transition: var(--ease-fast);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Enough darkening so text is legible, no blur */
    filter: brightness(0.38) contrast(1.1);
    transform: scale(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(4, 22, 16, 0.75) 0%,
            rgba(4, 22, 16, 0.55) 45%,
            rgba(4, 22, 16, 0.97) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 940px;
    padding: 4rem 0;
    /* CRITICAL: ensure visible even before GSAP runs */
    opacity: 1;
    visibility: visible;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.6rem;
    background: rgba(212, 175, 55, 0.2);
    border: 1.5px solid var(--accent-gold-primary);
    border-radius: 50px;
    color: #FFFFFF !important;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-gold-primary);
    box-shadow: 0 0 12px var(--accent-gold-primary);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #FFFFFF !important;
    letter-spacing: -0.5px;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-title .gold-accent {
    color: var(--accent-gold-primary) !important;
    display: inline-block;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #F8F9FA !important;
    line-height: 1.85;
    margin-bottom: 2.8rem;
    max-width: 800px;
    font-weight: 500;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(212, 175, 55, 0.35);
    max-width: 800px;
    /* Visible by default */
    opacity: 1 !important;
}

.stat-item {
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold-primary) !important;
    line-height: 1;
}

.stat-label {
    font-size: 0.93rem;
    color: #FFFFFF !important;
    margin-top: 0.5rem;
    font-weight: 700;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about,
.about-section {
    padding: 8rem 0;
    background: var(--bg-dark-900);
    position: relative;
    z-index: 2;
}

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

.about-main-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-gold);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
    opacity: 1 !important;
}

.about-main-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.85s ease;
}

.about-main-img:hover img {
    transform: scale(1.04);
}

.about-experience-card {
    position: absolute;
    bottom: -28px;
    background: #0D3828;
    border: 2px solid var(--accent-gold-primary);
    padding: 1.6rem 2rem;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

body[dir="rtl"] .about-experience-card {
    right: -28px;
    left: auto;
}

body[dir="ltr"] .about-experience-card {
    left: -28px;
    right: auto;
}

.exp-years {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent-gold-primary) !important;
    line-height: 1;
}

.exp-text {
    font-size: 0.94rem;
    color: #FFFFFF !important;
    font-weight: 700;
    margin-top: 0.3rem;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 1 !important;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF !important;
    line-height: 1.72;
    border-right: 4px solid var(--accent-gold-primary);
    padding-right: 1.2rem;
}

body[dir="ltr"] .about-lead {
    border-right: none;
    border-left: 4px solid var(--accent-gold-primary);
    padding-right: 0;
    padding-left: 1.2rem;
}

.about-body {
    color: #F8F9FA !important;
    font-size: 1.08rem;
    line-height: 1.85;
    opacity: 1 !important;
}

.about-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    margin-top: 0.8rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #FFFFFF !important;
    font-weight: 700;
}

.about-feature-item svg {
    width: 22px;
    height: 22px;
    color: var(--accent-gold-primary);
    flex-shrink: 0;
}

/* ============================================================
   SERVICES SECTION & CARDS
   ============================================================ */
#services,
.services-section {
    padding: 8rem 0;
    /* Slightly lighter than bg-dark-900 for differentiation */
    background: #061E17;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    /* Noticeably lighter card background — key to preventing merge */
    background: #0D3828;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 2.8rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
    transition: var(--ease-smooth);
    /* CRITICAL: always visible */
    opacity: 1 !important;
    visibility: visible !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold-primary);
    transform: scaleX(0);
    transition: transform var(--ease-fast);
    transform-origin: left;
}

body[dir="rtl"] .service-card::before {
    transform-origin: right;
}

.service-card:hover {
    background: #124530;
    border-color: var(--accent-gold-primary);
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7), 0 0 22px rgba(212, 175, 55, 0.28);
}

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

.service-icon-box {
    width: 66px;
    height: 66px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.18);
    border: 1.5px solid var(--accent-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    color: var(--accent-gold-primary);
    transition: var(--ease-fast);
}

.service-card:hover .service-icon-box {
    background: #D4AF37;
    color: #041610;
    transform: scale(1.06);
}

.service-icon-box svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 0.9rem;
}

.service-desc {
    color: #F8F9FA !important;
    font-size: 1rem;
    line-height: 1.78;
    flex-grow: 1;
    margin-bottom: 1.6rem;
    opacity: 1 !important;
}

.service-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.service-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.93rem;
    color: #F8F9FA !important;
    font-weight: 600;
}

.service-bullet-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent-gold-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold-primary) !important;
    font-weight: 800;
    font-size: 0.93rem;
    transition: var(--ease-fast);
}

.service-link:hover {
    color: var(--accent-gold-light) !important;
    gap: 0.75rem;
}

/* ============================================================
   PORTFOLIO SECTION & CARDS
   ============================================================ */
/* ============================================================
   PORTFOLIO SECTION & CARDS (Sawaaed Najd Brand Guidelines)
   ============================================================ */
#portfolio,
.portfolio-section {
    padding: 6rem 0;
    background: var(--bg-dark-900, #041610);
    position: relative;
    z-index: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);            /* 3 Columns Desktop */
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF !important;                     /* Bottom White Container */
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
}

.portfolio-card:hover {
    transform: translateY(-6px) !important;            /* Hover Micro-interaction Lift */
    border-color: #C5A059 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.25) !important;
}

.portfolio-img-wrap {
    width: 100% !important;
    height: 280px !important;                          /* Crisp Image Container Height */
    overflow: hidden !important;                       /* Clean Edge Clipping */
    position: relative !important;
}

.portfolio-img-wrap img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;                      /* Crisp Image Rendering */
    object-position: center !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.07) !important;                 /* Inner Zoom Micro-interaction */
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 56, 44, 0.05) 0%, rgba(12, 56, 44, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;                                        /* Soft Deep Forest Green Overlay on Hover */
}

.portfolio-content {
    padding: 1.5rem 1.6rem;
    background: #FFFFFF !important;                     /* Bottom White Section */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.portfolio-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(197, 160, 89, 0.12) !important;
    color: #C5A059 !important;                         /* Category Tag in Luxury Bronze Gold */
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    width: fit-content;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0C382C !important;                         /* Title in Deep Forest Green */
    line-height: 1.4;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-title {
    color: #C5A059 !important;                         /* Hover Title in Luxury Bronze Gold */
}

.portfolio-details {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: #666666 !important;                          /* Location & Scope in Subtle Muted Color */
    font-weight: 500;
}


/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 22, 16, 0.94);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--ease-fast);
    padding: 2rem;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: #0D3828;
    border: 2px solid var(--accent-gold-primary);
    border-radius: 8px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.3);
    transform: scale(0.92);
    transition: var(--ease-smooth);
}

.modal-backdrop.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    width: 38px;
    height: 38px;
    background: #D4AF37;
    border-radius: 50%;
    color: #041610 !important;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--ease-fast);
}

body[dir="rtl"] .modal-close {
    right: 1.2rem;
    left: auto;
}

body[dir="ltr"] .modal-close {
    left: 1.2rem;
    right: auto;
}

.modal-close:hover {
    background: #F3E5AB;
    transform: scale(1.1);
}

.modal-img-box {
    width: 100%;
    height: 340px;
}

.modal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2.4rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    color: #FFFFFF !important;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--accent-gold-primary) !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.modal-text {
    color: #F8F9FA !important;
    line-height: 1.85;
    font-size: 1.05rem;
    opacity: 1 !important;
}

/* ============================================================
   CERTIFICATES SECTION
   ============================================================ */
#certificates,
.certificates-section {
    padding: 8rem 0;
    background: #061E17;
    position: relative;
    z-index: 2;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.cert-card {
    background: #0D3828;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 2.6rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    transition: var(--ease-smooth);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    /* Always visible */
    opacity: 1 !important;
    visibility: visible !important;
}

.cert-card:hover {
    background: #124530;
    border-color: var(--accent-gold-primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.28);
}

.cert-badge-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    border: 2px solid var(--accent-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.22);
}

.cert-badge-icon svg {
    width: 40px;
    height: 40px;
}

.cert-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF !important;
}

.cert-subtitle {
    font-size: 0.9rem;
    color: #F8F9FA !important;
    line-height: 1.7;
    opacity: 1 !important;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact,
.contact-section {
    padding: 8rem 0;
    background: var(--bg-dark-900);
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-info-card {
    background: #0D3828;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    transition: var(--ease-fast);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
}

.contact-info-card:hover {
    border-color: var(--accent-gold-primary);
    background: #124530;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.18);
    border: 1.5px solid var(--accent-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
}

.contact-details-text h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 0.4rem;
}

.contact-details-text p {
    color: #F8F9FA !important;
    font-size: 1rem;
    font-weight: 600;
    opacity: 1 !important;
}

.contact-form-box {
    background: #0D3828;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 2.8rem 2.4rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    opacity: 1 !important;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.15rem;
    background: #041610;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    color: #FFFFFF !important;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--ease-fast);
}

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

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold-primary);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.28);
    background: #061E17;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Toast */
.toast-notice {
    position: fixed;
    bottom: 2rem;
    background: #0D3828;
    border: 2px solid var(--accent-gold-primary);
    padding: 1rem 1.8rem;
    border-radius: 6px;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transform: translateY(110px);
    opacity: 0;
    transition: var(--ease-fast);
}

body[dir="rtl"] .toast-notice {
    right: 2rem;
    left: auto;
}

body[dir="ltr"] .toast-notice {
    left: 2rem;
    right: auto;
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   FOOTER (Arkonec Style 4-Column Grid & Responsive Mobile Logo)
   ============================================================ */
/* ============================================================
   FOOTER (Unified Brand Identity Style)
   ============================================================ */
footer {
    background: #0C382C !important;                 /* Deep Forest Green Background */
    border-top: 1.5px solid #C5A059;
    padding: 80px 0 40px 0;
    position: relative;
    z-index: 2;
    color: #FFFFFF !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    max-width: 180px !important; /* تصغير الحجم نسبياً ليكون أكثر أناقة وتناسباً */
    height: auto !important;
    border-radius: 12px !important; /* حواف ناعمة وأنيقة لتنعيم زوايا الشعار البيضاء */
    overflow: hidden !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important; /* ظل خفيف يبرز الحواف الناعمة */
    padding: 0 !important;
    margin-bottom: 1.2rem;
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    transform: translateZ(0) !important; /* تفعيل تسريع الهاردوير للحدة */
    backface-visibility: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.footer-col-brand p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 320px;
    margin-top: 0.5rem;
    opacity: 1 !important;
}

.footer-col-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #C5A059 !important;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #C5A059 !important;
}

body[dir="rtl"] .footer-col-title::after {
    right: 0;
    left: auto;
}

body[dir="ltr"] .footer-col-title::after {
    left: 0;
    right: auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: #FFFFFF !important;                       /* Pure White Links */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    opacity: 1 !important;
    text-decoration: none;
}

.footer-contact-eng {
    color: #C5A059 !important;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.footer-contact-addr {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 0.4rem;
}

/* Hover effect: Gold color + slide animation */
body[dir="rtl"] .footer-links a:hover {
    color: #C5A059 !important;
    transform: translateX(-6px);
}

body[dir="ltr"] .footer-links a:hover {
    color: #C5A059 !important;
    transform: translateX(6px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    opacity: 1 !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {

    .services-grid,
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 991px) {
    .mobile-toggle {
        display: flex !important;
    }

    .nav-menu,
    .mobile-nav,
    .mobile-menu,
    .offcanvas-body {
        position: fixed;
        top: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: #07231B !important;
        background-color: #07231B !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        padding: 2.5rem 1.5rem;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 10000;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
        overflow-y: auto;
    }

    body[dir="rtl"] .nav-menu,
    body[dir="rtl"] .mobile-nav,
    body[dir="rtl"] .mobile-menu {
        right: -100%;
        left: auto;
        border-left: 2px solid var(--brand-gold, #C5A059);
    }

    body[dir="ltr"] .nav-menu,
    body[dir="ltr"] .mobile-nav,
    body[dir="ltr"] .mobile-menu {
        left: -100%;
        right: auto;
        border-right: 2px solid var(--brand-gold, #C5A059);
    }

    body[dir="rtl"] .nav-menu.active,
    body[dir="rtl"] .mobile-nav.active,
    body[dir="rtl"] .mobile-menu.active {
        right: 0 !important;
    }

    body[dir="ltr"] .nav-menu.active,
    body[dir="ltr"] .mobile-nav.active,
    body[dir="ltr"] .mobile-menu.active {
        left: 0 !important;
    }

    /* 1. Pure White Text for Mobile Sidebar Links */
    .nav-menu a,
    .nav-menu .nav-link,
    .mobile-menu a, 
    .mobile-nav a, 
    .offcanvas-body a,
    .mobile-sidebar-links a {
        color: #FFFFFF !important;               /* Pure White Text for High Contrast */
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        padding: 0.75rem 1.25rem !important;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: color 0.3s ease, background 0.3s ease;
        opacity: 1 !important;
    }

    /* 2. Gold Accent for Active / Hover Link */
    .nav-menu a.active,
    .nav-menu a:hover,
    .nav-menu .nav-link.active,
    .nav-menu .nav-link:hover,
    .mobile-menu a.active, 
    .mobile-menu a:hover,
    .mobile-nav a:hover {
        color: #C5A059 !important;               /* Luxury Bronze Gold Accent on Active/Hover */
        background: rgba(197, 160, 89, 0.12) !important;
    }

    /* 3. Action Buttons & Language Switcher inside Mobile Drawer */
    .mobile-nav-actions {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin-top: 1.2rem;
        padding-top: 1.2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-nav-actions .btn-gold,
    .mobile-btn-cta {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        background: #C5A059 !important;
        color: #07231B !important;
        font-weight: 800 !important;
    }

    /* ─── تنسيق زر تغيير اللغة الكبسولي في القائمة الجانبية للجوال ─── */
    .mobile-nav-actions .lang-btn,
    .mobile-lang-btn,
    .mobile-menu .lang-switcher,
    .mobile-nav .language-btn,
    .mobile-sidebar-lang,
    .mobile-menu [class*="lang"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 8px 18px !important;
        margin-top: 15px !important;
        background-color: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(197, 160, 89, 0.4) !important; /* إطار ذهبي خافت وأنيق */
        border-radius: 30px !important; /* شكل كبسولة ناعم */
        color: #FFFFFF !important; /* نص أبيض واضح مقروء فوق الخلفية الداكنة */
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        width: auto !important;
        opacity: 1 !important;
    }

    .mobile-lang-btn *,
    .mobile-menu .lang-switcher *,
    .mobile-nav .language-btn *,
    .mobile-sidebar-lang * {
        color: #FFFFFF !important;
        stroke: #FFFFFF !important;
        opacity: 1 !important;
    }

    .mobile-nav-actions .lang-btn:hover,
    .mobile-lang-btn:hover,
    .mobile-menu .lang-switcher:hover,
    .mobile-nav .language-btn:hover,
    .mobile-sidebar-lang:hover {
        background-color: rgba(197, 160, 89, 0.15) !important;
        border-color: #C5A059 !important;
        color: #C5A059 !important;
    }

    .mobile-lang-btn:hover *,
    .mobile-menu .lang-switcher:hover *,
    .mobile-nav .language-btn:hover *,
    .mobile-sidebar-lang:hover * {
        color: #C5A059 !important;
        stroke: #C5A059 !important;
    }

    /* Hide desktop top bar action buttons on mobile */
    .nav-actions > .lang-btn,
    .nav-actions > .btn-gold,
    .nav-actions > #navCta {
        display: none !important;
    }

    /* Mobile Clean Transparent Logo Display */
    .brand-logo {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .brand-logo-img {
        height: 38px !important;
        width: auto !important;
        max-width: 180px !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
    }

    /* Display integrated mobile buttons inside sidebar drawer */
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        width: 85%;
        gap: 0.9rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(212, 175, 55, 0.25);
    }

    .mobile-btn-cta {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        padding: 0.85rem 1.4rem;
        font-weight: 800;
        font-size: 0.95rem;
    }

    .mobile-lang-btn {
        width: 100% !important;
        justify-content: center;
        padding: 0.75rem 1.4rem;
        font-size: 0.9rem;
    }

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

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-col-brand {
        align-items: center;
        text-align: center;
    }

    body[dir="rtl"] .footer-links a:hover,
    body[dir="ltr"] .footer-links a:hover {
        transform: translateY(-3px);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about-experience-card {
        position: static;
        margin-top: 1.5rem;
    }

    /* ==========================================================================
       MOBILE RESPONSIVE ALIGNMENT & REFINEMENT PASS (max-width: 991px)
       ========================================================================== */
    /* 1. Buttons & CTA Centering & Mobile Touch Margins */
    .hero-buttons,
    .cta-buttons,
    .section-header .btn,
    .contact-form-box .btn,
    .services-cta,
    .portfolio-cta,
    .about-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn,
    .btn-gold,
    .btn-outline,
    .btn-primary,
    .cta-btn {
        max-width: 320px;
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* 2. Text Alignment & Typography Scaling on Mobile */
    .section-header,
    .page-banner-content,
    .hero-content,
    .about-text-content,
    .contact-header {
        text-align: center;
    }

    .section-subtitle,
    .hero-badge,
    .page-banner-subtitle {
        margin-left: auto;
        margin-right: auto;
        display: inline-block;
    }

    .section-title,
    .page-banner-title {
        font-size: 2.2rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .hero-description,
    .section-description,
    .about-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    /* 3. Dividers & Decorative Line Centering */
    hr,
    .divider,
    .section-title::after,
    .page-banner-title::after,
    .section-header-line,
    .title-underline,
    .footer-col-title::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 4. Single-Column Layout & Structural Spacing */
    .services-grid,
    .portfolio-grid,
    .cert-grid,
    .about-grid,
    .values-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

@media (max-width: 520px) {

    .services-grid,
    .cert-grid,
    .portfolio-grid,
    .hero-stats,
    .values-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title,
    .page-banner-title {
        font-size: 1.85rem;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-description,
    .section-description {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .btn,
    .btn-gold,
    .btn-outline,
    .btn-primary {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 0.8rem 1.4rem;
    }

    .portfolio-img-wrap {
        height: 250px;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.wa-float {
    position: fixed;
    bottom: 2.2rem;
    left: 2.2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #041610;
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    border-radius: 50px;
    padding: 0.75rem 1.4rem 0.75rem 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(212, 175, 55, 0.35);
    text-decoration: none;
    color: #FFFFFF !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        background 0.35s ease,
        border-color 0.35s ease;
    animation: waPulse 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

body[dir="ltr"] .wa-float {
    left: auto;
    right: 2.2rem;
}

.wa-float:hover {
    transform: translateY(-4px) scale(1.04);
    background: #0a2c21;
    border-color: #D4AF37;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.7), 0 0 22px rgba(212, 175, 55, 0.28);
    animation-play-state: paused;
}

.wa-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #25D366;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.wa-float:hover .wa-float-icon {
    transform: rotate(-8deg) scale(1.1);
}

.wa-float-icon svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
    display: block;
}

.wa-float-label {
    color: #FFFFFF !important;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    60% {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 12px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@media (max-width: 480px) {
    .wa-float {
        padding: 0.8rem;
        border-radius: 50%;
    }

    .wa-float-label {
        display: none;
    }
}

/* ==========================================================================
   GOOGLE MAPS EMBED — Dark Mode
   ========================================================================== */
.map-embed-wrapper {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.map-embed-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #B88E1F, #D4AF37, #F3E5AB, #D4AF37, #B88E1F);
    z-index: 2;
    pointer-events: none;
}

.map-embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: none;
    border-radius: 0 0 12px 12px;
    filter: grayscale(85%) contrast(1.15) brightness(0.78) invert(5%);
    transition: filter 0.5s ease;
}

.map-embed-wrapper:hover iframe {
    filter: grayscale(55%) contrast(1.1) brightness(0.88) invert(5%);
}

.map-location-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.2rem;
    background: #0D3828;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.85rem;
    color: rgba(248, 249, 250, 0.75) !important;
    font-weight: 500;
}

.map-location-label svg {
    width: 16px;
    height: 16px;
    color: #D4AF37;
    flex-shrink: 0;
}