* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #F7941D;
  --black: #000000;
  --white: #FFFFFF;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--black);
  transition: all 0.3s ease;
}

body.dark-mode {
  background-color: #2a2a2a;
  color: var(--white);
}

body.dark-mode .navbar {
  background-color: #2a2a2a;
}

body.dark-mode .section {
  background-color: #2a2a2a;
}

body.dark-mode .image-section {
  background-color: #2a2a2a;
}

body.dark-mode .product-card {
  /* background-color: #3a3a3a; */
  color: var(--white);
}

body.dark-mode .order-form {
  background-color: #3a3a3a;
  color: var(--white);
}

body.dark-mode .about-card {
  background-color: #3a3a3a;
  color: var(--white);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hexagon {
  width: 60px;
  height: 52px;
  /* background: var(--primary-color); */
  position: relative;
  margin: 26px 0;
}

.hexagon:before,
.hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
}

.hexagon:before {
  bottom: 100%;
  /* border-bottom: 15px solid var(--primary-color); */
}

.hexagon:after {
  top: 100%;
  /* border-top: 15px solid var(--primary-color); */
}

.logo-nav{
  width: 150px;
}

.logo h1 {
  position: absolute;
  margin-top: 170px;
  margin-right: 170px;
  margin-left: 170px;
  /* color: var(--primary-color); */
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  transition: color 0.3s ease;
}

