:root {

    --primary: #0F2B46;
    --primary-light: #1A3D5C;
    --secondary: #1A6B5A;
    --secondary-light: #22897a;
    --accent: #C8A26E;
    --accent-light: #D4B48A;
    --accent-dark: #B08A55;


    --primary-gradient: linear-gradient(135deg, #0F2B46 0%, #1A6B5A 100%);
    --accent-gradient: linear-gradient(135deg, #C8A26E 0%, #D4B48A 100%);
    --hero-gradient: linear-gradient(135deg, #0A1F33 0%, #0F2B46 30%, #133A5C 60%, #1A6B5A 100%);


    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F6F3;
    --bg-tertiary: #F0EDE8;
    --bg-card: #FFFFFF;
    --bg-hero: var(--hero-gradient);
    --bg-dark: #0A1F33;






    --text-primary: #1A1A2E;
    --text-secondary: #5A6474;
    --text-muted: #8A94A4;
    --text-light: #FFFFFF;


    --border-color: #E8E4DF;
    --border-accent: var(--accent);
    --border-light: rgba(255, 255, 255, 0.15);


    --shadow-sm: 0 2px 8px rgba(15, 43, 70, 0.06);
    --shadow: 0 8px 30px rgba(15, 43, 70, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 43, 70, 0.12);
    --shadow-accent: 0 8px 30px rgba(200, 162, 110, 0.2);


    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 100px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 75px;
}

/* Global Font Performance */
@font-face {
    font-family: 'Cairo';
    font-display: swap;
    src: local('Cairo');
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: local('Inter');
}


[data-theme="dark"] {
    /* Premium Dark Theme Palette - Chic & Deep */
    --bg-primary: #050A10;
    /* Deepest Navy/Black */
    --bg-secondary: #0A1520;
    /* Slightly lighter for sections */
    --bg-tertiary: #112233;
    /* For cards/interactive elements */
    --bg-card: #0E1C2E;

    /* Luxury Gradient for Hero/Backgrounds */
    --bg-hero: linear-gradient(135deg, #020609 0%, #050A10 40%, #0A1520 100%);
    --bg-dark: #020609;

    /* High Contrast & Elegant Text */
    --text-primary: #FFFFFF;
    /* Pure white for sharp contrast */
    --text-secondary: #B0B8C4;
    /* Soft cool aesthetics */
    --text-muted: #64748B;

    /* Refined Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Chic Glows */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 0 25px rgba(200, 162, 110, 0.15);
    /* Subtle Gold Glow */
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}


body.ltr {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

body.ltr .hero-text,
body.ltr .section-header,
body.ltr .about-content,
body.ltr .footer-col {
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-content p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}


.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 30px rgba(15, 43, 70, 0.08);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(5, 10, 16, 0.85);
    /* Matches new dark bg */
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 900;
}

.logo-text h2 {
    font-size: 1rem;

    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.main-header:not(.scrolled) .logo-text h2 {
    color: white;
}

.logo-text span {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    white-space: nowrap !important;
    text-align: start;
    width: max-content;
}


@media (max-width: 1300px) {
    .logo-text span {
        display: none;
    }
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;

}

.main-nav a {
    padding: 8px 10px;

    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;

}

.main-header:not(.scrolled) .main-nav a {
    color: rgba(255, 255, 255, 0.9);

}

.main-header:not(.scrolled) .main-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(15, 43, 70, 0.08);
}

[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .main-nav a.active {
    color: var(--accent);
    /* Gold/Lit up */
    background: rgba(200, 162, 110, 0.1);
    box-shadow: 0 0 15px rgba(200, 162, 110, 0.2);
    /* Glow effect */
}

.main-header:not(.scrolled) .main-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .main-header:not(.scrolled) .main-nav a.active {
    color: var(--accent);
    background: rgba(200, 162, 110, 0.15);
}


@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.lang-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(15, 43, 70, 0.06);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 1rem;
}

.main-header:not(.scrolled) .theme-toggle,
.main-header:not(.scrolled) .lang-toggle {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: var(--primary);
    color: white;
}

.lang-toggle {
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}


.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.main-header:not(.scrolled) .mobile-toggle span {
    background: white;
}


/* ===== Premium Mobile Sidebar ===== */
/* ===== Premium Mobile Sidebar ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(2, 6, 9, 0.98) 0%, rgba(10, 21, 32, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    color: white;
}

body.ltr .mobile-sidebar {
    right: auto;
    left: -100%;
    transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-sidebar.active {
    right: 0;
}

body.ltr .mobile-sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 30px 20px;
    /* Adjusted padding */
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo h3 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-logo span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: rotate(180deg);
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Custom Scrollbar */
.sidebar-content::-webkit-scrollbar {
    width: 3px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Ultra-Chic Mobile Menu (Refined & Compact) */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Tighter, coordinated spacing */
    padding: 20px 10px 30px;
}

.mobile-nav-item {
    display: flex;
    align-items: baseline;
    gap: 15px;
    font-size: 1.35rem;
    /* Smaller, sophisticated size */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 10px;
    /* Slight padding for touch area */
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent !important;
    border: none !important;
    border-radius: 8px;
    /* Subtle radius on hover */
}

.mobile-nav-item .nav-text {
    position: relative;
    letter-spacing: 0.5px;
    /* Clean tracking */
    transition: transform 0.4s ease;
}

/* Elegant Number Style */
.mobile-nav-item .nav-number {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    /* Smaller accent number */
    color: var(--accent);
    font-weight: 400;
    opacity: 0.5;
    background: transparent;
    padding: 0;
    border: none;
    width: 20px;
    /* Fixed width for alignment */
    text-align: center;
}

.mobile-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03) !important;
    /* Very subtle hover bg */
    transform: translateX(5px);
    padding-right: 15px;
}

body.rtl .mobile-nav-item:hover {
    padding-right: 15px;
    padding-left: 0;
    transform: translateX(-5px);
}

/* Active State - Pure Light */
.mobile-nav-item.active {
    color: var(--accent);
    background: linear-gradient(90deg, rgba(200, 162, 110, 0.08) 0%, transparent 100%) !important;
    border-left: 2px solid var(--accent) !important;
}

body.rtl .mobile-nav-item.active {
    background: linear-gradient(-90deg, rgba(200, 162, 110, 0.08) 0%, transparent 100%) !important;
    border-left: none !important;
    border-right: 2px solid var(--accent) !important;
}

.mobile-nav-item.active .nav-text {
    font-weight: 500;
    text-shadow: 0 0 15px rgba(200, 162, 110, 0.4);
    /* Refined styling glow */
    transform: translateX(10px);
}

body.rtl .mobile-nav-item.active .nav-text {
    transform: translateX(-10px);
}





.mobile-nav-item:hover {
    color: white;
    padding-right: 0;
    transform: translateX(10px);
}

body.rtl .mobile-nav-item:hover {
    padding-right: 0;
    padding-left: 0;
    transform: translateX(-10px);
}



/* Active State - Pure Light */
.mobile-nav-item.active {
    color: var(--accent);
    background: transparent;
    border: none;
}

.mobile-nav-item.active .nav-text {
    font-weight: 500;
    text-shadow: 0 0 30px rgba(200, 162, 110, 0.6);
    /* Strong Gold Glow */
    transform: translateX(15px);
}

body.rtl .mobile-nav-item.active .nav-text {
    transform: translateX(-15px);
}

.mobile-nav-item.active .nav-number {
    color: var(--accent);
    opacity: 1;
    font-weight: 700;
}

.mobile-sidebar.active .mobile-nav-item {
    animation: slideUpFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered Delays */
.mobile-sidebar.active .mobile-nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(8) {
    animation-delay: 0.45s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(9) {
    animation-delay: 0.5s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(10) {
    animation-delay: 0.55s;
}

.mobile-sidebar.active .mobile-nav-item {
    animation: slideUpFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered Delays */
.mobile-sidebar.active .mobile-nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(8) {
    animation-delay: 0.45s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(9) {
    animation-delay: 0.5s;
}

.mobile-sidebar.active .mobile-nav-item:nth-child(10) {
    animation-delay: 0.55s;
}


/* Sidebar Footer & CTA */
.sidebar-footer {
    padding: 30px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Separator */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.sidebar-cta {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(200, 169, 126, 0.2);
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 126, 0.3);
    background: white;
    /* Hover effect */
}

.sidebar-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: none;
    /* Removed internal border */
}

.sidebar-contact-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.sidebar-contact-link:hover {
    color: white;
}

.sidebar-social {
    display: flex;
    gap: 15px;
}

.sidebar-social .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.sidebar-social .social-icon:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}


.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 4px 20px rgba(15, 43, 70, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(15, 43, 70, 0.3);
}

.btn-accent {
    background: var(--accent-gradient);
    color: var(--primary) !important;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(200, 162, 110, 0.25);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 162, 110, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary) !important;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px);
}

.btn-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white !important;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1rem;
}


.section {
    padding: 100px 0;
}

.bg-secondary {
    background: var(--bg-secondary);
}

.bg-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
}

.bg-dark .section-header h2 {
    color: white;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.bg-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}




.btn-consult {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(200, 162, 110, 0.3);
    white-space: nowrap;

}

.btn-consult:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 162, 110, 0.4);
}


