/* Global Overrides */
/* Ensure Mobile Only is hidden on Desktop */
@media screen and (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Ensure Desktop Only is hidden on Mobile */
@media screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* ================= Language Switcher ================= */
.language-dropdown {
    position: relative;
    margin-left: 20px;
    z-index: 1100;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-toggle:hover,
.language-dropdown.active .lang-toggle {
    background: rgba(197, 160, 89, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.lang-toggle i {
    font-size: 1rem;
}

/* Dropdown Menu */
.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    left: auto;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 10px;
    padding: 10px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.language-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 8px 12px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lang-option:hover {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
}

.lang-option.active {
    background: var(--gold);
    color: #1a1a1a;
    font-weight: 700;
}

.lang-flag {
    font-size: 1.2rem;
}

/* ================= RTL Support (Arabic) ================= */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] button {
    letter-spacing: normal !important;
}

[dir="rtl"] .nav-links {
    margin: 0;
    justify-content: flex-start;
    padding-right: 2rem;
}

[dir="rtl"] .nav-links li {
    margin-left: 0;
}

[dir="rtl"] .nav-logo {
    margin-right: 0;
    margin-left: 20px;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
    text-align: right;
}

[dir="rtl"] .nav-actions {
    order: 2;
    margin-right: auto;
}

[dir="rtl"] .nav-actions .language-dropdown {
    order: 2;
    margin: 0;
}

[dir="rtl"] .nav-actions .nav-btn-reservation {
    order: 1;
    margin: 0;
}

[dir="rtl"] .hero-content {
    text-align: center;
}

[dir="rtl"] .main-title,
[dir="rtl"] .hero-event-text,
[dir="rtl"] .subtitle {
    direction: rtl;
}

[dir="rtl"] .about-grid {
    text-align: right;
}

[dir="rtl"] .chef-quote {
    padding-left: 0;
    padding-right: 1rem;
}

/* Fix Contact Info Title Desktop RTL */
[dir="rtl"] .contact-info h2 {
    text-align: right;
    width: 100%;
}

/* Global RTL Contact Info Fixes (Desktop & Mobile) */
[dir="rtl"] .contact-info .info-item {
    text-align: right;
    /* Ensure container aligns right */
}

/* Force LTR direction for Phone/Email but keep Right Alignment visually */
[dir="rtl"] .contact-info .info-item:nth-of-type(2) p,
[dir="rtl"] .contact-info .info-item:nth-of-type(3) p {
    direction: ltr;
    /* Fix number/+212 display */
    display: block;
    width: 100%;
    text-align: right;
    /* Keep it aligned to the icon */
}

[dir="rtl"] .contact-info .info-item h3 {
    text-align: right;
}

[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form textarea,
[dir="rtl"] .contact-form select {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-group label {
    left: auto;
    right: 15px;
    transform-origin: right top;
}

[dir="rtl"] .form-group.floating input:focus~label,
[dir="rtl"] .form-group.floating input:not(:placeholder-shown)~label,
[dir="rtl"] .form-group.floating textarea:focus~label {
    right: 15px;
    left: auto;
}

[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

/* ================= Global Contact Info Styling (Glass Card) ================= */
.contact-info .info-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 15px;
    margin-bottom: 2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.contact-info .info-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-info .info-item i {
    font-size: 2rem;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
    flex-shrink: 0;
}

.contact-info .info-item>div {
    flex: 1;
}

.contact-info .info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info .info-item p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #ddd;
    line-height: 1.5;
    margin: 0;
}


/* ================= Mobile Responsiveness Improvements (Enhanced) ================= */

/* Global Mobile adjustments */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
        /* Increased base size slightly */
    }

    body {
        font-size: var(--font-size-base);
    }

    /* Safety Overflow Fix */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .section {
        padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 5vw, 2rem);
        /* Fluid Padding */
    }

    .container {
        padding: 0 clamp(1rem, 4vw, 2rem);
        width: 100%;
        max-width: 100%;
    }

    /* 2. Band / Marquee Style (Desktop Match) */
    .creative-marquee {
        display: flex !important;
        width: 100%;
        background: linear-gradient(90deg, #b8860b 0%, #efd17d 50%, #b8860b 100%);
        /* Rich Gold Gradient */
        padding: 12px 0;
        margin: 0;
        /* Remove margin to stick or sit cleanly */
        border-top: 1px solid #fff5;
        border-bottom: 1px solid #fff5;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        z-index: 10;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .marquee-content {
        display: flex;
        gap: 3rem;
        animation: marqueeScroll 20s linear infinite;
        align-items: center;
    }

    .marquee-item {
        font-family: 'Cinzel', serif;
        /* Match Desktop Font */
        font-size: 0.85rem;
        color: #222;
        /* Dark text on Gold */
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .marquee-item i {
        font-size: 0.7rem;
        color: #444;
        /* Darker star */
    }

    p {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
        /* Safer Fluid Text */
        line-height: 1.6;
        color: #ddd;
    }
}

/* ================= Mobile Navigation ================= */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 1.5rem;
        background: transparent !important;
        /* Invisible Bar */
        backdrop-filter: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    /* Ensure Nav Items centered */
    .nav-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Fixed Hamburger Styling */
    .hamburger {
        display: block;
        z-index: 10002;
        /* Higher than menu overlay */
        cursor: pointer;
        padding: 10px;
        position: relative;
        /* Ensure it stays on top */
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--white);
        /* White on Hero */
    }

    /* When Scrolled or Menu Open -> Black Bars */
    .navbar.scrolled .hamburger .bar,
    .hamburger.active .bar {
        background-color: #000 !important;
    }

    /* Animation to X */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Full Screen Mobile Menu Overlay */
    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: radial-gradient(circle at center, #111 0%, #000 100%) !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Better for scrolling */
        align-items: center;
        z-index: 10001 !important;

        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        pointer-events: none;

        /* Scrolling and Padding */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 100px 20px 40px;
        /* Space for burger and bottom buffer */
        gap: 2rem;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        /* Center text */
        opacity: 0;
        /* For animation */
    }

    /* Huge Menu Links */
    .nav-links li a {
        font-family: var(--font-body);
        /* Montserrat/Lato cleaner look */
        font-size: 1.5rem;
        /* Slightly smaller than before, cleaner */
        color: #FFFFFF !important;
        /* White text */
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 3px;
        padding: 10px 0;
        display: block;
        transition: color 0.3s;
    }

    .nav-links li a:active,
    .nav-links li a:hover {
        color: var(--gold) !important;
    }

    /* Language Switcher in Menu */
    .language-selector-mobile {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 2rem;
        opacity: 0;
        /* For animation */
        width: 100%;
    }

    .language-selector-mobile .lang-btn {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .language-selector-mobile .lang-btn:hover {
        border-color: var(--gold);
        color: var(--gold) !important;
    }

    .language-selector-mobile .lang-btn.active {
        background: var(--gold);
        border-color: var(--gold);
        color: #000 !important;
        box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    }

    /* Reservation Button in Menu - Fixed Bottom Style */
    .nav-btn-reservation-container.mobile-only {
        display: block !important;
        margin-top: 3rem;
        /* Push to bottom */
        width: 100%;
        opacity: 0;
        text-align: center;
        padding: 0 1rem;
    }

    .nav-btn-reservation-container.mobile-only .nav-btn-reservation {
        position: static;
        width: 100%;
        max-width: 300px;
        /* Constrain width */
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: var(--gold) !important;
        color: #000 !important;
        padding: 1.2rem 0 !important;
        font-size: 1.1rem !important;
        box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3) !important;
        display: inline-block;
        border-radius: 50px;
        letter-spacing: 2px;
    }
}

/* ================= About Section Mobile (FIX) ================= */
@media (max-width: 900px) {
    .broken-grid {
        display: flex;
        flex-direction: column;
        padding: 2rem 0;
        gap: 3rem;
        /* Better separation */
    }

    .grid-image-container {
        width: 100%;
        margin-bottom: 0;
        padding: 0 1rem;
        /* Side padding */
    }

    .grid-image,
    .grid-image-ref {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* ================= RTL Mobile Alignment Fixes ================= */
    [dir="rtl"] .hero-content,
    [dir="rtl"] .about-header,
    [dir="rtl"] .section-title,
    [dir="rtl"] .broken-grid-inner {
        text-align: center !important;
        /* Force center for harmonious mobile look */
    }

    [dir="rtl"] .nav-links a {
        padding: 0;
        /* Remove padding shifts */
        text-align: center;
    }

    /* Ensure no side-margins causing overflow */
    [dir="rtl"] .grid-content-ref {
        margin-right: 0 !important;
        padding: 0 1rem !important;
    }

    /* Remove the negative margin overlap */
    .grid-content,
    .grid-content-ref {
        margin: 0 !important;
        padding: 0 1.5rem !important;
        width: 100%;
        text-align: center;
    }

    .section-text-ref,
    .section-text {
        border: none !important;
        padding: 0 !important;
        margin: 0 auto 2.5rem auto;
        text-align: center;
        font-size: 1.05rem;
        /* Readable size */
        color: #ccc;
        line-height: 1.8;
    }

    .main-heading-ref {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
        color: var(--gold);
    }

    .stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .stat-box {
        text-align: center;
        min-width: 100px;
        flex: 1;
    }

    .quote-card-ref {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        padding: 2rem;
        border-radius: 15px;
        border: 1px solid rgba(197, 160, 89, 0.1);
    }
}

/* ================= Hero Mobile ================= */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 140px;
        /* Increased top clearance */
        padding-bottom: 2rem;
        width: 90%;
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
        /* Better gap */
        align-items: center;
    }

    .gold-button,
    .outline-button {
        width: 100%;
        max-width: 320px;
        /* Constrain width */
        padding: 1rem 2rem;
        /* Comfortable touch target */
        font-size: 0.9rem;
    }

    .subtitle {
        font-size: 0.95rem;
        width: 100%;
        padding: 0.8rem 1.5rem;
        flex-direction: column;
        margin-bottom: 2rem;
        /* Space before buttons */
        background: rgba(255, 255, 255, 0.08);
        /* More visible on mobile */
    }

    .ornament {
        display: none;
    }

    /* Force main title to not break awkwardly */
    .main-title {
        flex-direction: column;
        gap: 0;
    }
}

/* ================= Services & Menu Mobile ================= */
@media (max-width: 900px) {

    .services-grid,
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        /* Consistent Gap */
        padding: 0 0.5rem;
    }

    .service-card,
    .menu-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        /* Full width cards */
        border-radius: 15px;
        /* Softer corners for mobile */
    }

    .service-card-image,
    .menu-card-image {
        height: 220px;
        /* Optimal mobile height */
    }

    .service-card-content,
    .menu-card-content {
        padding: 1.5rem;
    }

    .service-card h3,
    .menu-card h3 {
        font-size: 1.4rem;
    }
}

