/* ============================================
   Beit Sitti Restaurant - Modern 2026 Design
   ============================================ */

   :root {
    --primary-color: #69341e;
    --primary-dark: #4d2515;
    --primary-light: #8b4a2a;
    --primary-lighter: #a85d3a;
    --secondary-color: #256f5d;
    --secondary-dark: #1a4d42;
    --secondary-light: #2d8a75;
    --secondary-lighter: #3fa890;
    --accent-color: #d4af37;
    --accent-dark: #b8941f;
    --accent-light: #e8c55a;
    --dark-color: #1a1a1a;
    --light-color: #f8f8f8;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --beige-bg: #f5f1eb;
    --cream-bg: #faf8f4;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(105, 52, 30, 0.1);
    --shadow-lg: 0 20px 60px rgba(105, 52, 30, 0.15);
    --shadow-xl: 0 30px 80px rgba(105, 52, 30, 0.2);
    --gradient-primary: linear-gradient(135deg, #69341e 0%, #256f5d 100%);
    --gradient-primary-hover: linear-gradient(135deg, #8b4a2a 0%, #2d8a75 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(105, 52, 30, 0.85) 0%, rgba(37, 111, 93, 0.75) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(105, 52, 30, 0.5) 0%, rgba(37, 111, 93, 0.45) 50%, rgba(105, 52, 30, 0.4) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Playfair Display', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 111, 93, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(105, 52, 30, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

body[dir="ltr"] {
    font-family: 'Playfair Display', 'Cairo', serif;
}

/* Prevent horizontal scroll on mobile only */
@media (max-width: 991.98px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    body[dir="rtl"] {
        text-align: right;
    }

    body[dir="ltr"] {
        text-align: left;
    }
}

/* Enhanced Visual Effects */
/* Menu Card Enhancements */
.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 111, 93, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.menu-card:hover::before {
    opacity: 1;
    top: -30%;
    right: -30%;
}

.menu-card-body {
    position: relative;
    z-index: 1;
}

/* Gallery Item Enhancements */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 0.1;
}

.gallery-overlay {
    z-index: 2;
}

/* Feature Item Enhancements */
.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 111, 93, 0.1), transparent);
    transition: left 0.5s;
}

.feature-item:hover::before {
    left: 100%;
}

/* Contact Form Enhancements */
.contact-form .form-control {
    position: relative;
}

.contact-form .form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
}

.contact-form .form-control:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(105, 52, 30, 0.08);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(105, 52, 30, 0.05);
}

/* Improved Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 111, 93, 0.2);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(105, 52, 30, 0.12);
    border-bottom: 1px solid rgba(105, 52, 30, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .brand-logo {
    height: 50px;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition);
    min-height: 44px; /* Improved touch target size for mobile */
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Language Switcher */
/* Language Switcher - Enhanced */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(245, 241, 235, 0.5);
    border-radius: 8px;
    position: relative;
}

.lang-btn {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    min-width: 70px;
    text-align: center;
    cursor: pointer;
}

.lang-btn:hover {
    color: var(--white);
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 111, 93, 0.2);
}

.lang-btn.active {
    color: var(--white);
    font-weight: 700;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(37, 111, 93, 0.3);
    pointer-events: none;
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.lang-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.lang-separator {
    color: var(--text-light);
    font-weight: 300;
    user-select: none;
}

/* Smooth language transition */
html {
    transition: direction 0.3s ease;
}

body {
    transition: all 0.3s ease;
}

/* RTL/LTR Mode Classes */
body.rtl-mode {
    direction: rtl;
}

body.ltr-mode {
    direction: ltr;
}

/* Hero Section - Modern 2026 Design */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* تحقق من المسار: إذا كان ملف css موجود في public/css فالمسار الصحيح عادة يكون ../assets/img/slider.jpg وليس ../public/assets/img/slider.jpg */
    background: url('../assets/img/slider.jpg') center/cover no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 111, 93, 0.15) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top, rgba(105, 52, 30, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(37, 111, 93, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    opacity: 0.3;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
    opacity: 0.25;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.hero-content-wrapper {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-badge-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

.hero-badge-modern i {
    color: var(--accent-color);
    font-size: 1rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line-1 {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.title-line-2 {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-line-2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-primary-modern {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(105, 52, 30, 0.4);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary-hover);
    transition: left 0.5s;
    z-index: 0;
}

.btn-primary-modern:hover::before {
    left: 0;
}

.btn-primary-modern span,
.btn-primary-modern i {
    position: relative;
    z-index: 1;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(105, 52, 30, 0.5);
}

.btn-primary-modern i {
    transition: var(--transition);
}

.btn-primary-modern:hover i {
    transform: translateX(5px);
}

.btn-outline-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.btn-outline-modern i {
    transition: var(--transition);
}

.btn-outline-modern:hover i {
    transform: scale(1.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(105, 52, 30, 0.4);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 52, 30, 0.5);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.scroll-down:hover {
    transform: translateY(5px);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

.arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    color: var(--accent-color);
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.25rem;
    position: relative;
    padding: 0;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    opacity: 0.4;
}

.section-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    margin-top: 0;
    position: relative;
    display: block;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--beige-bg) 100%);
    padding: 6rem 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), transparent);
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--cream-bg), transparent);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    border: 3px solid var(--accent-color);
}

