/* 🎨 Root Colors & Basics */
:root {
  --brown-dark: #4b2e05;
  --brown: #7a4f15;
  --beige: #fdf3e7;
  --gold: #d4a373;
  --cream: #fffaf3;
  --text-dark: #2b2b2b;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 🌅 HERO SECTION */
.hero {
  background: url("images/bakery-bg.jpg") center/cover no-repeat;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: brightness(80%);
}
/* 🌟 NAVBAR STYLING */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.8rem 5%;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--brown);
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

/* لو الخلفية اتغيرت بعد scroll */
.navbar.scrolled .nav-links a {
  color: #333;
}

/* الخط المتحرك تحت اللينك */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover {
  color: var(--gold);
}


/* HERO CONTENT */
.hero-content {
  text-align: center;
  z-index: 2;
  margin-top: 150px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #f8f8f8;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary {
  background: var(--gold);
  color: white;
}

.btn-primary:hover {
  background: var(--brown);
}

/* 🌾 SECTIONS */
.section {
  padding: 100px 10%;
  text-align: center;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: #6b6b6b;
  margin-bottom: 2rem;
}

/* 🍞 BREAD GALLERY */
.bread-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: 1rem;
}

.bread-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.bread-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(90%);
  transition: 0.4s ease;
}

.bread-item span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.4s ease;
  font-size: 0.95rem;
}

.bread-item:hover img {
  transform: scale(1.05);
  filter: brightness(65%);
}

.bread-item:hover span {
  opacity: 1;
}

.bread-item.tall {
  grid-row: span 2;
}

.bread-item.small {
  grid-row: span 1;
  grid-column: span 1;
}

.bread-item.wide {
  grid-column: span 2;
}

/* 🧁 PASTRIES */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.price {
  color: var(--brown-dark);
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
}

/* 🌟 SERVICES SECTION */
.services {
  text-align: center;
  background-color: #fffaf3;
  padding: 5rem 8%;
}

.services h2 {
  font-family: 'Playfair Display', serif;
  color: var(--brown);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: #777;
  margin-bottom: 3rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: var(--bg) center/cover no-repeat;
  transition: all 0.4s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.service-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s ease;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: #f3f3f3;
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-6px);
}

.service-card:hover .overlay {
  background: rgba(0,0,0,0.25);
}


/* 🧑‍🍳 ABOUT */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 🌇 CONTACT SECTION */
.contact {
  padding: 0;
  position: relative;
  color: white;
}

.contact-bg {
  background: url("images/bakery-front.jpg") center/cover no-repeat;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.contact-box {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 40px 60px;
  text-align: center;
  z-index: 2;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-box .section-sub {
  color: #f2f2f2;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-info h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-info p {
  color: #f8f8f8;
  font-size: 0.95rem;
}

.contact-box .btn {
  background: var(--gold);
  color: #fff;
  padding: 10px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: 0.3s;
}

.contact-box .btn:hover {
  background: var(--brown);
}

/* optional icons if using Font Awesome */
.contact-info i {
  margin-right: 6px;
  color: var(--gold);
}


/* ⚙️ FOOTER */
footer {
  background: var(--brown-dark);
  color: white;
  text-align: center;
  padding: 20px;
}

.socials {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.socials img {
  width: 25px;
  opacity: 0.8;
  transition: 0.3s;
}

.socials img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 15px 30px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .about-content {
    flex-direction: column;
  }
}

/* 🪟 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.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}

.close:hover {
  color: var(--brown);
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.modal-body img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.modal-body h2 {
  font-family: 'Playfair Display', serif;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

#modal-details {
  text-align: left;
  margin-top: 1.5rem;
}

#modal-details h3 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#modal-details p {
  margin-bottom: 0.5rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-body img {
    height: 150px;
  }
}