/* ================= Gallery Mobile ================= */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 1;
    }

    .gallery-item {
        margin-bottom: 1.5rem;
    }
}

/* ================= Footer Mobile ================= */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        text-align: center;
        gap: 2.5rem;
        /* More distinct sections */
        padding: 3rem 1.5rem;
    }

    .footer-col {
        align-items: center;
    }

    .footer-col p,
    .social-links {
        justify-content: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ================= Contact Mobile ================= */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea,
    .contact-form .form-group select {
        height: 55px;
        /* Larger touch targets */
        font-size: 1rem;
    }

    /* ================= iPhone SE / Small Screen Optimization (max-width: 380px) ================= */
    @media (max-width: 380px) {

        /* Tighter global spacing */
        .section {
            padding: 2.5rem 1rem !important;
        }

        /* Hero Compact Mode */
        .hero-content {
            padding-top: 110px;
            /* Bring content up */
            gap: 0.8rem;
        }

        .main-title {
            font-size: 2.1rem !important;
            /* Force smaller title */
        }

        .hero-event-text {
            font-size: 1.2rem;
        }

        /* Smaller Pill */
        .subtitle {
            padding: 8px 16px;
            font-size: 0.8rem;
            margin: 0.5rem auto 1.5rem auto;
        }

        /* Compact Buttons */
        .gold-button,
        .outline-button {
            padding: 0.8rem 1.2rem;
            font-size: 0.85rem;
            max-width: 100%;
        }

        /* Nav Adjustments */
        .navbar {
            padding: 10px 15px;
            /* Use less header space */
        }

        .nav-logo img {
            height: 40px;
            /* Slightly smaller logo */
        }
    }
}