@media (max-width: 1200px) {
    .btn-consult {
        display: none;
    }
}


.header-actions {
    gap: 8px;

}


.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 15px;

}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    color: var(--primary);

}

[data-theme="dark"] .section-header h2 {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #fff;

}

.bg-dark .section-header h2 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 43, 70, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;

    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}


html[dir="rtl"] .modal-close {
    right: auto;
    left: 15px;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

[data-theme="dark"] .modal-header h3 {
    color: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(200, 162, 110, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
}


.service-card,
.service-detail-card {
    cursor: pointer;
    transition: var(--transition);
}

.service-card:hover,
.service-detail-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
}


[data-theme="dark"] .section.bg-secondary {
    background: var(--bg-secondary);
}

[data-theme="dark"] .section.bg-dark {
    background: #060F1A;

}

[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .exp-card,
[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] p {
    color: var(--text-secondary);

}


[data-theme="dark"] .service-card h3,
[data-theme="dark"] .service-detail-card h3,
[data-theme="dark"] .exp-card h3 {
    color: #fff;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .service-detail-card p,
[data-theme="dark"] .exp-content p {
    color: #cbd5e1;
}

[data-theme="dark"] .modal-close {
    color: #fff;
}


body[dir="rtl"] .section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}




.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.blog-image {
    height: 200px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-category {
    color: var(--accent);
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-card:hover .read-more {
    color: var(--accent);
    gap: 10px;
}


.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

.article-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.article-meta-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body h3 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-inline-start: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-footer-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.share-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--accent);
    color: white;
}


.sidebar-widget {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

body[dir="rtl"] .sidebar-widget h3::after {
    left: auto;
    right: 0;
}

.sidebar-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: block;
}

.sidebar-list a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

body[dir="rtl"] .sidebar-list a:hover {
    transform: translateX(-5px);
}

.badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(200, 162, 110, 0.12);
    color: var(--accent-dark);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 16px;
    border: 1px solid rgba(200, 162, 110, 0.2);
}

.bg-dark .badge {
    background: rgba(200, 162, 110, 0.15);
    color: var(--accent);
    border-color: rgba(200, 162, 110, 0.3);
}


.page-header {
    padding: 140px 0 60px;
    background: var(--hero-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, var(--bg-primary));
}

.page-header .badge {
    background: rgba(200, 162, 110, 0.2);
    color: var(--accent);
    border-color: rgba(200, 162, 110, 0.3);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white !important;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}


.features-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card,
.service-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.feature-card .icon,
.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    background: rgba(200, 162, 110, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3,
.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p,
.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}


.partners-track {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.partner-card {
    padding: 24px 36px;
    background: #fff !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: center;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.bg-dark .partner-card {
    background: #fff !important;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.bg-dark .partner-card:hover {
    border-color: var(--accent);
    color: var(--primary);
}

.partner-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}


.cta-parallax {
    padding: 100px 0;
    background: var(--hero-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-parallax::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 60%;
    height: 200%;
    background: rgba(200, 162, 110, 0.03);
    transform: rotate(25deg);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: white !important;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--accent-gradient) !important;
    color: var(--primary) !important;
}


.modern-footer {
    background: linear-gradient(180deg, #0A1F33 0%, #06111F 100%);
    color: #94A3B8;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

body.ltr .footer-col h3::after {
    right: auto;
    left: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 45px;
    height: 45px;
}

.footer-logo .logo-text h2 {
    color: white;
    font-size: 1.2rem;
}

.footer-logo .logo-text span {
    color: var(--accent);
}

.footer-bio {
    font-size: 0.92rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #94A3B8;
    font-size: 1rem;
}

.social-icons a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-col a {
    font-size: 0.92rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-col a::before {
    content: '←';
    font-size: 0.8rem;
    color: var(--accent);
}

body.ltr .links-col a::before {
    content: '→';
}

.links-col a:hover {
    color: var(--accent);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
}

.contact-list .icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(200, 162, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-list .icon-circle svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.contact-list a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}


.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    z-index: 998;
}


.testimonials-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 0 80px;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 15px;
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.95);
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-slide .success-card {
    height: 100%;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-slide .success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.slider-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 162, 110, 0.3);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
}

@media (min-width: 992px) {
    .testimonial-slide {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(200, 162, 110, 0.35);
    transition: var(--transition);
    color: var(--primary);
    font-size: 1.3rem;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(200, 162, 110, 0.45);
}

.floating-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.contact-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.contact-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-panel h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.contact-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.contact-panel a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}


.text-center {
    text-align: center !important;
}

.mt-3 {
    margin-top: 24px;
}

.mt-5 {
    margin-top: 48px;
}

.mb-5 {
    margin-bottom: 48px;
}


@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .partners-track {
        gap: 16px;
    }


    .partner-card {
        min-width: 140px;
        padding: 16px 20px;
        font-size: 0.85rem;
    }
}


