/* Luna Jewelry Website Styles */
:root {
  --gray-1: #18181a;
  --gray-2: #7f7f7f;
  --gray-3: #a5a5a5;
  --gray-4: #cccccc;
  --gray-5: #f2f2f2;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f2f2;
  color: #18181a;
}

/* --- Header --- */
header {
  background-color: #18181a;
  color: white;
  padding: 0.5rem 2rem;
  position: relative;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.1rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
}

/* --- Dropdown Menu Styles --- */
.menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
  color: white;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 2000; /* ensure it stays above other content */
  min-width: 200px; /* keeps links aligned */
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: black;
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

.hero-exclusive-container,
.promo-temple-container,
.section-container {
  background-color: white;
  padding: 0;
}

.golden-touch-background {
  background-color: #EFBF04;
}

.hero,
.promo {
  width: 100%;
  overflow: hidden;
}

.categories {
  padding: 0.1rem;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel,
.promo-carousel {
  height: 900px; 
}

/* --- Category Scrolling --- */
.category-buttons,
.centered-carousel {
  display: flex;
  justify-content: start;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-buttons::-webkit-scrollbar,
.centered-carousel::-webkit-scrollbar {
  display: none;
}

.category-buttons > div,
.centered-carousel > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.category-buttons img,
.centered-carousel img {
  width: 200px;
  height: 200px;
  cursor: pointer;
  border: 2px solid #a5a5a5;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  object-fit: cover;
}

.category-buttons img:hover,
.centered-carousel img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #a5a5a5;
}

.image-heading {
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  margin: 0.5rem 0 0 0;
}

/* --- Slides & Carousel --- */
.slides {
  display: flex;
  position: relative;
  height: 100%;
}

.slides .slide {
  min-width: 100%;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slides .slide.active {
  opacity: 1;
  position: relative;
}

.slides .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.categories h2 {
  text-align: center;
  color: #18181a;
  margin-bottom: 0.5rem;
}

/* --- About Section --- */
.about {
  background-color: #cccccc;
  padding: 2rem;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-container img {
  width: 300px;
  height: 300px;
  border-radius: 10px;
  object-fit: cover;
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  margin-top: 0;
  color: #18181a;
}

/* --- Contact Section --- */
.contact {
  padding: 2rem;
  background-color: white;
}

.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #a5a5a5;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

button {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #18181a;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #7f7f7f;
}

/* --- Footer --- */
footer {
  padding: 1rem;
  background-color: #18181a;
  color: white;
  position: relative;
}

/* Footer Links Vertical */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer a.footer-link {
  color: white !important;
  text-decoration: none;
  margin: 4px 0;
}

footer a.footer-link:hover {
  text-decoration: underline;
}

/* Social Media Icons - Top Right with PNG */
.footer-social {
  position: absolute;
  top: 10px;
  right: 15px;
  display: flex;
  gap: 10px;
}

.footer-social img {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  transition: transform 0.3s, opacity 0.3s;
}

.footer-social img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .logo {
    height: 60px; 
  }

  /* Carousel adjustments */
  .hero-carousel,
  .promo-carousel {
    height: 400px;
  }

  .slide img {
    height: 100%;
    object-fit: cover;
  }

  /* Category image scaling */
  .category-buttons img,
  .centered-carousel img {
    width: 120px;
    height: 120px;
    gap: 0.5rem;
    border-radius: 20px;
  }

  /* About section stack */
  .about-container {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }
}