/* =============================================
   AKNAN ENGINEERING - Main Stylesheet
   أكنان الهندسة - ملف التنسيق الرئيسي
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;900&family=Montserrat:wght@300;400;600;700;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary:       #1a3c5e;
    --primary-light: #2563a8;
    --primary-dark:  #0d2540;
    --secondary:     #c8a951;
    --secondary-light: #e8c96a;
    --accent:        #e74c3c;
    --dark:          #0d1b2a;
    --dark2:         #1a2a3a;
    --light:         #f4f7fb;
    --white:         #ffffff;
    --gray:          #6c757d;
    --gray-light:    #e9ecef;
    --text-main:     #1a1a2e;
    --text-muted:    #6c757d;
    --border:        #dee2e6;
    --shadow:        0 4px 24px rgba(26,60,94,0.10);
    --shadow-hover:  0 8px 40px rgba(26,60,94,0.18);
    --radius:        12px;
    --radius-sm:     6px;
    --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-ar:       'Cairo', 'Tajawal', sans-serif;
    --font-en:       'Montserrat', sans-serif;
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-ar);
    color: var(--text-main);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

body.lang-en {
    font-family: var(--font-en);
}

[dir="rtl"] body { font-family: var(--font-ar); }
[dir="ltr"] body { font-family: var(--font-en); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img { max-width: 100%; height: auto; }

ul { list-style: none; }

/* ---- Utilities ---- */
.text-primary-custom  { color: var(--primary) !important; }
.text-secondary-custom{ color: var(--secondary) !important; }
.bg-primary-custom    { background-color: var(--primary) !important; }
.bg-dark-custom       { background-color: var(--dark) !important; }
.section-pad          { padding: 80px 0; }
.section-pad-sm       { padding: 50px 0; }

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-title span {
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.divider-gold {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 2px;
    margin: 16px auto 24px;
}

[dir="rtl"] .divider-gold { margin: 16px auto 24px; }
[dir="ltr"] .divider-gold { margin: 16px 0 24px; }

.text-start-rtl { text-align: right; }
[dir="ltr"] .text-start-rtl { text-align: left; }
[dir="rtl"] .text-start-rtl { text-align: right; }

/* ---- Buttons ---- */
.btn-aknan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-aknan-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(26,60,94,0.3);
}

.btn-aknan-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,60,94,0.4);
    color: var(--white);
}

.btn-aknan-gold {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(200,169,81,0.3);
}

.btn-aknan-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,169,81,0.45);
    color: var(--primary-dark);
}

.btn-aknan-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-aknan-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================
   NAVBAR
   ============================ */
#mainNavbar {
    background: transparent;
    padding: 18px 0;
    transition: var(--transition);
    z-index: 1050;
}

#mainNavbar.scrolled {
    background: rgba(13,37,64,0.97);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ---- Logo Navbar ---- */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand .logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    /* لا نستخدم brightness/invert لأن اللوغو لديه خلفية بيضاء */
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.navbar-brand .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .logo-text .name-ar {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

.navbar-brand .logo-text .name-en {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

#mainNavbar.scrolled .navbar-brand .logo-img {
    height: 46px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    color: var(--white) !important;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 6px 18px !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.lang-switcher-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary-dark) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================
   HERO CAROUSEL SLIDER
   ============================ */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* انتقال fade بدلاً من slide الافتراضي */
.hero-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(0.4,0,0.2,1) !important;
    transform: none !important;
}
.hero-carousel.carousel-fade .carousel-item.active {
    opacity: 1;
}

.hero-carousel .carousel-item {
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* نضع flex فقط على العنصر النشط */
.hero-carousel .carousel-item.active {
    display: flex;
    align-items: center;
}

/* Ken Burns - تكبير بطيء لصورة الخلفية */
.hero-carousel .carousel-item.active {
    animation: kenBurns 8s ease-out forwards;
}
@keyframes kenBurns {
    from { background-size: 110%; }
    to   { background-size: 100%; }
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 35, 0.88) 0%,
        rgba(13, 37, 64, 0.75) 50%,
        rgba(10, 20, 35, 0.85) 100%
    );
    z-index: 1;
}

