/* Variables */
:root {
    --gold: #b58f3e;
    --beige: #e1d6c2;
    --green: #3e492f;
    --light-green: #616c38;
    --white: #FFFFFF;
    --black: #333333;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Kurdish:wght@400;500;600;700&display=swap');

/* Base Font Settings */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--beige);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links li {
    margin-right: 2rem;
    margin-left: 0;
}

[dir="rtl"] .nav-reservation {
    margin-right: 2rem;
    margin-left: 0;
}

[dir="rtl"] .language-switcher {
    margin-right: 2rem;
    margin-left: 0;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .slider-btn.prev {
    left: auto;
    right: 20px;
}

[dir="rtl"] .slider-btn.next {
    right: auto;
    left: 20px;
}

[dir="rtl"] .about-content {
    direction: rtl;
}

[dir="rtl"] .about-text {
    text-align: right;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

/* Font Support for Kurdish and Arabic */
html[lang="ar"] {
    font-family: 'Noto Sans Arabic', sans-serif !important;
}

html[lang="ku"] {
    font-family: 'Noto Sans Kurdish', sans-serif !important;
}

[lang="ar"] * {
    font-family: 'Noto Sans Arabic', sans-serif !important;
}

[lang="ku"] * {
    font-family: 'Noto Sans Kurdish', sans-serif !important;
}

/* Typography Adjustments for RTL */
[dir="rtl"] h1 {
    font-size: 2.8rem;
    font-weight: 600;
}

[dir="rtl"] h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

[dir="rtl"] h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

[dir="rtl"] p {
    font-size: 1.1rem;
    line-height: 1.8;
}

[dir="rtl"] .nav-links a {
    letter-spacing: 0;
    font-weight: 500;
}

[dir="rtl"] .about-text p {
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

[dir="rtl"] .footer-section p {
    line-height: 1.8;
}

/* Language-specific adjustments */
[lang="ar"] .nav-links a,
[lang="ar"] .menu-btn,
[lang="ar"] .reservation-btn {
    font-weight: 500;
}

[lang="ku"] .nav-links a,
[lang="ku"] .menu-btn,
[lang="ku"] .reservation-btn {
    font-weight: 500;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--green);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-reservation {
    margin-left: 2rem;
}

.nav-reservation-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background-color: var(--gold);
    color: var(--white) !important;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-reservation-btn i {
    font-size: 1.1rem;
}

.nav-reservation-btn:hover {
    background-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: var(--white) !important;
}

/* Slider Styles */
.slider {
    margin-top: 80px;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    background-color: rgba(0,0,0,0.4);
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--white);
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    padding: 10px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    padding: 2rem;
}

.about-text h2 {
    color: var(--green);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: left;
}

[dir="rtl"] .about-text h2 {
    text-align: right;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--black);
}

[dir="rtl"] .about-text p {
    text-align: right;
}

.menu-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 1rem;
}

.menu-btn:hover {
    background-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: var(--beige);
}

