/* Professional & Attractive Color Theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700;800&display=swap');

:root {
    /* Harmonious Color Palette */
    --primary-black: #1a1a2e;
    --secondary-black: #16213e;
    --medium-black: #0f3460;
    --light-black: #533483;
    --dark-gray: #6c5ce7;
    --medium-gray: #a29bfe;
    --light-gray: #c8d6e5;
    --very-light-gray: #f1f2f6;
    --off-white: #ffffff;
    --pure-white: #ffffff;

    /* Beautiful Gradients */
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-secondary: linear-gradient(135deg, #0f3460 0%, #533483 50%, #6c5ce7 100%);
    --gradient-accent: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #c8d6e5 100%);
    --gradient-header: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 70%, #533483 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #6c5ce7 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-button: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-button-hover: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    --gradient-icon: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    --gradient-text: linear-gradient(135deg, #1a1a2e 0%, #6c5ce7 100%);

    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-light: #0f3460;
    --text-white: #ffffff;
    --text-muted: #533483;

    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #f1f2f6;
    --bg-card: #ffffff;

    /* Enhanced Shadows */
    --shadow-light: 0 2px 8px rgba(26, 26, 46, 0.08);
    --shadow-medium: 0 4px 16px rgba(26, 26, 46, 0.12);
    --shadow-heavy: 0 8px 32px rgba(26, 26, 46, 0.16);
    --shadow-3d: 0 12px 40px rgba(26, 26, 46, 0.2);
    --shadow-card: 0 4px 20px rgba(26, 26, 46, 0.1);
    --shadow-button: 0 4px 15px rgba(26, 26, 46, 0.2);
    --shadow-icon: 0 4px 15px rgba(26, 26, 46, 0.15);

    /* Border Radius */
    --border-radius: 12px;
    --border-radius-large: 20px;
    --border-radius-button: 30px;
    --border-radius-icon: 50%;
}

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

body {
    font-family: 'Noto Naskh Arabic', serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 6px;
    border: 2px solid var(--bg-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Header & Navigation */
header {
    background: var(--gradient-header);
    border-bottom: 3px solid var(--medium-gray);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-heavy);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a29bfe' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

.navbar {
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.navbar-brand {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pure-white) !important;
    text-decoration: none;
    position: relative;
    margin-right: 3rem;
    padding-right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.navbar-brand::before {
    content: '🍽️';
    font-size: 2rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 10px rgba(162, 155, 254, 0.4));
}

.navbar-brand::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 45px;
    background: linear-gradient(to bottom, var(--medium-gray), var(--light-gray));
    box-shadow: 0 0 15px rgba(162, 155, 254, 0.5);
    border-radius: 2px;
}

.navbar-brand:hover {
    color: var(--pure-white) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.navbar-toggler {
    background: var(--pure-white);
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow-light);
}

.navbar-toggler:hover {
    background: var(--bg-gray);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.navbar-nav {
    margin-left: auto;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--pure-white) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem !important;
    min-width: 120px;
    text-align: center;
    border-radius: var(--border-radius-button);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(162, 155, 254, 0.15);
    color: var(--pure-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 155, 254, 0.2);
}

.nav-item.active .nav-link {
    background: var(--pure-white);
    color: var(--primary-black) !important;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: expandWidth 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.8rem;
        margin-right: 0;
        padding-right: 0;
    }
    
    .navbar-brand::after {
        display: none;
    }
    
    .navbar-nav {
        margin-left: 0;
        margin-top: 1rem;
        gap: 0.3rem;
    }
    
    .nav-link {
        min-width: auto;
        padding: 1rem !important;
        border-radius: 15px;
        margin-bottom: 0.5rem;
    }
    
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.95);
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(162, 155, 254, 0.2);
        box-shadow: var(--shadow-heavy);
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a29bfe' fill-opacity='0.04'%3E%3Cpath d='M40 40c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 25s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.hero h1 {
    color: var(--pure-white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(26, 26, 46, 0.5);
    animation: fadeInUp 1s ease;
}

.hero p {
    color: var(--light-gray);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-button);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--pure-white);
    transform-style: preserve-3d;
}

