

/* ===========================
   CSS Variables (global)
   =========================== */
:root{
    /* الألوان */
    --primary: #D35400;
    --secondary: #2C3E50;
    --accent: #F1C40F;
    --text: #333333;
    --bg-light: #FFFFFF;
    --bg-section: #FAF6F2;

    /* الخطوط */
    --font-heading: 'El Messiri', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

/* ===========================
   Reset / Base
   =========================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
    background-color: var(--bg-light);
    transition: all 0.5s ease;
}

/* container + images + headings */
.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img{
    max-width: 100%;
    height: auto;
}

h1,h2,h3,h4{
    font-family: var(--font-heading);
    font-weight: 600;
}


/* ===========================
   Backdrop / global pseudo element (for header blur stacking)
   =========================== */
body::before{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* نستخدم z-index أقل من عناصر الهيدر لضبط العزل (تم تنظيف التكرار) */
    z-index: -2;
}


/* ===========================
   Header / Navigation
   =========================== */

/* Sticky header — مجمّع (كل الخصائص المحافظة على نفس القيم) */
.sticky-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* سفاري */
    background-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    isolation: isolate; /* مهم لعمل backdrop-filter بشكل صحيح */
    transition: background-color 0.3s ease;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px; /* لمراعاة الهيدر الثابت */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url('IMG/Bg011.jpg') center/cover no-repeat;
    z-index: -1;

  
}

