/* =============================================
   المتغيرات العامة - CSS Variables
   ============================================= */
:root {
    --primary: #0D7C66;
    --primary-light: #17B89C;
    --primary-dark: #095C4B;
    --primary-rgb: 13, 124, 102;
    --secondary: #1A1A2E;
    --secondary-light: #16213E;
    --accent: #E8F5E9;
    --accent-gold: #D4A843;
    --text-dark: #1A1A2E;
    --text-body: #4A4A5A;
    --text-muted: #8A8A9A;
    --bg-light: #F8FAFB;
    --bg-white: #FFFFFF;
    --bg-cream: #FEFCF3;
    --border-light: #E8ECF0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(var(--primary-rgb), 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
}

/* =============================================
   إعادة تعيين عامة - Reset & Base
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-body);
    background-color: var(--bg-light);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(var(--primary-rgb), 0.02) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.7;
}

::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-dark);
}

/* =============================================
   النافبار - Main Header & Navbar
   ============================================= */
.main-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

.navbar {
    padding: 0;
}

/* === الشعار === */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    margin-left: 0;
    flex-shrink: 0;
}

.navbar-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-ar {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.navbar-brand:hover .brand-ar {
    color: var(--primary);
}

.brand-tr {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* === روابط النافبار === */
.navbar-nav {
    gap: 8px;
}

.navbar-nav .nav-link {
    color: var(--text-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    margin: 10px 0;
}

.nav-icon {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
}

.navbar-nav .nav-link:hover .nav-icon,
.navbar-nav .nav-link.active .nav-icon {
    opacity: 1;
    color: var(--primary);
}

/* === القوائم المنسدلة === */
.dropdown-menu-animated {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 260px;
    animation: ddReveal 0.2s ease;
    background: #fff;
    margin-top: 0;
}

@keyframes ddReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-animated .dropdown-item {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.dropdown-menu-animated .dropdown-item>i {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-light);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.dropdown-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dropdown-menu-animated .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown-menu-animated .dropdown-item:hover>i {
    background: var(--primary);
    color: #fff;
}

.dropdown-menu-animated .dropdown-item:hover .dropdown-item-title {
    color: var(--primary);
}

/* === أيقونات التواصل - ديسكتوب === */
.navbar-social {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 40px;
}

.navbar-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.navbar-social-link:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

/* === زر الهامبرغر === */
.navbar-toggler {
    border: 1px solid var(--border-light);
    padding: 10px;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 10px;
    background: transparent;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger-icon span {
    display: block;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-icon span:nth-child(2) {
    width: 60%;
}

.navbar-toggler:hover .hamburger-icon span:nth-child(2) {
    width: 100%;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span {
    background: var(--primary);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === المحمول === */
.navbar-mobile-footer {
    padding: 16px 0;
    margin-top: 10px;
    border-top: 1px solid var(--border-light);
}

.mobile-social-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.social-circle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   عناوين الأقسام - Section Headings
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.section-title-decorated {
    position: relative;
    padding-bottom: 18px;
}

.section-title-decorated::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
}

.section-title-decorated::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 4px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 18px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* أيقونة بجانب العنوان */
.section-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

/* =============================================
   الأزرار - Buttons
   ============================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    padding: 11px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-custom:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline-custom:hover {
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =============================================
   الفوتر - Footer
   ============================================= */
.site-footer {
    margin-top: auto;
    position: relative;
}

.footer-wave {
    color: var(--secondary);
    line-height: 0;
    margin-bottom: -2px;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-main {
    background: var(--secondary);
    padding: 55px 0 35px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* خلفية ديكورية */
.footer-main::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    pointer-events: none;
}

.footer-main::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.04) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
    pointer-events: none;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    transition: var(--transition);
}

.footer-logo:hover {
    transform: rotate(10deg) scale(1.05);
    border-color: var(--primary-light);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.footer-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    margin: 4px 0 0;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-desc {
    font-size: 0.86rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 14px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.87rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.footer-links a>i {
    width: 20px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
}

.footer-links a:hover>i {
    color: var(--primary-light);
}

.footer-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    width: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--primary-light);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

.footer-links a:hover::before {
    width: 14px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-contact-list li i {
    color: var(--primary-light);
    margin-top: 5px;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-list a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.footer-social-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-bounce);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.3);
}

.footer-bottom {
    background: var(--secondary);
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* =============================================
   زر العودة للأعلى - Scroll to Top
   ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: var(--transition);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: scrollBtnAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scrollBtnAppear {
    from {
        transform: translateY(30px) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
}

.scroll-top-btn:hover::before {
    opacity: 0.5;
    transform: scale(1.4);
}

/* =============================================
   أنيميشن عامة - General Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease both;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* =============================================
   خلفيات ديكورية عامة - Decorative Backgrounds
   ============================================= */

/* أشكال عائمة */
@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatShapeSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(-3deg);
    }
}

@keyframes driftX {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(15px);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* عنصر ديكوري عائم */
.deco-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.deco-shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    animation: floatShape 8s ease-in-out infinite;
}

.deco-shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    bottom: -60px;
    left: -60px;
    animation: floatShapeSlow 10s ease-in-out infinite;
}

.deco-shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.04) 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation: floatShape 12s ease-in-out infinite 2s;
}

/* خطوط ديكورية مائلة */
.deco-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.deco-lines::before,
.deco-lines::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), transparent);
    border-radius: 50%;
}