/* Partner Styles moved to general section */

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}


/* Dark theme logo fixes moved */

/* Performance Optimizations for Large Sections */
.section,
.footer-col,
main {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

/* Footer Spacing Fixes - Robust Override */
.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    /* Space between columns */
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 25px;
    /* Space below headings */
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Space between links */
}

.footer-links li {
    margin-bottom: 0;
}

.footer-newsletter {
    margin-bottom: 30px;
    /* Separate newsletter from social icons */
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    /* Ensure space above social icons */
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

/* Specific Contact List Spacing Polish */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Use gap for list items */
}

.footer-contact li {
    margin-bottom: 0;
}

.footer-contact li>div,
.footer-contact li>a {
    gap: 20px !important;
    /* Force wider gap between icon and text */
}

.footer-contact svg {
    color: var(--accent);
    /* Ensure icons are gold */
    width: 24px;
    height: 24px;
    min-width: 24px;
    /* Prevent shrinking */
}

/* ========================================= */
/* NADA-STYLE MOBILE MENU REPLICATION */
/* ========================================= */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -350px;
    /* Hidden off-screen right */
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--primary);
    /* Lamia's Navy */
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 2100;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    direction: ltr;
    /* Reset to LTR for layout ease, handled by flex */
    visibility: hidden;
    overflow-y: auto;
    color: white;
}

