/* Slideshow - Matches Image Size */
.slide {
    display: none;
    width: 100%;
    position: relative;
    animation: fadeIn 1s;
}

.slide.active {
    display: block;
}

.slide-image {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    display: block;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #B8860B;
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --text-light: #f5f5f5;
    --text-gold: #D4AF37;
    --shadow-gold: rgba(212, 175, 55, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Arabic Font Support (LTR layout, just Arabic font) */
[lang="ar"] {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] p,
[lang="ar"] a,
[lang="ar"] span {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--gold-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hide mobile language switcher on desktop */
.mobile-language-switcher {
    display: none;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 40px;
}

.lang-btn:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--gold-primary);
    color: var(--bg-dark);
    box-shadow: 0 2px 10px var(--shadow-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    transition: all 0.3s;
}

/* Hero Section with Slideshow */
.hero {
    margin-top: 90px;
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    max-height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.slide-placeholder {
    width: 100%;
    height: 600px;
    max-height: 600px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gold-primary);
    font-size: 2rem;
    border: 2px dashed var(--gold-primary);
    opacity: 0.5;
}

.slide-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.slide-placeholder p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: var(--bg-dark);
    border: none;
    padding: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background: var(--gold-primary);
    transform: translateY(-50%) scale(1.1);
}

.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--gold-primary);
    transform: scale(1.3);
}

.hero-content {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px var(--shadow-gold);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
}

.description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.gallery h2,
.location h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-gold);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-primary);
    font-size: 3rem;
    border: 2px dashed var(--gold-primary);
    opacity: 0.5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Location Section */
.location {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.location-item i {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-top: 0.5rem;
}

.location-item h3 {
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.location-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

body:not(.rtl) .location-item {
    text-align: left;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    min-height: 400px;
    position: relative;
}

.map-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    cursor: pointer;
    text-decoration: none;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: none;
}

.map-link:hover .map-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.map-click-text {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid var(--gold-primary);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.map-link:hover .map-click-text {
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: var(--bg-dark);
}

.social-icon i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.social-icon span {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-gold);
}

.social-icon:hover i {
    transform: scale(1.2);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.tiktok:hover {
    background: #000000;
}

.social-icon.facebook:hover {
    background: #1877F2;
}

.social-icon.whatsapp:hover {
    background: #25D366;
}

.social-icon.youtube:hover {
    background: #FF0000;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer i {
    color: var(--gold-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop language switcher on mobile */
    .desktop-language-switcher {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    /* Hide nav menu items on navbar, only show in hamburger */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Show and style mobile language switcher inside hamburger menu */
    .mobile-language-switcher {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .language-switcher-mobile {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .language-switcher-mobile .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 50px;
    }


    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 100px;
        height: 100px;
    }

    .prev, .next {
        width: 50px;
        height: 50px;
        padding: 15px;
        font-size: 1.2rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .slideshow-container {
        max-height: 400px;
    }

    .slide-image {
        max-height: 400px;
    }

    .slide-placeholder {
        height: 400px;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .social-icon {
        width: 80px;
        height: 80px;
    }

    .social-icon i {
        font-size: 2rem;
    }
}
