/* 🔴 Background & Layout */
body {
  background-image: url('bg.jpg');
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
  backdrop-filter: brightness(0.9);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding-top: clamp(210px, 18vw, 250px);
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
}

/* 🕌 Arabic Header */
.arabic-header {
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 5vw, 28px);
  color: #fff8dc;
  text-align: center;
  margin-top: clamp(-212px, -16vw, -172px);
  padding: 10px;
  direction: rtl;
  line-height: 1.8;
  width: 90%;
  max-width: 600px;
}

/* 🌺 Garland Line */
.garland {
  display: flex;
  gap: clamp(1px, 0.3vw, 2px);
  position: relative;
  margin: clamp(356px, 12vw, 376px) 0 60px;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.garland::-webkit-scrollbar {
  display: none;
}

/* Increased space between PHOOL and DHAGA */
.garland .flower:nth-child(5) {
  margin-right: clamp(40px, 8vw, 50px); /* Increased for larger gap */
}

/* 🌸 Flower Design */
.flower {
  position: relative;
  width: clamp(50px, 6vw, 60px);
  height: clamp(50px, 6vw, 60px);
  background: radial-gradient(circle, #ff6a00, #ff1493);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  animation: swing 2s infinite ease-in-out;
  transform-origin: top center;
  transition: transform 0.3s ease;
  z-index: 1;
  border: 2px solid #ffffffb0;
  flex-shrink: 0;
}

.flower::before,
.flower::after {
  content: "";
  position: absolute;
  width: clamp(60px, 8vw, 70px);
  height: clamp(60px, 8vw, 70px);
  background: radial-gradient(circle, #ff00cc, #8000ff);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
}

.flower::before {
  top: -8px;
  left: -8px;
  transform: rotate(45deg);
}

.flower::after {
  top: -8px;
  left: -8px;
  transform: rotate(-45deg);
}

.flower:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.flower:nth-child(odd) { animation-delay: 0s; }
.flower:nth-child(even) { animation-delay: 1s; }

@keyframes swing {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* 🔘 Enter Button */
.enter-button {
  position: relative;
  margin: clamp(-76px, -8vw, -56px) 0 20px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #00c9ff, #e000ff);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  width: 90%;
  max-width: 300px;
  text-align: center;
}

.enter-button:hover {
  transform: scale(1.07);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
}

/* 📱 Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
    padding-top: clamp(200px, 16vw, 240px);
    background-size: 100% 100%;
    background-position: top center;
  }
  .arabic-header {
    margin-top: clamp(-202px, -14vw, -162px);
  }
  .garland {
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: clamp(1px, 0.3vw, 2px);
    margin: clamp(346px, 10vw, 366px) 0 50px;
    padding: 0 15px;
    overflow-x: hidden;
  }
  .garland .flower:nth-child(5) {
    margin-right: clamp(15px, 4vw, 20px);
  }
  .flower {
    width: clamp(30px, 7vw, 40px);
    height: clamp(30px, 7vw, 40px);
    font-size: clamp(12px, 3vw, 16px);
  }
  .flower::before,
  .flower::after {
    width: clamp(35px, 9vw, 45px);
    height: clamp(35px, 9vw, 45px);
    top: -5px;
    left: -5px;
  }
  .arabic-header {
    font-size: clamp(20px, 4vw, 24px);
    padding: 8px;
  }
  .enter-button {
    margin: clamp(-66px, -7vw, -46px) 0 20px;
  }
}

/* 📱 Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  body {
    padding-top: clamp(190px, 14vw, 230px);
    background-size: 100% 100%;
  }
  .arabic-header {
    margin-top: clamp(-192px, -12vw, -152px);
  }
  .garland {
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: clamp(0.5px, 0.2vw, 1.5px);
    margin: clamp(336px, 9vw, 356px) 0 50px;
    padding: 0 20px;
    overflow-x: hidden;
  }
  .garland .flower:nth-child(5) {
    margin-right: clamp(10px, 3vw, 15px);
  }
  .flower {
    width: clamp(25px, 6vw, 35px);
    height: clamp(25px, 6vw, 35px);
    font-size: clamp(10px, 2.5vw, 14px);
  }
  .flower::before,
  .flower::after {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    top: -4px;
    left: -4px;
  }
  .enter-button {
    margin: clamp(-56px, -6vw, -36px) 0 20px;
  }
}

/* 🖥️ Desktop Screens (min-width: 769px) */
@media (min-width: 769px) {
  body {
    background-size: 100% 100%;
    background-position: top 192px;
    padding-top: clamp(210px, 15vw, 250px);
  }
  .arabic-header {
    margin-top: clamp(-212px, -15vw, -172px);
  }
  .garland {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0px;
    margin: clamp(356px, 10vw, 376px) 0 60px;
    padding: 0 10px;
    overflow-x: auto;
  }
  .garland .flower:nth-child(5) {
    margin-right: clamp(40px, 8vw, 50px); /* Increased for larger gap */
  }
  .flower {
    width: clamp(60px, 5vw, 70px);
    height: clamp(60px, 5vw, 70px);
    font-size: clamp(24px, 2.5vw, 28px);
  }
  .flower::before,
  .flower::after {
    width: clamp(70px, 7vw, 80px);
    height: clamp(70px, 7vw, 80px);
    top: -10px;
    left: -10px;
  }
  .enter-button {
    margin: clamp(-30px, -7vw, -56px) 0 20px;
  }
}