.badge-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--beige-bg) 100%);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(105, 52, 30, 0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 111, 93, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.feature-item h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9375rem;
}

/* Menu Section */
.menu-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--beige-bg) 0%, var(--white) 100%);
    position: relative;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--cream-bg), transparent);
}

.menu-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--beige-bg), transparent);
}

.nav-pills .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin: 0 0.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(105, 52, 30, 0.3);
}

.menu-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--beige-bg) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(105, 52, 30, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.1);
}

.menu-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.menu-item-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.menu-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.menu-item-price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.menu-card:hover .menu-item-price::after {
    width: 100%;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--beige-bg) 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--beige-bg), transparent);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 3rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--beige-bg) 0%, var(--cream-bg) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--white), transparent);
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--beige-bg) 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(105, 52, 30, 0.08);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    box-shadow: 0 25px 70px rgba(105, 52, 30, 0.15);
    transform: translateY(-2px);
    border-color: rgba(37, 111, 93, 0.2);
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    transition: var(--transition);
}

.contact-info-item:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.contact-info-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 111, 93, 0.25);
}

/* Map Wrapper */
.map-wrapper {
    height: 100%;
    min-height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--beige-bg);
    transition: var(--transition);
}

.map-wrapper:hover {
    box-shadow: 0 25px 70px rgba(105, 52, 30, 0.2);
    transform: translateY(-2px);
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 15px;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.contact-info-quick {
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.contact-info-item-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.contact-info-item-small i {
    color: var(--secondary-color);
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-item-small:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.contact-info-item-small span {
    line-height: 1.5;
}

/* Footer */
.footer-section {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* تحسين اللوغو في الفوتر للظهور بوضوح على الخلفية الداكنة */
.footer-logo {
    position: relative;
    height: 80px;
    width: auto;
    object-fit: contain;
    /* استخدام ألوان دافئة تتناسب مع theme الفوتر بدلاً من الأبيض */
    filter: brightness(1.2) contrast(1.1) saturate(0.8) hue-rotate(-10deg) drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    opacity: 1;
    transition: var(--transition);
    /* خلفية دائرية خفيفة لزيادة التباين */
    padding: 0.75rem;
    background: radial-gradient(circle, rgba(245, 241, 235, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-logo:hover {
    transform: scale(1.08);
    filter: brightness(1.3) contrast(1.2) saturate(0.9) hue-rotate(-10deg) drop-shadow(0 0 25px rgba(212, 175, 55, 0.7));
    background: radial-gradient(circle, rgba(245, 241, 235, 0.18) 0%, transparent 70%);
}

/* حل بديل: إذا كان اللوغو فاتح جداً، يمكن إضافة border دائري ذهبي */
.footer-brand::before {
    content: '';
    position: absolute;
    left: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
    transition: var(--transition);
}

[dir="rtl"] .footer-brand::before {
    right: 0;
    left: auto;
}

.footer-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-contact li:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(105, 52, 30, 0.4);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;  /* Increased for better touch target */
    height: 56px; /* Increased for better touch target */
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(105, 52, 30, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .title-line-1 {
        font-size: 0.35em;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 2rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-tag {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .section-tag::after {
        width: 35px;
    }

    .section-title::after {
        width: 50px;
        height: 2.5px;
        bottom: -18px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .title-line-1 {
        font-size: 0.3em;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .hero-description {
        font-size: 0.9375rem;
        padding: 0 1rem;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .hero-badge-modern {
        font-size: 0.75rem;
        padding: 0.5rem 1.25rem;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0 1rem;
    }

    .section-tag {
        font-size: 0.7rem;
        letter-spacing: 2.5px;
        margin-bottom: 1rem;
    }

    .section-tag::after {
        width: 30px;
        bottom: -6px;
    }

    .section-title::after {
        width: 45px;
        height: 2.5px;
        bottom: -16px;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .map-wrapper {
        min-height: 350px; /* Reduced for mobile */
        margin-bottom: 2rem;
    }

    .contact-map {
        min-height: 350px;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1.125rem; /* Larger text for mobile */
    }

    .language-switcher {
        justify-content: center;
        margin-top: 1rem;
    }

    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    /* Improved mobile menu */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1.5rem 1rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(105, 52, 30, 0.15);
        width: 100%;
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1rem !important;
    }

    /* Better spacing for mobile */
    .about-section,
    .menu-section,
    .gallery-section,
    .contact-section {
        padding: 3rem 0 !important;
    }

    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    /* Feature items better layout on mobile */
    .feature-item {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }

    .feature-item h5 {
        font-size: 1.125rem;
    }

    .feature-item p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Menu cards spacing */
    .menu-card {
        margin-bottom: 1.5rem;
    }

    .menu-card-body {
        padding: 1.25rem;
    }

    .menu-item-name {
        font-size: 1.25rem;
    }

    .menu-item-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Gallery better spacing */
    .gallery-item {
        margin-bottom: 1rem;
    }

    /* Nav Pills Mobile */
    .nav-pills {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
        margin: 0.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .title-line-1 {
        font-size: 0.28em;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-stats {
        padding: 1.25rem;
    }

    .footer-logo {
        height: 90px;
    }

    .footer-brand::before{
        left: auto !important;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-title {
        font-size: 1.25rem;
    }

    .menu-card-image {
        height: 200px;
    }

    .map-wrapper {
        min-height: 350px;
    }

    .contact-map {
        min-height: 350px;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .brand-logo {
        height: 40px;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    /* Additional mobile improvements */
    .hero-section {
        min-height: 90vh;
        padding-top: 80px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-tag {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 0.875rem;
    }

    .section-tag::after {
        width: 25px;
        bottom: -5px;
    }

    .section-title::after {
        width: 40px;
        height: 2px;
        bottom: -14px;
    }

    .contact-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
    }

    .scroll-top-btn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .map-wrapper {
        min-height: 300px;
    }

    .contact-map {
        min-height: 300px;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #198754;
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.9375rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-error,
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

/* Gallery Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoom 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Lazy Loading Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Improved Contrast for Better Accessibility */
.hero-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 1); /* Improved contrast */
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Stronger shadow for better readability */
}

/* Skip to Content Link for Screen Readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   RTL Support - Comprehensive Arabic Layout
   ============================================ */

/* Navigation RTL - Complete Header Support */
[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .navbar-nav .nav-link {
    text-align: right;
}

/* Brand/Logo RTL */
[dir="rtl"] .navbar-brand {
    flex-direction: row;
}

[dir="rtl"] .brand-text-wrapper {
    align-items: unset;
    text-align: right;
}

[dir="rtl"] .brand-text,
[dir="rtl"] .brand-subtitle {
    text-align: right;
}

/* Nav Items Spacing RTL */
[dir="rtl"] .nav-item {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .navbar-nav .nav-link {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

/* Language Switcher RTL Positioning */
[dir="rtl"] .nav-item.ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

/* Navbar Toggler RTL */
[dir="rtl"] .navbar-toggler {
    margin-left: 0;
    margin-right: auto;
}

/* Hero Section RTL */
[dir="rtl"] .hero-buttons .btn i {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .hero-stats {
    direction: rtl;
}

[dir="rtl"] .stat-divider {
    margin: 0 2rem;
}

/* Scroll Buttons RTL */
[dir="rtl"] .scroll-top-btn {
    right: auto;
    left: 30px;
}

/* About Section RTL */
[dir="rtl"] .about-badge {
    right: auto;
    left: 20px;
}

[dir="rtl"] .feature-item {
    text-align: right;
}

[dir="rtl"] .feature-icon {
    margin-left: 0;
    margin-right: 0;
}

/* Menu Section RTL */
[dir="rtl"] .menu-item-name,
[dir="rtl"] .menu-item-description,
[dir="rtl"] .menu-item-price {
    text-align: right;
}

/* Gallery RTL */
[dir="rtl"] .lightbox-prev {
    left: auto;
    right: 20px;
}

[dir="rtl"] .lightbox-next {
    right: auto;
    left: 20px;
}

/* Contact Form RTL */
[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form textarea {
    text-align: right;
}

[dir="rtl"] .contact-info-item-small {
    text-align: right;
}

[dir="rtl"] .contact-info-item-small i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Footer RTL */
[dir="rtl"] .footer-brand {
    flex-direction: row;
}

[dir="rtl"] .footer-text,
[dir="rtl"] .footer-heading {
    text-align: right;
}

[dir="rtl"] .footer-title {
    text-align: right;
}

[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 0.5rem;
}

[dir="rtl"] .footer-contact {
    text-align: right;
}

[dir="rtl"] .footer-contact i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

/* Buttons and Icons RTL */
[dir="rtl"] .btn i {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .btn-primary-modern i,
[dir="rtl"] .btn-outline-modern i {
    transform: scaleX(-1);
}

/* Section Headers RTL */
[dir="rtl"] .section-header {
    text-align: center;
}

[dir="rtl"] .section-tag,
[dir="rtl"] .section-title,
[dir="rtl"] .section-description {
    text-align: center;
}

/* Animations RTL */
[dir="rtl"] [data-aos="fade-right"] {
    transform: translate3d(50px, 0, 0);
}

[dir="rtl"] [data-aos="fade-left"] {
    transform: translate3d(-50px, 0, 0);
}

/* Language Switcher RTL */
[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

/* Responsive RTL Adjustments */
@media (max-width: 991.98px) {
    /* Mobile Menu RTL - Complete Fix */
    [dir="rtl"] .navbar-nav {
        text-align: right;
        padding-right: 0;
        margin-right: 0;
    }

    [dir="rtl"] .navbar-collapse {
        text-align: right;
        direction: rtl;
    }

    [dir="rtl"] .nav-item {
        text-align: right;
        width: 100%;
    }

    [dir="rtl"] .nav-link {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
        text-align: right;
        display: block;
    }

    /* Language Switcher in Mobile Menu RTL */
    [dir="rtl"] .nav-item.ms-3 {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    [dir="rtl"] .language-switcher {
        justify-content: center;
        width: 100%;
    }

    /* Navbar Brand in Mobile RTL */
    [dir="rtl"] .navbar-brand {
        margin-right: 0;
        margin-left: 0;
    }

    /* Navbar Toggler RTL */
    [dir="rtl"] .navbar-toggler {
        margin-right: 0;
        margin-left: 0;
    }

    /* Hero Section Mobile RTL */
    [dir="rtl"] .hero-title,
    [dir="rtl"] .hero-subtitle,
    [dir="rtl"] .hero-description {
        text-align: center;
    }

    [dir="rtl"] .hero-buttons {
        width: 100%;
    }

    [dir="rtl"] .btn-primary-modern,
    [dir="rtl"] .btn-outline-modern {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Stats Mobile RTL */
    [dir="rtl"] .hero-stats {
        width: 100%;
    }

    [dir="rtl"] .stat-item {
        text-align: center;
    }

    /* About Section Mobile RTL */
    [dir="rtl"] .section-header {
        text-align: center;
    }

    [dir="rtl"] .about-text {
        text-align: right;
        direction: rtl;
    }

    [dir="rtl"] .feature-item {
        text-align: center;
    }

    [dir="rtl"] .feature-item h5,
    [dir="rtl"] .feature-item p {
        text-align: center;
    }

    /* Menu Mobile RTL */
    [dir="rtl"] .nav-pills {
        justify-content: center;
        flex-wrap: wrap;
    }

    [dir="rtl"] .nav-pills .nav-link {
        text-align: center;
    }

    [dir="rtl"] .menu-card-body {
        text-align: right;
        direction: rtl;
    }

    [dir="rtl"] .menu-item-name {
        text-align: right;
    }

    [dir="rtl"] .menu-item-description {
        text-align: right;
    }

    [dir="rtl"] .menu-item-price {
        text-align: right;
    }

    /* Contact Mobile RTL */
    [dir="rtl"] .contact-form input,
    [dir="rtl"] .contact-form textarea,
    [dir="rtl"] .contact-form button {
        text-align: right;
        direction: rtl;
    }

    [dir="rtl"] .contact-info-item-small {
        flex-direction: row-reverse;
        text-align: right;
    }

    [dir="rtl"] .contact-info-item-small i {
        margin-left: 0.75rem;
        margin-right: 0;
    }

    /* Footer Mobile RTL */
    [dir="rtl"] .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    [dir="rtl"] .footer-title,
    [dir="rtl"] .footer-text {
        text-align: center;
    }

    [dir="rtl"] .footer-heading {
        text-align: center;
        margin-top: 2rem;
    }

    [dir="rtl"] .footer-links {
        text-align: right;
    }

    [dir="rtl"] .footer-contact {
        text-align: right;
    }

    [dir="rtl"] .footer-contact li {
        justify-content: right;
    }

    [dir="rtl"] .social-links {
        justify-content: right;
    }
}

@media (max-width: 768px) {
    .scroll-indicator{
            bottom: 10px !important;
    }
    /* Extra Mobile RTL Fixes */
    [dir="rtl"] body {
        text-align: right;
    }

    [dir="rtl"] .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    [dir="rtl"] .hero-content-wrapper {
        padding: 0 1rem;
    }

    [dir="rtl"] .section-description {
        text-align: center;
        padding: 0 1rem;
    }

    [dir="rtl"] .about-text {
        padding: 0 0.5rem;
    }

    /* Form Labels RTL on Mobile */
    [dir="rtl"] .form-control::placeholder {
        text-align: right;
    }

    [dir="rtl"] .invalid-feedback,
    [dir="rtl"] .valid-feedback {
        text-align: right;
    }

    /* Better spacing for Arabic text */
    [dir="rtl"] .hero-title {
        line-height: 1.3;
        letter-spacing: 0;
    }

    [dir="rtl"] .section-title {
        line-height: 1.3;
        letter-spacing: 0;
    }

    [dir="rtl"] .menu-item-name {
        font-size: 1.375rem;
    }
}

@media (max-width: 576px) {
    /* Small Mobile RTL Complete Fix */
    [dir="rtl"] .hero-section {
        padding: 0 0.5rem;
    }

    [dir="rtl"] .hero-title {
        font-size: 2rem;
        line-height: 1.4;
    }

    [dir="rtl"] .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
    }

    [dir="rtl"] .hero-description {
        font-size: 0.875rem;
        line-height: 1.7;
        padding: 0 0.5rem;
    }

    [dir="rtl"] .section-title {
        font-size: 1.625rem;
        line-height: 1.4;
    }

    [dir="rtl"] .section-description {
        font-size: 0.9375rem;
    }

    [dir="rtl"] .about-text,
    [dir="rtl"] .feature-item p,
    [dir="rtl"] .menu-item-description {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    [dir="rtl"] .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    [dir="rtl"] .contact-form .form-control {
        font-size: 16px;
        padding: 0.875rem 1rem;
    }

    [dir="rtl"] .footer-text,
    [dir="rtl"] .footer-links a,
    [dir="rtl"] .footer-contact li {
        font-size: 0.9375rem;
    }

    /* Fix overflow issues */
    [dir="rtl"] .row {
        margin-right: 0;
        margin-left: 0;
    }

    [dir="rtl"] .col,
    [dir="rtl"] [class*="col-"] {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* Arabic Number Display */
[dir="rtl"] .menu-item-price,
[dir="rtl"] .stat-number,
[dir="rtl"] .hero-badge-modern {
    font-family: 'Cairo', sans-serif;
}

/* Additional Arabic Font Optimization */
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] textarea {
    font-family: 'Cairo', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better line heights for Arabic */
[dir="rtl"] p,
[dir="rtl"] .menu-item-description,
[dir="rtl"] .about-text,
[dir="rtl"] .feature-item p,
[dir="rtl"] .footer-text {
    line-height: 1.8;
}

/* Fix button text alignment in RTL */
[dir="rtl"] .btn {
    text-align: center;
}

[dir="rtl"] .btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Fix alert messages RTL */
[dir="rtl"] .alert {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .alert i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Fix notification RTL */
[dir="rtl"] .notification {
    right: auto;
    left: 20px;
    text-align: right;
    direction: rtl;
}

/* Improved scrolling for RTL */
[dir="rtl"] html {
    scroll-behavior: smooth;
}

/* Fix Bootstrap Grid RTL Issues */
@media (max-width: 991.98px) {
    [dir="rtl"] .container,
    [dir="rtl"] .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Ensure proper text rendering */
[dir="rtl"] * {
    text-rendering: optimizeLegibility;
}

/* Fix any remaining overflow issues */
[dir="rtl"] .overflow-hidden {
    overflow: hidden !important;
}