.contact-form .form-group.floating-textarea textarea {
    height: auto;
    padding-top: 1.5rem;
}

.social-links.big {
    justify-content: center;
    gap: 2rem;
}

.social-links.big i {
    font-size: 2rem;
    /* Easy to tap */
}

/* Fix for horizontal scroll overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ================= Global Video Responsiveness ================= */
/* Enforce 16:9 Aspect Ratio on ALL devices for the About Video */
.grid-image-ref {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    object-fit: cover;
}

/* ================= Layout Fixes (Replaces Inline HTML Styles) ================= */
.broken-grid {
    padding-top: 8rem;
    display: flex !important;
    flex-direction: column;
}

.broken-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .broken-grid {
        padding-top: 4rem;
    }

    .broken-grid-inner {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}

/* ================= Mobile Navbar Refinements ================= */
@media screen and (max-width: 768px) {

    /* Hide Navbar on Scroll (Mobile Only) */
    .navbar.scrolled {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Resize Logo for Mobile */
    .nav-logo img {
        height: 40px;
        width: auto;
    }
}

/* ================= Mobile Navbar & Band Enhancements ================= */

/* Language Selector Mobile Style */
.language-selector-mobile {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* Navbar Band Adjustments */
@media (max-width: 900px) {
    .navbar {
        padding: 0.8rem 1.2rem;
        /* Sleeker padding */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle separator */
    }

    .nav-logo img {
        height: 40px;
        /* Adjust logo size */
        width: auto;
    }
}

/* ================= RTL Navbar Overlap Fix ================= */
/* Only apply on Desktop since mobile has a different menu structure */
@media screen and (min-width: 901px) {
    [dir="rtl"] .nav-logo {
        margin-left: 2rem;
        /* Ensure space between logo and links */
        margin-right: 0;
        z-index: 10;
        position: relative;
    }

    [dir="rtl"] .nav-links {
        margin-right: auto;
        /* Push links to the left away from logo if needed */
        margin-left: auto;
        padding-right: 2rem;
        /* Add padding to prevent text touching logo */
    }
}

/* ================= RTL Desktop Overrides for About Section ================= */
@media (min-width: 901px) {
    [dir='rtl'] .grid-content {
        margin-left: 0 !important;
        margin-right: -100px !important;
        /* Move content RIGHT to overlap image */
        text-align: right;
    }

    [dir='rtl'] .grid-content::before {
        left: auto;
        right: -20px;
        border-left: none;
        border-right: 2px solid var(--gold);
    }
}

/* Consolidated in mobile blocks below */

/* ================= Unified Navbar Action Sizes ================= */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-actions .lang-toggle,
.nav-actions .nav-btn-reservation {
    height: 48px !important;
    /* Fixed unified height */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 24px !important;
    /* Unified padding */
    border-radius: 50px !important;
    /* Unified shape */
    font-size: 0.95rem !important;
    /* Unified text size */
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    box-sizing: border-box;
}

/* Specific tweaks to maintain individual identities */
.nav-actions .lang-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}



/* ================= Explicit Mobile Navbar Styling ================= */
@media (max-width: 900px) {
    .navbar {
        background: transparent !important;
        /* Integrated into Hero */
        backdrop-filter: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        position: fixed;
        /* Keep fixed but seamless */
        width: 100%;
        top: 0;
        left: 0;
        padding: 15px 20px;
        z-index: 10005;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: auto;
        transition: background 0.3s ease, padding 0.3s ease;
    }

    /* Reveal background on scroll */
    .navbar.scrolled {
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        padding: 10px 20px;
    }

    /* When menu is open, make navbar background black */
    .hamburger.active~.navbar {
        background: #000 !important;
    }

    .nav-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block !important;
        position: relative;
        z-index: 1002;
    }

    .hamburger .bar {
        background-color: var(--gold) !important;
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
    }

    /* Adjust Logo position */
    .nav-logo img {
        height: 45px;
        margin-top: 5px;
    }

    /* ================= Final Cleanup & Consolidation ================= */
    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
    }

    .nav-links li a {
        font-family: var(--font-heading);
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        color: rgba(255, 255, 255, 0.7) !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 10px 0;
        display: inline-block;
        transition: all 0.3s ease;
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
    }

    .nav-links li a.active {
        color: var(--gold) !important;
        border-top-color: var(--gold);
        border-bottom-color: var(--gold);
        padding: 5px 15px;
    }

    .nav-links li a:hover {
        color: var(--gold) !important;
    }

    /* Language Buttons Refined */
    .language-selector-mobile {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .language-selector-mobile .lang-btn {
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 8px 20px !important;
        border-radius: 50px !important;
        font-size: 0.85rem !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .language-selector-mobile .lang-btn.active {
        background: var(--gold) !important;
        color: #000 !important;
        border-color: var(--gold) !important;
        font-weight: 700;
    }
}

/* ================= Arabic Mobile Footer Fixes ================= */
@media (max-width: 900px) {

    html[lang="ar"] .footer-content,
    html[lang="ar"] .footer-section,
    html[lang="ar"] .footer-logo-container {
        text-align: center !important;
        align-items: center !important;
    }

    html[lang="ar"] .social-links {
        justify-content: center !important;
    }

    html[lang="ar"] .footer-logo {
        margin: 0 auto 1.5rem auto;
    }
}

/* Custom Checkbox Styles for Modal */
.checkbox-group-styled {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--white);
    user-select: none;
    transition: color 0.3s;
}

