@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.page-transition.show {
    opacity: 1;
    pointer-events: all;
}

.page-transition-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 114, 34, 0.2);
    border-top-color: #d47222;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Light theme transition overlay */
[data-theme="light"] .page-transition,
.light-theme .page-transition,
body.light-mode .page-transition {
    background: linear-gradient(135deg, #fefefe 0%, #f5f5f5 50%, #ececec 100%);
}

/* Fade in animation for page content */
body {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Default dark theme */
:root,
:root.dark-theme,
html.dark-theme {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --text-primary: #f8f9fa;
    --text-secondary: #e9ecef;
    --accent-primary: #d47222;
    --accent-secondary: #e88230;
    --border-color: rgba(212, 114, 34, 0.2);
    --card-bg: rgba(15, 15, 15, 0.4);
    --input-bg: rgba(255, 255, 255, 0.05);
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Light theme */
:root.light-theme,
html.light-theme,
[data-theme="light"],
body.light-mode {
    --bg-primary: #fefefe;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #ececec;
    --text-primary: #1a1a1a;
    --text-secondary: #2d2d2d;
    --accent-primary: #d47222;
    --accent-secondary: #e88230;
    --border-color: rgba(212, 114, 34, 0.25);
    --card-bg: rgba(255, 255, 255, 0.95);
    --input-bg: rgba(0, 0, 0, 0.04);
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px var(--shadow);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
    border-color: var(--accent-primary);
}

.theme-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

.theme-text {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.15) 0%, rgba(212, 114, 34, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

h1 {
    font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
    font-size: 3.2em;
    font-weight: 600;
    color: var(--accent-primary);
    text-shadow: 0 4px 12px rgba(212, 114, 34, 0.3);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    font-size: 1.1em;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.decorative-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d47222, transparent);
    margin: 25px auto;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.nav-btn {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: block;
    text-align: center;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.15) 0%, rgba(212, 114, 34, 0.08) 100%);
    border-color: rgba(212, 114, 34, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 114, 34, 0.2);
    color: #fff;
    text-decoration: none;
}

.nav-btn.active {
    background: linear-gradient(135deg, #d47222 0%, #e88230 100%);
    border-color: #d47222;
    color: #ffffff !important;
}

/* Ensure nav button text is visible in light mode */
.light-theme .nav-btn,
body.light-mode .nav-btn,
[data-theme="light"] .nav-btn {
    color: #1a1a1a;
}

/* Ensure nav button text is visible in dark mode */
.dark-theme .nav-btn,
body.dark-mode .nav-btn {
    color: #f8f9fa;
}

/* Additional text visibility fixes for light mode */
.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme .subtitle,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode .subtitle {
    color: #1a1a1a;
}

/* Additional text visibility fixes for dark mode */
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme .subtitle,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .subtitle {
    color: #f8f9fa;
}

.content-section {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(212, 114, 34, 0.15);
    position: relative;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(212, 114, 34, 0.3);
    border-color: rgba(212, 114, 34, 0.4);
}

.menu-image-container {
    position: relative;
    width: 100%;
    padding-top: 141.4%;
    overflow: hidden;
    background: #1a1a1a;
}

.menu-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.menu-item:hover .menu-image {
    transform: scale(1.05);
}

.order-section {
    text-align: center;
}

.order-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.order-option-card {
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.15) 0%, rgba(212, 114, 34, 0.05) 100%);
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-option-card:hover {
    transform: translateY(-10px);
    border-color: #d47222;
    box-shadow: 0 20px 50px rgba(212, 114, 34, 0.4);
}

.option-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
}

.option-title {
    font-size: 1.8em;
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.option-description {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.option-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d47222 0%, #e88230 100%);
    color: #fff;
    padding: 20px 40px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 114, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(212, 114, 34, 0.3);
    margin-top: 20px;
}

.option-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 114, 34, 0.6);
    color: #fff;
    text-decoration: none;
    border-color: #d47222;
}

.order-title {
    font-size: 2.5em;
    color: var(--accent-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.delivery-card {
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.15) 0%, rgba(212, 114, 34, 0.05) 100%);
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.delivery-card:hover {
    transform: translateY(-10px);
    border-color: #d47222;
    box-shadow: 0 15px 40px rgba(212, 114, 34, 0.3);
}

.delivery-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.delivery-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.delivery-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: #d47222;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.delivery-link:hover {
    background: #e88230;
    box-shadow: 0 5px 20px rgba(212, 114, 34, 0.5);
}

