:root {
    --primary-color: #d4af37;
    /* Metallic Gold */
    --primary-glow: rgba(212, 175, 55, 0.3);
    --bg-dark: #0a0a0b;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Header Section */
header {
    width: 100%;
    padding: clamp(4rem, 10vh, 8rem) 1.5rem 4rem;
    text-align: center;
    position: relative;
}

.logo-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: clamp(80px, 12vw, 150px);
    z-index: 1000;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
}

.main-logo {
    width: 100%;
    height: auto;
    display: block;
}

.back-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .back-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.1;
}

.arabic-header {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Layout Container */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 12vh, 8rem);
    width: 100%;
    max-width: var(--container-max);
    padding: 0 1.5rem;
    margin-bottom: 10rem;
}

.menu-item {
    width: 100%;
    perspective: 2000px;
    cursor: zoom-in;
}

.image-wrapper {
    position: relative;
    border-radius: clamp(20px, 4vw, 48px);
    overflow: hidden;
    background: #111;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
    animation: floating 10s infinite ease-in-out;
}

.menu-item:nth-child(even) .image-wrapper {
    animation-delay: -5s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(0.3deg);
    }
}

.menu-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0.2) brightness(0.85);
    transition: transform 1.8s cubic-bezier(0.2, 1, 0.3, 1),
        filter 1.2s ease;
}

.menu-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0) brightness(1.05);
}

/* Luxury Light Sweep */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 45%,
            rgba(212, 175, 55, 0.1) 50%,
            rgba(255, 255, 255, 0) 55%,
            transparent 100%);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform: rotate(45deg) translate(-100%, -100%);
    pointer-events: none;
}

.menu-item:hover .image-wrapper::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.menu-item:hover .image-wrapper {
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.9),
        0 0 40px var(--primary-glow);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.01) translateY(-10px);
}

/* Modal Gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 20px;
}

.modal-content {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: clamp(10px, 3vw, 40px);
    right: clamp(10px, 5vw, 60px);
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Ambient Engine */
#ambience-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a1c 0%, #0a0a0b 100%);
    z-index: -2;
}

/* Footer Excellence */
footer {
    width: 100%;
    max-width: var(--container-max);
    margin-top: auto;
    padding: clamp(4rem, 8vw, 8rem) 1.5rem 3rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.footer-section p {
    line-height: 1.8;
    font-size: 1.1rem;
}

.footer-section .arabic {
    font-family: 'Outfit', sans-serif;
    direction: rtl;
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--text-main);
    line-height: 1.4;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
}

.contact-links a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    opacity: 0.4;
}

/* Professional Entrance */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Mobile & Table Adjustments */
@media (max-width: 1024px) {
    .menu-container {
        gap: 6rem;
    }
}

@media (max-width: 768px) {

    /* Vertical focus for mobile */
    .footer-content {
        text-align: center;
    }

    .contact-links {
        align-items: center;
    }

    .footer-section .arabic {
        direction: ltr;
        text-align: center;
    }

    .close-modal {
        top: 20px;
        right: 20px;
    }

    .menu-container {
        margin-bottom: 6rem;
        gap: 4rem;
    }

    .logo-container {
        top: 1rem;
        left: 1rem;
        width: 60px;
    }
}

@media (pointer: coarse) {
    .image-wrapper {
        animation: none;
    }

    /* Disable floating on touch for performance/stability */
    .menu-item:hover .image-wrapper {
        transform: none;
    }
}