.custom-checkbox:hover {
    color: var(--gold);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gold);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input~.checkmark {
    background-color: rgba(197, 160, 89, 0.2);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid black;
    /* Dark checkmark on Gold */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    font-family: var(--font-body);
}

/* ================= Hamburger Animation to X ================= */
.hamburger .bar {
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--gold) !important;
    /* Ensure it's visible/gold */
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--gold) !important;
}

/* ================= Mobile Testimonials Enhancement ================= */
@media screen and (max-width: 768px) {
    .testimonial-slide {
        padding: 2.5rem 1.5rem !important;
        background: rgba(255, 255, 255, 0.03) !important;
        /* Subtle card bg */
        border: 1px solid rgba(197, 160, 89, 0.15) !important;
        border-radius: 20px !important;
        margin: 0 10px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .quote-icon i {
        font-size: 2.5rem !important;
        color: var(--gold) !important;
        margin-bottom: 1.5rem !important;
        text-shadow: 0 0 15px rgba(197, 160, 89, 0.3) !important;
        display: block !important;
    }

    .testimonial-text {
        font-size: 1.15rem !important;
        line-height: 1.8 !important;
        color: #e0e0e0 !important;
        margin-bottom: 2rem !important;
        font-style: italic !important;
        font-family: var(--font-subheading) !important;
        /* Elegant font */
    }

    .client-name {
        font-size: 1.3rem !important;
        color: var(--gold) !important;
        font-family: var(--font-heading) !important;
        margin-bottom: 0.5rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    .client-role {
        font-size: 0.9rem !important;
        color: #999 !important;
        font-family: var(--font-body) !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
    }

    .divider-client {
        width: 50px;
        height: 2px;
        background: var(--gold);
        margin: 1.5rem auto;
        opacity: 0.5;
    }

    /* Bigger dots for touch */
    .slider-dots .dot {
        width: 12px !important;
        height: 12px !important;
        margin: 0 8px !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
    }

    .slider-dots .dot.active {
        background-color: var(--gold) !important;
        transform: scale(1.2);
    }

    /* ================= Mobile Contact Info Enhancement (Responsive Sizing) ================= */
    .contact-info .info-item {
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(197, 160, 89, 0.2) !important;
        border-radius: 12px !important;
        /* Slightly smaller radius */
        margin-bottom: 1rem !important;
        /* Reduced margin */
        padding: 1rem !important;
        /* Reduced padding */
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        /* Reduced gap */
        transition: transform 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    /* Ensure text container takes space */
    .contact-info .info-item>div {
        flex: 1 !important;
    }

    .contact-info .info-item:active {
        transform: scale(0.98) !important;
        border-color: var(--gold) !important;
    }

    .contact-info .info-item i {
        font-size: 1.4rem !important;
        /* Smaller icon font */
        color: var(--gold) !important;
        background: rgba(197, 160, 89, 0.1) !important;
        width: 45px !important;
        /* Smaller icon circle */
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        border: 1px solid var(--gold) !important;
        box-shadow: 0 0 10px rgba(197, 160, 89, 0.2) !important;
        flex-shrink: 0 !important;
    }

    .contact-info .info-item h3 {
        font-family: var(--font-heading) !important;
        font-size: 0.95rem !important;
        /* Smaller heading */
        color: var(--gold) !important;
        margin-bottom: 0.2rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .contact-info .info-item p {
        font-family: var(--font-body) !important;
        font-size: 0.85rem !important;
        /* Smaller text */
        color: #ddd !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        word-break: break-word !important;
        /* Prevent overflow */
    }

    /* RTL Specific Fixes for Mobile Contact */
    [dir="rtl"] .contact-info .info-item {
        text-align: right !important;
        /* Ensure text aligns to icon */
    }

    [dir="rtl"] .contact-info h2 {
        text-align: right !important;
        width: 100%;
    }

    /* Fix Phone and Email Direction in RTL */
    [dir="rtl"] .contact-info .info-item:nth-of-type(2) p,
    [dir="rtl"] .contact-info .info-item:nth-of-type(3) p {
        direction: ltr !important;
        display: inline-block !important;
        /* Helps with alignment */
        width: 100% !important;
        text-align: right !important;
        /* Keep aligned to right but characters LTR */
    }
}