/* RTL Support for Slide Direction */
body[dir="rtl"] .mobile-nav {
    right: auto;
    left: -350px;
    /* Hidden off-screen left for RTL */
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    direction: rtl;
}

.mobile-nav.active {
    right: 0 !important;
    visibility: visible !important;
}

body[dir="rtl"] .mobile-nav.active {
    left: 0 !important;
    right: auto !important;
}

.mobile-nav-header {
    display: flex;
    flex-direction: row-reverse;
    /* Logo على اليمين */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-header .logo-text h2 {
    color: white !important;
    font-size: 1.1rem;
    margin: 0;
}

.mobile-nav-header .logo-text span {
    color: var(--accent);
    font-size: 0.7rem;
}

.mobile-nav-header .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.mobile-nav-header .modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    padding: 14px 20px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid rgba(200, 162, 110, 0.15);
    /* Subtle Gold Divider */
    text-decoration: none;
}

.mobile-nav li:last-child a {
    border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(200, 162, 110, 0.1);
    color: var(--accent);
    padding-inline-start: 25px;
    /* Slide effect */
}

/* Developer Credit Badge */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.copyright-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hex-badge {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
    direction: ltr;
    text-decoration: none;
    transition: var(--transition);
}

.hex-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-left {
    background: #fff;
    color: #1a2332;
    font-size: 9px;
    font-weight: 900;
    padding: 6px 10px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.badge-right {
    background: #D90429;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 6px 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .copyright-area {
        justify-content: center;
    }
}

/* Certifications Slider (Mobile Only) */
.certs-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.certs-wrapper {
    display: flex;
    transition: transform 0.5s ease-out;
    width: 100%;
}

.cert-item {
    flex: 0 0 100%;
    padding: 10px;
    box-sizing: border-box;
}

@media (min-width: 993px) {
    .certs-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 28px !important;
        transform: none !important;
        width: auto !important;
    }

    .cert-item {
        flex: none !important;
        padding: 0 !important;
    }

    .slider-dots {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .certs-wrapper {
        display: flex;
    }

    .cert-item {
        flex: 0 0 100%;
    }
}