.phone-section {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.phone-title {
    font-size: 1.5em;
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.phone-numbers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.phone-number {
    font-size: 1.5em;
    color: var(--text-primary);
    font-weight: 600;
    direction: ltr;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.3) 0%, rgba(212, 114, 34, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

.phone-number:hover {
    background: linear-gradient(135deg, #d47222 0%, #e88230 100%);
    border-color: #d47222;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 114, 34, 0.4);
    color: #fff;
    text-decoration: none;
}

.location-section {
    text-align: center;
}

.location-title {
    font-size: 2.5em;
    color: #d47222;
    margin-bottom: 30px;
    font-weight: 700;
}

.map-container {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.address-box {
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.15) 0%, rgba(212, 114, 34, 0.05) 100%);
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.address-text {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 20px;
}

.directions-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #d47222;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.directions-btn:hover {
    background: #e88230;
    box-shadow: 0 8px 30px rgba(212, 114, 34, 0.6);
    transform: translateY(-3px);
}

.review-section {
    text-align: center;
    padding: 60px 20px;
}

.review-title {
    font-size: 2.5em;
    color: #d47222;
    margin-bottom: 20px;
    font-weight: 700;
}

.review-subtitle {
    font-size: 1.3em;
    color: #ccc;
    margin-bottom: 40px;
}

.stars {
    font-size: 4em;
    margin-bottom: 40px;
    color: #ffc107;
}

.review-btn {
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(135deg, #d47222 0%, #e88230 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(212, 114, 34, 0.4);
    text-transform: uppercase;
}

.review-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 114, 34, 0.6);
}

.footer {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.15) 0%, rgba(212, 114, 34, 0.05) 100%);
    border-top: 1px solid rgba(212, 114, 34, 0.2);
    margin-top: 60px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.social-icons a img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(212, 114, 34, 0.3));
    transition: all 0.3s ease;
    border-radius: 50%;
}

.social-icons a:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(212, 114, 34, 0.6));
}

.footer-text {
    color: var(--text-secondary);
    font-size: 1em;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Ensure footer text is visible in light mode */
.light-theme .footer-text,
body.light-mode .footer-text,
[data-theme="light"] .footer-text {
    color: #2d2d2d;
}

/* Ensure footer text is visible in dark mode */
.dark-theme .footer-text,
body.dark-mode .footer-text {
    color: #e9ecef;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        left: 10px;
        padding: 10px 16px;
    }

    .theme-text {
        display: none;
    }

    .theme-icon {
        font-size: 1.4em;
    }

    h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1em;
    }

    .nav-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .phone-numbers {
        flex-direction: column;
        gap: 15px;
    }

    .phone-number {
        font-size: 1.5em;
    }

    .map-container iframe {
        height: 350px;
    }

    .social-icons a img {
        width: 35px;
        height: 35px;
    }

    .order-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-option-card {
        padding: 30px 20px;
        min-height: 350px;
    }

    .option-title {
        font-size: 1.5em;
    }

    .option-description {
        font-size: 1em;
    }

    .option-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .phone-numbers {
        flex-direction: column;
        gap: 15px;
    }

    .phone-number {
        font-size: 1.3em;
        padding: 12px 20px;
    }

    .footer {
        padding-bottom: 100px;
        margin-bottom: 0;
    }
}

/* Order Form Styles */
.order-form-section {
    text-align: center;
    margin: 30px 0;
}

.order-form-btn {
    background: linear-gradient(135deg, #d47222 0%, #e88230 100%);
    color: #fff;
    border: none;
    padding: 20px 40px;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 114, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.order-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 114, 34, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 5% auto;
    padding: 0;
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, rgba(212, 114, 34, 0.2) 0%, rgba(212, 114, 34, 0.1) 100%);
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 114, 34, 0.3);
}

.modal-header h2 {
    color: #d47222;
    font-size: 2em;
    font-weight: 700;
    margin: 0;
}

.close {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #d47222;
}

.order-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1em;
    font-family: 'Tajawal', Arial, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d47222;
    box-shadow: 0 0 10px rgba(212, 114, 34, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc;
}

.phone-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 114, 34, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.phone-prefix {
    background: rgba(212, 114, 34, 0.2);
    color: #d47222;
    padding: 15px;
    font-weight: 600;
    border-right: 1px solid rgba(212, 114, 34, 0.3);
}

.phone-input input {
    border: none;
    background: transparent;
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.cancel-btn,
.submit-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    background: linear-gradient(135deg, #d47222 0%, #e88230 100%);
    color: #fff;
    box-shadow: 0 5px 20px rgba(212, 114, 34, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 114, 34, 0.6);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 1.5em;
    }

    .order-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
}