body.dark-mode .nav-menu a {
  color: var(--white);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lang-selector select {
  padding: 0.5rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background: var(--white);
}

body.dark-mode .lang-selector select {
  background: #3a3a3a;
  color: var(--white);
}

.dark-toggle {
  background: var(--primary-color);
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-toggle:hover {
  transform: scale(1.1);
}

/* Multiple Animated Bees */
.bee {
  position: fixed;
  width: 30px;
  height: 30px;
  z-index: 999;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
}

.bee:nth-child(1) {
  animation: fly1 20s infinite linear;
  top: 20vh;
  left: 10vw;
}

.bee:nth-child(2) {
  animation: fly2 25s infinite linear;
  animation-delay: -5s;
  top: 40vh;
  right: 10vw;
}

.bee:nth-child(3) {
  animation: fly3 18s infinite linear;
  animation-delay: -10s;
  top: 60vh;
  left: 30vw;
}

.bee:nth-child(4) {
  animation: fly4 22s infinite linear;
  animation-delay: -15s;
  top: 30vh;
  right: 30vw;
}

.bee:nth-child(5) {
  animation: fly5 30s infinite linear;
  animation-delay: -20s;
  top: 70vh;
  left: 50vw;
}

@keyframes fly1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(40vw, -20vh) rotate(90deg); }
  50% { transform: translate(80vw, 15vh) rotate(180deg); }
  75% { transform: translate(20vw, 40vh) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes fly2 {
  0% { transform: translate(0, 0) rotate(180deg); }
  25% { transform: translate(-30vw, 25vh) rotate(270deg); }
  50% { transform: translate(-60vw, -10vh) rotate(0deg); }
  75% { transform: translate(-20vw, 35vh) rotate(90deg); }
  100% { transform: translate(0, 0) rotate(180deg); }
}

@keyframes fly3 {
  0% { transform: translate(0, 0) rotate(270deg); }
  25% { transform: translate(-20vw, -30vh) rotate(0deg); }
  50% { transform: translate(50vw, -50vh) rotate(90deg); }
  75% { transform: translate(30vw, 20vh) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(270deg); }
}

@keyframes fly4 {
  0% { transform: translate(0, 0) rotate(90deg); }
  25% { transform: translate(-25vw, -30vh) rotate(180deg); }
  50% { transform: translate(45vw, 10vh) rotate(270deg); }
  75% { transform: translate(-10vw, 40vh) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(90deg); }
}

@keyframes fly5 {
  0% { transform: translate(0, 0) rotate(45deg); }
  20% { transform: translate(-40vw, -20vh) rotate(135deg); }
  40% { transform: translate(-20vw, -40vh) rotate(225deg); }
  60% { transform: translate(-60vw, 20vh) rotate(315deg); }
  80% { transform: translate(10vw, 30vh) rotate(45deg); }
  100% { transform: translate(0, 0) rotate(135deg); }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.w-100{
    width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Carousel */
.hero {
  background: var(--primary-color);
  background-image: url('../img/backgound-drip.svg');
  background-size: cover;
  margin-top: 80px;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.carousel {
  width: 100%;
  position: relative;
  margin: 2rem;
}

.carousel-item {
  display: none;
  text-align: left;
  color: var(--white);
  padding: 2rem;
}

.carousel-item.active {
  display: block;
}

.carousel-item h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.carousel-desc{
  min-width: 700px;
}

.carousel-item p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.carousel-img{
  padding-top: 50px;
  padding-bottom: 50px;
  width: 300px;
}

.carousel-item-row{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.carousel-item-col{
  display: flex;
  list-style: none;
  gap: 2rem;
}

/* Products Section */
.products {
  background: var(--white);
  position: relative;
}

.honey-drip {
  /* background-image: url('../img/honey-drip.svg');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  min-height: 150px;
  border-color: #F7941D;
  border: 0;
  padding: 0;
  margin: 0; */
  /*position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--primary-color);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 85% 80%, 75% 100%, 65% 70%, 55% 100%, 45% 60%, 35% 100%, 25% 80%, 15% 100%, 5% 90%, 0 100%);
  clip-path: path('M0, 0 H1512 V580 C1512 580, 1506 590, 1495 592 C1484 594, 1475 585, 1465 588 C1455 591, 1448 600, 1435 600 C1422 600'):*/
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.product-card {
  /* background: var(--white); */
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image img{
  width: 180px;
}

.size-options {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.size-btn {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--primary-color);
  background: var(--white);
  color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

/* Order Form */
.order-section {
  /* background: #f9f9f9; */
  background: #ffffff;
}

body.dark-mode .order-section {
  background: #2a2a2a;
}

.order-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #4a4a4a;
  color: var(--white);
  border-color: #555;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Multiple Products Selection */
.products-selection {
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #f9f9f9;
}

body.dark-mode .product-item {
  background: #4a4a4a;
  border-color: #555;
}

.product-checkbox {
  width: 20px;
  height: 20px;
}

.product-details {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.product-name {
  font-weight: bold;
}

.quantity-input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.size-select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.item-total {
  font-weight: bold;
  color: var(--primary-color);
}

.total-summary {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1rem;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.captcha-code {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  letter-spacing: 2px;
}

.submit-btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #e8850a;
}

/* Gallery */
/* .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(45deg, var(--primary-color), #ffb84d);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
} */

/* تحسينات معرض الصور */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* نمط للوضع الداكن */
body.dark-mode .gallery-item {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

body.dark-mode .gallery-item:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* Lightbox (نافذة العرض الموسعة) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تأثير التكبير عند المرور */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        height: 200px;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 250px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* تأثيرات تحميل الصور */
.gallery-item {
    background-color: #f5f5f5;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                      linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

body.dark-mode .gallery-item {
    background-color: #3a3a3a;
    background-image: linear-gradient(45deg, #444 25%, transparent 25%, transparent 75%, #444 75%, #444),
                      linear-gradient(45deg, #444 25%, transparent 25%, transparent 75%, #444 75%, #444);
}

/* About Section */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

/* Footer */
.footer {
  background: var(--primary-color);
  background-image: url("../img/bg-footer.svg");
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  text-align: center;
  padding: 3rem 0 1rem;
  position: relative;
}

/* .footer::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--primary-color);
  clip-path: polygon(0 100%, 10% 0, 20% 100%, 30% 0, 40% 100%, 50% 0, 60% 100%, 70% 0, 80% 100%, 90% 0, 100% 100%);
} */

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.developer-credit {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  margin-top: 2rem;
}

.developer-credit a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-websitename {
    display: none;
  }

  .carousel-item h2 {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .product-details {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .bee {
    width: 25px;
    height: 25px;
  }
}

.hidden {
  display: none;
}

/*-----------------------*/
/* إضافات خاصة للكاروسيل على الموبايل */
@media (max-width: 768px) {
    .carousel-item-row {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .carousel-desc {
        min-width: 100% !important;
        order: 2;
        margin-top: 1rem;
    }

    .carousel-img {
        width: 200px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        order: 1;
    }

    .carousel-item h2 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem;
    }

    .carousel-item p {
        font-size: 1rem !important;
        max-width: 100% !important;
    }

    /* تحسينات التنقل للكاروسيل على الموبايل */
    .carousel-controls {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 10;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--white);
    }
}

/* تحسينات عامة للكاروسيل */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--white);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* إخفاء الأسهم على الموبايل إذا لزم الأمر */
@media (max-width: 480px) {
    .carousel-arrow {
        display: none;
    }
}