.gallery h2 {
    text-align: center;
    color: var(--green);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 3rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.reservation-btn-container {
    text-align: center;
    margin-top: 2rem;
}

.reservation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 2.5rem;
    background-color: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.reservation-btn i {
    font-size: 1.4rem;
}

.reservation-btn:hover {
    background-color: var(--green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Footer Styles */
footer {
    background-color: var(--green);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

/* RTL Footer Adjustments */
[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
    margin-top: 1rem;
    direction: ltr;
}

[dir="rtl"] .footer-section h3 {
    text-align: right;
}

[dir="rtl"] .footer-section p {
    text-align: right;
}

[dir="rtl"] .footer-section p i {
    margin-left: 10px;
    margin-right: 0;
}

/* Fix phone number direction in RTL */
[dir="rtl"] .footer-section p span {
    direction: ltr;
    display: inline-block;
}

[dir="rtl"] .footer-section p a.footer-link {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
}

/* Mobile adjustments for RTL footer */
@media (max-width: 768px) {
    [dir="rtl"] .footer-section {
        text-align: center;
    }

    [dir="rtl"] .social-links {
        justify-content: center;
        direction: ltr;
    }

    [dir="rtl"] .footer-section h3 {
        text-align: center;
    }

    [dir="rtl"] .footer-section p {
        text-align: center;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--white);
}

.footer-bottom .fa-heart {
    color: #ff4d4d;
    margin: 0 5px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-left: 2rem;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.current-lang:hover {
    background-color: var(--beige);
}

.current-lang span {
    font-weight: 500;
    color: var(--green);
}

.current-lang i {
    font-size: 0.8rem;
    color: var(--green);
    transition: transform 0.3s ease;
}

.language-switcher:hover .current-lang i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--black);
    transition: all 0.3s ease;
}

.lang-dropdown a:hover {
    background-color: var(--beige);
    color: var(--green);
}

.lang-dropdown a.active {
    color: var(--gold);
    font-weight: 500;
}

/* Mobile adjustments for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin: 1rem 0;
        width: 100%;
    }

    [dir="rtl"] .language-switcher {
        margin: 1rem 0;
        width: 100%;
    }

    .current-lang {
        justify-content: center;
        width: 100%;
    }

    [dir="rtl"] .current-lang {
        justify-content: center;
        width: 100%;
    }

    .lang-dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        text-align: center;
        background-color: var(--beige);
        margin-top: 0.5rem;
        border-radius: 5px;
    }

    [dir="rtl"] .lang-dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        text-align: center;
        background-color: var(--beige);
        margin-top: 0.5rem;
        border-radius: 5px;
    }

    /* Remove hover behavior for mobile */
    .language-switcher:hover .lang-dropdown {
        display: none;
    }

    [dir="rtl"] .language-switcher:hover .lang-dropdown {
        display: none;
    }

    /* Add active class for mobile dropdown */
    .language-switcher.active .lang-dropdown {
        display: block;
    }

    [dir="rtl"] .language-switcher.active .lang-dropdown {
        display: block;
    }

    .lang-dropdown a {
        text-align: center;
        padding: 0.8rem 1rem;
    }

    [dir="rtl"] .lang-dropdown a {
        text-align: center;
        padding: 0.8rem 1rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding: 2rem;
    }

    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        flex-direction: column !important;
    }

    .nav-links.active {
        right: 0;
    }

    [dir="rtl"] .nav-links.active {
        right: auto;
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    [dir="rtl"] .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-reservation {
        margin: 2rem 0 0 0;
        width: 100%;
    }

    [dir="rtl"] .nav-reservation {
        margin: 2rem 0 0 0;
        width: 100%;
    }

    .nav-reservation-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }

    [dir="rtl"] .nav-reservation-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-height: 400px;
    }
    
    .about-text {
        padding: 1rem;
    }
    
    .about-text h2 {
        text-align: center;
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .reservation-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Font Awesome Icons Fix for RTL */
[dir="rtl"] i[class*="fa-"] {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[dir="rtl"] i[class*="fab"] {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Specific fixes for different icon types */
[dir="rtl"] .slider-btn i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

[dir="rtl"] .nav-reservation-btn i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

[dir="rtl"] .reservation-btn i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

[dir="rtl"] .menu-btn i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

[dir="rtl"] .footer-section p i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

[dir="rtl"] .current-lang i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* Social Links specific fix */
[dir="rtl"] .social-links {
    justify-content: flex-start;
    margin-top: 1rem;
    direction: ltr;
}

[dir="rtl"] .social-links a i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[dir="rtl"] .social-links a i.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .social-links {
        justify-content: center;
        direction: ltr;
    }
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold);
}

/* Ensure social icons are visible in RTL */
[dir="rtl"] .social-links a i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[dir="rtl"] .social-links a i.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
} 