/* ===== Global Styles ===== */
body {
  margin: 0;
  overflow-x: hidden;
  background: #0f0c29;
  color: white;
  font-family: sans-serif;
}

/* ===== Particles.js container ===== */
#particles-js {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===== Dropdown Menu ===== */
.desktop-menu:hover .desktop-submenu {
  display: block;
}

.desktop-submenu {
  display: block; /* keep in flow for animation */
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  background: #374151;
  border-radius: 0.5rem;
  overflow: hidden;
  min-width: 12rem;
  z-index: 50;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.desktop-submenu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-submenu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #d1d5db;
  transition: all 0.2s;
}

.desktop-submenu a:hover {
  background: #14b8a6;
  color: #111827;
}

/* ===== Carousel ===== */
.carousel-container {
  position: relative;
  max-width: 800px; /* increased width */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.75rem;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  object-fit: cover;
}

/* ===== Carousel Dots ===== */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #14b8a6;
}
