/* ===================================== Navigation ===================================== */

nav {
  font-family: var(--heading-font);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 10;
  transition: box-shadow 0.3s ease-in-out;
}

.nav-shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  background-color: white;
  z-index: 20;
}

.logo-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-content img {
  width: 50px;
  height: auto;
}

.logo-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-block: 0;
  color: #3989e8;
}

.logo-content span {
  color: #fb0fe9;
}

.desktop-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0;
}

/* ------------------------ Desktop Product Dropdown ------------------------ */

.product-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.product-dropdown.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-dropdown ul {
  font-family: var(--heading-font);
}

/* ===================================== Mobile Navigation ===================================== */

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle img {
  width: 30px;
  height: 30px;
  display: none;
}

.menu-toggle img.active {
  display: block;
}

.mobile-menu {
  list-style: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background-color: white;
  z-index: 5;
  padding-left: 0;
  transition: max-height 0.4s ease-in-out;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu .link {
  font-size: 1rem;
  font-weight: 600;
}

.product-link {
  display: flex;
  margin-bottom: 0;
}

.product-link a {
  font-size: 1rem;
  font-weight: 600;
}

.mobile-menu.active {
  max-height: 100vh;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ------------------------ Mobile Product Dropdown ------------------------ */

.custom-accordion-main {
  padding-left: 0 !important;
  font-weight: 600 !important;
  color: #000000 !important;
  padding: 0 !important;
  margin-bottom: 0.2rem !important;
}

.custom-accordion-item,
.custom-accordion-button {
  border: none !important;
  background-color: transparent !important;
}

.custom-accordion-button:not(.collapsed) {
  background-color: transparent !important;
  box-shadow: none !important;
  color: #3989e8 !important;
  font-weight: 600 !important;
}

.custom-accordion-button {
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  padding-top: 0.8rem !important;
  padding-bottom: 0.5rem !important;
  color: rgba(0, 0, 0, 0.8) !important;
  padding-inline: 0;
}

.custom-accordion-collapse {
  padding-inline: 20px;
}

.custom-accordion-button:not(.collapsed) {
  background-color: transparent !important;
  box-shadow: none !important;
}

.custom-accordion-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.custom-subcategory-link {
  text-decoration: none !important;
  margin-left: 1rem !important;
  width: fit-content !important;
  color: rgba(0, 0, 0, 0.4) !important;
}

/* ===================================== Hero Carousel Fade Effect ===================================== */

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slider img.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}

/* Incoming Slide */
.hero-slider img.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Outgoing Slide */
.hero-slider img.slide.exit {
  opacity: 0;
  transform: scale(1.15);
  z-index: 1;
}

.slider-btn {
  position: absolute;
  bottom: 8%;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: rgba(0, 0, 0, 0.8);
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  border: 1px solid rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* ===================================== Section Styles ===================================== */

#hero {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-title {
  font-size: 7rem;
  letter-spacing: -2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
  background: linear-gradient(
    45deg,
    #1d2329,
    #6c757d,
    #ffffff,
    #adb5bd,
    #1d2329,
    #6c757d
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#why_us .featured-card {
  background-image: radial-gradient(
    circle,
    #ffffff 10%,
    #edf3f5 30% 30%,
    #f9f9f9 48%
  );
  border-radius: 10px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

#why_us .featured-card p {
  transition: transform 0.3s ease;
}

#why_us .featured-card:hover {
  transform: translateY(-5px);
  background-image: radial-gradient(
    circle,
    #e6e6e6 10%,
    #d1d8db 30% 30%,
    #f0f0f0 48%
  );
  border: 3px solid;
  border-image: linear-gradient(
      45deg,
      #ff6b6b,
      #4ecdc4,
      #45b7d1,
      #96ceb4,
      #feca57,
      #ff9ff3
    )
    1;
  border-radius: 10px;
}

#why_us .featured-card:hover p {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

#call_to_action {
  background-image: url("../images/home/cta-background.jpg?v=4");
  background-size: cover;
  background-position: center;
  margin-top: 4rem;
}

.cta-card {
  text-align: left;
  color: rgb(0, 0, 0);
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 0;
}

.cta-label {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  padding: 5px 8px;
  letter-spacing: 2px;
  border-radius: 4px;
  background-color: #1d2329;
  color: rgba(255, 255, 255, 0.8);
  width: fit-content;
}

.cta-subtext {
  font-size: 1rem;
  width: 60%;
  opacity: 60%;
  margin-bottom: 30px;
}

/* ===================================== Footer ===================================== */

.footer-main {
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    url("../images/home/footer-bg.jpg?v=2") no-repeat center top / cover;
  font-family: var(--body-font);
}

/* ===================================== Responsive ===================================== */

@media (max-width: 992px) {
  .logo-content img {
    width: 30px;
  }

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .product-dropdown {
    display: none;
  }

  .hero-title {
    font-size: 6rem;
    letter-spacing: -2px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
    letter-spacing: -2px;
  }

  .cta-card {
    padding-inline: 20px;
  }

  .cta-subtext {
    font-size: 0.9rem;
    width: 75%;
  }

  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}