/* Gold grid pattern on overlay */
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200,169,81,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,81,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    pointer-events: none;
}

.carousel-content-wrapper {
    position: relative;
    z-index: 3;
    padding: 130px 0 90px;
}

.carousel-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(200,169,81,0.18);
    border: 1px solid rgba(200,169,81,0.4);
    color: var(--secondary, #c8a951);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.carousel-item.active .carousel-badge { animation: fadeInDown 0.7s ease 0.1s both; }

.carousel-headline {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.carousel-item.active .carousel-headline { animation: fadeInRight 0.8s ease 0.2s both; }
[dir="ltr"] .carousel-item.active .carousel-headline { animation-name: fadeInLeft; }

.carousel-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 540px;
}

.carousel-item.active .carousel-sub { animation: fadeInRight 0.8s ease 0.35s both; }
[dir="ltr"] .carousel-item.active .carousel-sub { animation-name: fadeInLeft; }

.carousel-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.carousel-item.active .carousel-cta { animation: fadeInUp 0.8s ease 0.5s both; }

/* Indicators - gold dots */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    gap: 8px;
    z-index: 10;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(200,169,81,0.6);
    background: transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background: var(--secondary, #c8a951);
    border-color: var(--secondary, #c8a951);
    width: 28px;
    border-radius: 6px;
    opacity: 1;
    position: relative;
    overflow: hidden;
}
/* شريط تقدم داخل الدوت النشط */
.hero-carousel .carousel-indicators button.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.4);
    animation: dotProgress 5s linear forwards;
    transform-origin: left;
}
@keyframes dotProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Prev / Next arrows */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(200,169,81,0.2);
    border: 1px solid rgba(200,169,81,0.4);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 16px;
    bottom: auto;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(200,169,81,0.6);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 0 6px rgba(200,169,81,0.15);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* ---- Keyframes ---- */
@keyframes fadeInDown  { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft  { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(40px);  } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInUp    { from { opacity:0; transform:translateY(30px);  } to { opacity:1; transform:translateY(0); } }
@keyframes zoomIn      { from { opacity:0; transform:scale(0.85);       } to { opacity:1; transform:scale(1);    } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-60px) rotate(-2deg); } to { opacity:1; transform:translateX(0) rotate(0); } }
@keyframes slideInRight{ from { opacity:0; transform:translateX(60px)  rotate(2deg);  } to { opacity:1; transform:translateX(0) rotate(0); } }
@keyframes flipInX     { from { opacity:0; transform:perspective(400px) rotateX(-30deg); } to { opacity:1; transform:perspective(400px) rotateX(0); } }
@keyframes pulse-gold  { 0%,100% { box-shadow:0 0 0 0 rgba(200,169,81,0.4); } 50% { box-shadow:0 0 0 12px rgba(200,169,81,0); } }
@keyframes shimmer     { from { background-position: -200% center; } to { background-position: 200% center; } }
@keyframes float       { 0%,100% { transform:translateY(0);   } 50% { transform:translateY(-10px); } }
@keyframes borderGrow  { from { width:0; opacity:0; } to { width:60px; opacity:1; } }

/* ============================
   HERO SECTION (fallback)
   ============================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,25,40,0.85) 0%, rgba(26,60,94,0.7) 50%, rgba(13,25,40,0.9) 100%);
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(200,169,81,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,81,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,169,81,0.15);
    border: 1px solid rgba(200,169,81,0.4);
    color: var(--secondary-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-badge i { color: var(--secondary); }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--secondary);
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.8;
}

[dir="rtl"] .hero-subtitle { margin-right: 0; }

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-item .number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    display: block;
    line-height: 1;
}

.hero-stat-item .label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
    display: block;
    font-size: 1.4rem;
    color: var(--secondary);
    margin-top: 6px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-10px); }
}

/* Hero Image Side */
.hero-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(200,169,81,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-logo-ring {
    position: relative;
    display: inline-block;
    padding: 30px;
}

.hero-logo-ring::before,
.hero-logo-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(200,169,81,0.25);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: ringPulse 3s ease-in-out infinite;
}