.cta-btn:hover {
    background: #f39c12;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
nav a {
  text-decoration: none;
  color: black; /* task bar style */
  font-size: 18px;
  margin: 0 15px;
  transition: color 0.3s;
}
nav a:hover {
  color: #E67E22; /* اللون البرتقالي عند المرور */
}
body.dark-mode nav a:hover {
  color: #E67E22;
}


/* حالة عند التمرير */
.sticky-header.scrolled{
    background-color: rgba(255, 255, 255, 0.95);
}

/* Header container */
header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

body.dark-mode .hero-background {
    filter: brightness(0.7);
}

body.dark-mode .hero h1,
body.dark-mode .hero p {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-background {
        animation: none;
    }
}

/* Logo */
.logo{
    height: 50px;
}

/* Navigation layout */
.nav-container,
.main-nav{
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-items{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px;
}

.nav-menu li{
    margin-left: 30px;
}

.nav-menu a{
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover{
    color: var(--primary);
}

/* تنسيق هامبرجر للجوال */
.hamburger-menu {
    display: none; /* مخفي في الكمبيوتر */
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* القائمة الرئيسية */
.main-nav {
    display: flex;
    transition: all 0.3s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* للجوال - القائمة مخفية أولاً */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px; /* ارتفاع الهيدر */
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
}



/* Nav actions (reserve + theme + others) */
.nav-actions,
.nav-buttons{
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item{
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* hamburger */
.hamburger-menu{
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile nav (hidden by default, shown when active) */
@media (max-width: 768px){
    .nav-container,
    .main-nav{
        display: none;
    }

    .hamburger-menu{
        display: block;
    }

    .nav-menu{
        display: none;
        position: absolute;
        top: 80px;
        right: 0;
        left: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active{
        display: flex;
    }

    .nav-menu li{
        margin: 10px 0;
    }
}

/* Mobile tweaks for larger breakpoint */
@media (max-width: 992px){
    .contact-item{
        flex-direction: column;
        gap: 100px;
    }

    .nav-items{
        gap: 100px;
    }
}

/* ===========================
   Buttons (reserve, cta, offer)
   =========================== */

.reserve-btn{
    background: linear-gradient(to left, var(--primary), #E67E22);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
    white-space: nowrap;
}

.reserve-btn:hover{
    background-color: #e67e22;
}

.cta-btn{
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: 12px 30px;
    border-radius: 11px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-heading);
}

.cta-btn:hover{
    background-color: #f39c12;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Offer button */
.offer-btn{
    background: var(--accent);
    color: var(--secondary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    font-family: var(--font-heading);
}
}

.offer-btn:hover{
    background: #f39c12;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Theme toggle
   =========================== */
.theme-toggle{
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s;
    border-radius: 50%;
}

.theme-toggle .dark-icon{ display: none; }

body.dark-mode .theme-toggle .light-icon{ display: none; }
body.dark-mode .theme-toggle .dark-icon{ display: block; color: var(--accent); }

.theme-toggle:hover{ transform: scale(1.1); color: var(--primary); }
.theme-toggle:active{ transform: scale(0.9); }

/* تباين أفضل في الوضع الداكن */
body.dark-mode .theme-toggle{
    color: #f1c40f;
}

/* ===========================
   Hero Section
   =========================== */
.hero{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/IMG/Bg011.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.hero-content{
    max-width: 800px;
    margin: 0 auto;
}

.hero h1{
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p{
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* responsive hero title */
@media (max-width: 768px){
    .hero h1{ font-size: 2.5rem; }
}

/* ===========================
   Features
   =========================== */
.features{
    padding: 80px 0;
    background-color: var(--bg-section);
}

.section-title{
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--secondary);
}

.features-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item{
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover{ transform: translateY(-10px); }

.feature-item img{
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-item h3{
    margin-bottom: 15px;
    color: var(--secondary);
}

/* mobile features */
@media (max-width: 768px){
    .features-grid{ grid-template-columns: 1fr; }
}

/* ===========================
   Menu Section
   =========================== */
.menu-section{
    padding: 80px 0;
}

.menu-filter{
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;

}

.filter-btn{
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    margin: 0 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-family: var(--font-heading);
}

.filter-btn:hover,
.filter-btn.active{
    background-color: var(--primary);
    color: white;
}


.menu-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-item{
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.menu-item:hover{ transform: translateY(-10px); }

.menu-item img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-info{ padding: 20px; }

.menu-item h4{
    margin-bottom: 10px;
    color: var(--secondary);
}

.price{
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

/* responsive menu grid */
@media (max-width: 992px){
    .menu-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px){
    .menu-grid{ grid-template-columns: 1fr; }
}

/* ===========================
   Offer Section
   =========================== */
.offer-section{
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: white;
}

.offer-card{
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.offer-image{ flex: 1; }
.offer-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-content{
    flex: 1;
    padding: 40px;
    color: var(--secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-content h2{
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.offer-description{
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.countdown-container{
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.countdown-box{
    text-align: center;
    background: var(--secondary);
    color: white;
    border-radius: 10px;
    padding: 15px 10px;
    min-width: 70px;
}

.countdown-value{
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.countdown-label{
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

/* offer responsive */
@media (max-width: 768px){
    .offer-card{ flex-direction: column; }
    .offer-image{ height: 250px; }
    .countdown-box{ min-width: 60px; padding: 10px 5px; }
    .countdown-value{ font-size: 1.5rem; }
}

/* ===========================
   Testimonials
   =========================== */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-section);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
}

.client-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--accent);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.client-name {
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
}

/* للوضع الداكن */
body.dark-mode .testimonial {
    background: var(--bg-section);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        padding: 20px;
    }
}

.testimonial {
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: """;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    color: rgba(211, 84, 0, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonials-grid {
    align-items: start; 
}

/* ===========================
   Contact / Reservation / Map
   =========================== */
.contact-section{ padding: 80px 0; }

.contact-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.reservation-form{
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.reservation-form input{
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.map{
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map iframe{
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* contact responsive */
@media (max-width: 992px){
    .contact-grid{ grid-template-columns: 1fr; }
    .map{ min-height: 300px; }
}

.social-media {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.social-icon:nth-child(1) { background: #3b5998; } /* فيسبوك */
.social-icon:nth-child(2) { background: #1da1f2; } /* تويتر */
.social-icon:nth-child(3) { 
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
} /* انستجرام */
.social-icon:nth-child(4) { background: #fffc00; color: #000; } /* سنابشات */
.social-icon:nth-child(5) { background: #000000; } /* تيكتوك */

/* تأثيرات التمرير */
.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.social-icon:hover i {
  animation: bounce 0.5s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* للوضع الداكن */
body.dark-mode .social-icon {
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

body.dark-mode .social-icon:hover {
  box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .social-media {
    gap: 15px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ===========================
   Footer
   =========================== */
footer{
    background-color: var(--secondary);
    color: white;
    padding: 50px 0 20px;
}

.footer-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links{ display: flex; flex-direction: column; }

.footer-links a{
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover{ color: var(--accent); }

.social-icons{
    display: flex;
    justify-content: center;
}

.social-icons a{ margin: 0 10px; }

.social-icons img{
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons img:hover{ transform: scale(1.2); }

.copyright{
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    grid-column: 1 / -1;
}

/* footer responsive */
@media (max-width: 576px){
    .footer-grid{ grid-template-columns: 1fr; text-align: center; }
    .social-icons{ justify-content: center; margin: 20px 0; }
    .copyright{ text-align: center; }
}

/* ===========================
   Dark Mode variables + tweaks
   =========================== */
body.dark-mode{
    --text: #f0f0f0;
    --bg-light: #1a1a1a;
    --bg-section: #2a2a2a;
}

body.dark-mode .sticky-header{
    background-color: rgba(44, 62, 80, 0.85) !important;
}

body.dark-mode .theme-toggle{
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}


/* End of file */