.btn-primary:hover {
    background: var(--gradient-button-hover);
    color: var(--pure-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    background: var(--bg-card);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-3d);
}

/* Enhanced Card Images */
.card-img-top {
    height: 220px;
    background: var(--gradient-accent);
    position: relative;
    transform: translateZ(-10px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 20s linear infinite;
}

.card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(162, 155, 254, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.card-img-top span {
    font-size: 4.5rem;
    color: var(--pure-white);
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(26, 26, 46, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-black);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Enhanced Sections */
.featured-restaurants, .testimonials {
    padding: 80px 0;
    position: relative;
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
}

.featured-restaurants {
    background: var(--gradient-primary);
}

.testimonials {
    background: var(--bg-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-black);
    font-size: 2.5rem;
    font-weight: 800;
    animation: fadeInUp 1s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Enhanced Testimonials */
blockquote {
    border-left: 4px solid var(--primary-black);
    padding: 2rem;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.3s ease;
}

blockquote:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

blockquote::before {
    content: '💬';
    font-size: 2.5rem;
    position: absolute;
    top: -15px;
    right: 20px;
    color: var(--primary-black);
    animation: iconBounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(26, 26, 46, 0.2));
}

blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

blockquote-footer {
    color: var(--primary-black);
    font-weight: 600;
    font-size: 1rem;
}

/* Enhanced Forms */
.form-control {
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.form-control:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
    outline: none;
    background: var(--pure-white);
}

.form-label {
    color: var(--primary-black);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: var(--pure-white);
    text-align: center;
    padding: 2rem 0;
    border-top: 3px solid var(--medium-gray);
}

/* Enhanced Map */
#map {
    border: 3px solid var(--primary-black);
    border-radius: var(--border-radius);
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

#map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0.1;
}

/* Enhanced Delivery Logos */
.delivery-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.delivery-logo {
    width: 130px;
    height: 130px;
    border: 3px solid var(--primary-black);
    border-radius: var(--border-radius-icon);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.delivery-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delivery-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(162, 155, 254, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.delivery-logo:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: var(--medium-black);
    box-shadow: var(--shadow-heavy);
}

.delivery-logo:hover::before {
    opacity: 0.1;
}

.delivery-logo:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.delivery-logo h5 {
    color: var(--primary-black);
    font-weight: 700;
    margin: 0;
    z-index: 1;
    position: relative;
    font-size: 0.9rem;
}

/* Enhanced Floating Elements */
.floating-element {
    position: fixed;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(26, 26, 46, 0.2));
    font-size: 2.5rem;
    opacity: 0.7;
}

.floating-element:nth-child(1) {
    animation-delay: 0s;
    top: 15%;
    left: 10%;
}

.floating-element:nth-child(2) {
    animation-delay: 2s;
    top: 25%;
    right: 15%;
}

.floating-element:nth-child(3) {
    animation-delay: 4s;
    bottom: 30%;
    left: 20%;
}

/* Enhanced Icons in Content */
.icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(26, 26, 46, 0.2));
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-medium {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(26, 26, 46, 0.15));
}

.icon-small {
    font-size: 1.5rem;
    margin-left: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(26, 26, 46, 0.1));
}

/* Glass Effect */
.glass {
    background: rgba(162, 155, 254, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(162, 155, 254, 0.2);
    border-radius: var(--border-radius);
}

/* Utility Classes */
.text-3d {
    text-shadow: 2px 2px 0 var(--medium-black), 4px 4px 0 var(--light-black);
    transform: perspective(500px) rotateX(10deg);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(162, 155, 254, 0.5); }
    100% { text-shadow: 0 0 20px rgba(162, 155, 254, 0.8), 0 0 30px rgba(162, 155, 254, 0.6); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

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

@keyframes expandWidth {
    from { width: 0; }
    to { width: 30px; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .delivery-logos {
        gap: 1rem;
    }
    
    .delivery-logo {
        width: 100px;
        height: 100px;
    }
    
    .floating-element {
        font-size: 2rem;
    }
}