.hero-logo-ring::before {
    width: 360px; height: 360px;
    animation-delay: 0s;
}

.hero-logo-ring::after {
    width: 440px; height: 440px;
    border-color: rgba(200,169,81,0.12);
    animation-delay: 1.2s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    50%       { opacity: 0.5; transform: translate(-50%,-50%) scale(1.04); }
}

.hero-logo-display {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 40px rgba(200,169,81,0.4));
    max-width: 280px;
    animation: float 4s ease-in-out infinite;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-section { background: var(--white); }

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 8px 30px rgba(200,169,81,0.4);
    text-align: center;
}

[dir="rtl"] .about-experience-badge { right: auto; left: -20px; }

.about-experience-badge .num {
    font-size: 2.2rem;
    line-height: 1;
}

.about-experience-badge .txt {
    font-size: 0.75rem;
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.about-feature-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.about-feature-item i {
    color: var(--secondary);
    font-size: 1rem;
}

.about-feature-item:hover i { color: var(--secondary-light); }

/* ============================
   STATS SECTION
   ============================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(200,169,81,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,81,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.stat-card .icon {
    width: 64px;
    height: 64px;
    background: rgba(200,169,81,0.15);
    border: 2px solid rgba(200,169,81,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--secondary);
    transition: var(--transition);
}

.stat-card:hover .icon {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: rotateY(360deg);
    transition: transform 0.8s;
}

.stat-card .counter {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================
   SERVICES SECTION
   ============================ */
.services-section { background: var(--light); }

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

[dir="rtl"] .service-card::before { transform-origin: right; }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
}

.service-link:hover { color: var(--secondary); gap: 12px; }

/* ============================
   PROJECTS SECTION
   ============================ */
.projects-section { background: var(--white); }

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    background: var(--dark2);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.08); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,25,40,0.92) 0%, rgba(13,25,40,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition);
}

.project-overlay .proj-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}

.project-overlay h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-overlay .proj-meta {
    display: flex;
    gap: 14px;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
}

.project-overlay .proj-meta i { color: var(--secondary); }

.project-card .proj-hover {
    position: absolute;
    inset: 0;
    background: rgba(26,60,94,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .proj-hover { opacity: 1; }

.proj-hover a {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.proj-hover a:hover { transform: scale(1.15); }

/* ============================
   TEAM SECTION
   ============================ */
.team-section { background: var(--light); }

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.team-photo-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-photo-wrapper img { transform: scale(1.05); }

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
}

.team-card-body {
    padding: 22px 18px;
}

.team-card-body h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.team-card-body .position {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.team-social a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
    margin: 0 3px;
}

.team-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================
   NEWS SECTION
   ============================ */
.news-section { background: var(--white); }

.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i { color: var(--secondary); }

.news-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 16px;
    line-height: 1.7;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.news-read-more:hover { color: var(--secondary); gap: 12px; }

/* ============================
   PARTNERS SECTION
   ============================ */
.partners-section {
    background: var(--light);
    padding: 50px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-weight: 700;
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
    min-height: 80px;
}

.partner-item:hover {
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(200,169,81,0.06);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(200,169,81,0.04);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
    position: relative;
}

.footer-brand .logo-img {
    height: 70px;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.2));
    margin-bottom: 6px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px;
}

.footer-brand .logo-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
    margin-inline-end: 8px;
    margin-bottom: 8px;
}

.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