.deco-lines::before {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    animation: floatShapeSlow 15s ease-in-out infinite;
}

.deco-lines::after {
    width: 350px;
    height: 350px;
    bottom: -150px;
    left: -100px;
    animation: floatShape 12s ease-in-out infinite 3s;
}

/* نقاط ديكورية متحركة */
.deco-dots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 1px, transparent 1px),
        radial-gradient(circle, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 20px;
    animation: driftX 20s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 991.98px) {
    .navbar-brand {
        padding: 10px 0;
    }

    .navbar-logo {
        width: 44px;
        height: 44px;
    }

    .brand-ar {
        font-size: 1.05rem;
    }

    .brand-tr {
        font-size: 0.55rem;
    }

    /* === زر القائمة (الهامبرغر) === */
    .navbar-toggler {
        padding: 10px 12px;
        border: 1.5px solid rgba(var(--primary-rgb), 0.15);
        border-radius: 12px;
        background: linear-gradient(135deg, #ffffff 0%, rgba(var(--primary-rgb), 0.05) 100%);
        box-shadow: 0 3px 12px rgba(var(--primary-rgb), 0.08);
        transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-toggler:hover {
        border-color: var(--primary);
        box-shadow: 0 5px 16px rgba(var(--primary-rgb), 0.2);
        transform: translateY(-1px);
    }

    .navbar-toggler:active {
        transform: translateY(0);
    }

    .navbar-toggler[aria-expanded="true"] {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        border-color: transparent;
        box-shadow: 0 5px 18px rgba(var(--primary-rgb), 0.32);
    }

    /* === الأيقونة الداخلية - 3 خطوط ↔ علامة X === */
    .hamburger-icon {
        width: 22px;
        height: 16px;
        position: relative;
        display: block;
        gap: 0;
    }

    .hamburger-icon span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                    bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s,
                    opacity 0.15s ease 0.15s,
                    background 0.25s ease;
        transform-origin: center;
        margin: 0;
    }

    .hamburger-icon span:nth-child(1) {
        top: 0;
    }

    .hamburger-icon span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-icon span:nth-child(3) {
        bottom: 0;
    }

    /* الحالة المفتوحة - علامة X */
    .navbar-toggler[aria-expanded="true"] .hamburger-icon span {
        background: #ffffff;
        transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s,
                    bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s,
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                    opacity 0.15s ease 0s,
                    background 0.25s ease;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .navbar-collapse {
        background: #fff;
        padding: 12px;
        border-radius: 14px;
        margin-top: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-light);
        max-height: 75vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 12px 14px;
        font-size: 0.95rem;
        margin: 2px 0;
    }

    .dropdown-menu-animated {
        box-shadow: none;
        background: var(--bg-light);
        margin: 0 0 6px;
        border: none;
        padding: 6px;
        animation: none;
    }

    .dropdown-menu-animated .dropdown-item>i {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .dropdown-item-desc {
        display: none;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .footer-wave svg {
        height: 40px;
    }

    /* إخفاء الديكور على الموبايل */
    .deco-shape,
    .deco-lines,
    .deco-dots {
        display: none;
    }
}

@media (max-width: 575.98px) {
    /* === توسيط اسم المؤسسة (عربي + تركي) في النافبار === */
    .main-header .navbar {
        position: relative;
    }

    .navbar-brand {
        padding: 12px 0;
        gap: 0;
    }

    .navbar-logo {
        width: 44px;
        height: 44px;
        position: relative;
        z-index: 2;
    }

    .brand-text {
        position: absolute;
        left: 50%;
        top: 0;
        height: 68px;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 1px;
        max-width: calc(100% - 130px);
        z-index: 1;
        pointer-events: none;
    }

    .brand-ar {
        font-size: 0.92rem;
        line-height: 1.3;
        white-space: nowrap;
    }

    .brand-tr {
        display: block;
        font-size: 0.58rem;
        font-weight: 600;
        letter-spacing: 0.8px;
        line-height: 1.25;
        color: var(--text-muted);
        text-transform: uppercase;
        white-space: nowrap;
    }

    .section-title {
        font-size: 1.35rem;
    }
}

/* =============================================
   Utility Classes
   ============================================= */
.text-primary-custom {
    color: var(--primary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
}