/* ======================== Global Styles ======================== */
/* الخطوط، الهوامش، والخلفية العامة */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 70px; /* مساحة للـ navbar الثابت */
  background: hsl(259, 44%, 86%);
  color: #333;
  text-align: center;
  transition: all 0.3s ease; /* للانتقال السلس بين الوضعين */
}

/* الوضع الداكن */
body.dark-mode {
  background-color: #1a1a1a;
  color: #eee;
}

/* ======================== Header ======================== */
header {
  width: 100vw;              /* غطّي الشاشة بالكامل */
  min-height: 100vh;         /* غطّي ارتفاع الشاشة */
  background: url("images/coffee-bg.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 3em;
}

header p {
  margin-top: 10px;
  font-size: 1.2em;
}
/* تطبيق خط Poppins على كامل الموقع */
body {
  font-family: 'Poppins', Arial, sans-serif;
}

/* ======================== Navbar ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.navbar.dark-mode {
  background-color: #111;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #6d28d9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: #6d28d9;
  color: white;
}

.nav-link.active {
  background: #c81df3;
  color: white;
}

/* زر السلة */
.cart-btn {
  background: #6d28d9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-btn:hover {
  background: #4c1d95;
}

/* زر الهامبورغر للوضع المتنقل */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #6d28d9;
  cursor: pointer;
}

/* ======================== Menu & Cards ======================== */
.menu {
  padding: 40px 20px;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
}




/* أزرار الكارد */
.card button {
  margin-top: 10px;
  padding: 10px 15px;
  width: 100%;
  background:  #6d28d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.card button:hover {
  background:  #c81df3;
  transform: scale(1.05);
}

/* الوضع الداكن للكارد */
.card.dark-mode {
  background-color: #000000;
  color: #fffefe;
}

/* ======================== Search Box ======================== */
.search-container {
  margin: 100px auto 40px auto;
  text-align: center;
}

.search-container input {
  width: 60%;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 25px;
  outline: none;
  transition: 0.3s;
}

.search-container input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* ======================== Footer ======================== */
.footer {
  background: #6d28d9;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
}

.footer .socials a {
  color: white;
  margin: 0 10px;
  font-size: 20px;
  transition: 0.3s;
}

.footer .socials a:hover {
  color: #f59e0b;
}

/* ======================== Modal ======================== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.modal input {
  padding: 10px;
  font-size: 1rem;
  width: 50%;
  margin-bottom: 15px;
}

.modal button {
  padding: 10px 20px;
  background: #8d493a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.modal button:hover {
  background: #f59e0b;
}

/* ======================== Cart Sidebar ======================== */
/* ======================== Cart Modal ======================== */
.cart-modal {
  display: none; /* مخفية بالبداية */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.cart-modal-content {
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  overflow-y: auto;
  max-height: 80%;
}

.cart-modal-content h2 {
  color: #6d28d9;
  margin-bottom: 15px;
}

.cart-modal-content button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #8d493a;
  color: #fff;
  transition: 0.3s;
}

.cart-modal-content button:hover {
  background: #c81df3;
}

/* زر السلة العائم */
#cartBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  background: #8d493a;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 4000;
  font-size: 1.2rem;
}

#cartBtn:hover {
  background: #f59e0b;
}

/* ======================== Animations ======================== */
.fade-in { animation: fadeIn 2s ease forwards; opacity: 0; }
.fade-in-delay { animation: fadeIn 2s ease forwards; animation-delay: 1s; opacity: 0; }

@keyframes fadeIn { to { opacity: 1; } }
.zoom-in { transform: scale(0.8); animation: zoomIn 0.8s ease forwards; }
@keyframes zoomIn { to { transform: scale(1); } }

/* ======================== Responsive (Mobile) ======================== */
@media (max-width: 768px) {



  
  /* Navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    background: #222;
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cart-btn {
    font-size: 18px;
    padding: 5px 10px;
  }

  header h1 {
    font-size: 24px;
  }

  header p {
    font-size: 16px;
  }

}

/* أصغر الشاشات */
@media (max-width: 480px) {
  .menu-items {
    grid-template-columns: 1fr;
  }

  .search-container input {
    width: 100%;
    font-size: 16px;
  }
}


/* ======================== Contact Form ======================== */
#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #ffffff; /* لون خلفية موحد */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: auto;
  text-align: left;
  transition: background 0.3s, color 0.3s;
}

/* الوضع الداكن للفورم */
body.dark-mode #contact form {
  background-color: #222; 
  color: #eee;
}

/* Inputs و Textarea */
#contact input,
#contact textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}

body.dark-mode #contact input,
body.dark-mode #contact textarea {
  background-color: #333;
  border: 1px solid #555;
  color: #eee;
}

#contact input:focus,
#contact textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  outline: none;
}

/* زر الإرسال */
#contact button {
  background: #6d28d9;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#contact button:hover {
  background: #c81df3;
}

/* ======================== Navbar Responsive Text ======================== */
/* نصوص الهامبورغر واضحة في الوضع المتنقل */
@media (max-width: 768px) {
  .nav-links {
    background: #222; /* لون خلفية الهامبورغر */
  }
  
  .nav-link {
    color: #fff; /* نص واضح */
  }
  
  .nav-link:hover {
    background: #6d28d9;
    color: #fff;
  }

  /* الوضع الداكن */
  body.dark-mode .nav-links {
    background: #111;
  }

  body.dark-mode .nav-link {
    color: #eee;
  }

  body.dark-mode .nav-link:hover {
    background: #6d28d9;
    color: #fff;
  }
}


/* ===== Socials Bottom ===== */
.socials-bottom {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0 50px 0; /* مسافة من الأعلى والأسفل */
}

.socials-bottom a {
  color: white;
  background: #6d28d9;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none; /* ← هذا يزيل الخط */
}


.socials-bottom a:hover {
  transform: scale(1.2) rotate(10deg);
  background: #c81df3; /* يتغير عند المرور إلى لون ثانوي للموقع */
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);

}


/* الخطوط الفخمة للعنوان */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

.fancy-title {
  font-family: 'Playfair Display', serif; /* خط أنيق وفخم */
  font-size: 4rem;
  color: #ffffff; /* أرجواني فاخر متناسق مع ألوان الموقع */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3); /* ظل للنص يعطي عمق */
  margin: 0;
}

.fancy-subtitle {
  font-family: 'Poppins', sans-serif; /* خط بسيط ومتناسق */
  font-size: 1.5rem;
  color: #c81df3; /* لون ثانوي متناسق */
  letter-spacing: 1px;
}

/* الهيدر */
.header-fancy {
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #8d28d9cc, #f59e0bcc), url('images/cafe-background.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  font-family: 'Playfair Display', serif; /* خط فخم */
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.3); /* يغطي الخلفية لتوضيح النص */
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  animation: fadeInHeader 2s ease forwards;
}

.header-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.header-content h1 span {
  color: #f59e0b;
}

.header-content p {
  font-size: 1.3rem;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
}

/* أنيميشن */
@keyframes fadeInHeader {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: translateY(0);}
}