[dir="rtl"] .footer h5::after { left: auto; right: 0; }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a i {
    color: var(--secondary);
    font-size: 0.7rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-inline-start: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.footer-contact-item .icon {
    width: 36px;
    height: 36px;
    background: rgba(200,169,81,0.15);
    border: 1px solid rgba(200,169,81,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

.footer-bottom a {
    color: var(--secondary);
}

/* ============================
   PAGE HERO (inner pages)
   ============================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 140px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(200,169,81,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,81,0.07) 1px, transparent 1px);
    background-size: 50px 50px;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb-item {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
}

.page-hero .breadcrumb-item.active { color: var(--secondary); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============================
   FORMS
   ============================ */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
}

/* ============================
   BACK TO TOP
   ============================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(200,169,81,0.4);
    z-index: 999;
}

[dir="rtl"] #backToTop { right: auto; left: 30px; }

#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); }

/* ============================
   PRELOADER
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
    animation: preloaderForceHide 0.6s ease 4s forwards;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    width: 130px;
    filter: drop-shadow(0 0 20px rgba(200,169,81,0.6));
    margin-bottom: 24px;
    animation: pulse 1.5s ease-in-out infinite;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.95); }
}

.preloader-bar {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 3px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0%   { width: 0%; }
    50%  { width: 70%; }
    100% { width: 100%; }
}

@keyframes preloaderForceHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ============================
   ANIMATIONS
   ============================ */
/* ---- Scroll Animations ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.animate-on-scroll.animated          { opacity:1; transform:none; }

/* أنواع مختلفة */
.animate-on-scroll.anim-left          { transform: translateX(-50px); }
.animate-on-scroll.anim-right         { transform: translateX(50px);  }
.animate-on-scroll.anim-zoom          { transform: scale(0.82); }
.animate-on-scroll.anim-flip          { transform: perspective(600px) rotateX(-25deg); opacity:0; }
.animate-on-scroll.anim-left.animated,
.animate-on-scroll.anim-right.animated,
.animate-on-scroll.anim-zoom.animated,
.animate-on-scroll.anim-flip.animated { opacity:1; transform:none; }

/* تأخيرات */
.animate-on-scroll.delay-1 { transition-delay: 0.10s; }
.animate-on-scroll.delay-2 { transition-delay: 0.20s; }
.animate-on-scroll.delay-3 { transition-delay: 0.32s; }
.animate-on-scroll.delay-4 { transition-delay: 0.45s; }
.animate-on-scroll.delay-5 { transition-delay: 0.60s; }
.animate-on-scroll.delay-6 { transition-delay: 0.75s; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(13,25,40,0.97);
        border-radius: var(--radius);
        padding: 16px;
        margin-top: 12px;
        backdrop-filter: blur(12px);
    }

    .hero-title { font-size: 2rem; }
    .hero-logo-display { max-width: 200px; margin-top: 40px; }
    .section-pad { padding: 60px 0; }
    .about-img-wrapper img { height: 320px; }
    .about-experience-badge { width: 100px; height: 100px; bottom: -15px; }
    .about-experience-badge .num { font-size: 1.7rem; }
}

@media (max-width: 767.98px) {
    .section-pad { padding: 50px 0; }
    .hero-cta-group { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-features { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px 18px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================
   MEDIA / GALLERY CARDS
   ============================ */
.media-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.45s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
/* خط ذهبي يظهر أسفل الكارد عند hover */
.media-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 0 0 3px 3px;
    transition: width 0.4s ease;
}
.media-card:hover::after { width: 100%; }

.media-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 48px rgba(26,60,94,0.18);
}

.media-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0d2540;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-thumb--video .video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d2540 0%, #1a3c5e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card:hover .media-thumb img {
    transform: scale(1.10);
    filter: brightness(0.88);
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), filter 0.45s ease;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,37,64,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200,169,81,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s ease;
}

.play-btn:hover { transform: scale(1.12); }

.media-card--video .media-overlay {
    opacity: 1;
    background: rgba(13,37,64,0.35);
}

.media-card--video:hover .media-overlay {
    background: rgba(13,37,64,0.6);
}

.media-info {
    padding: 14px 16px 16px;
    flex: 1;
}

.media-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.media-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Featured media badge */
.media-card .badge.bg-warning {
    font-size: 0.7rem;
}

