body {
  font-family: "Inter", sans-serif;
}
/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
/* User Requested Overrides */
.w-8 {
  width: 1rem;
}
.h-8 {
  height: 1rem;
}
/* Slider Styles */
.slider-container {
  position: relative;
  height: 100vh; /* Full viewport height */
  min-height: 600px;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide-content {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease-out 0.5s; /* Delay text animation */
}
.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}
.slider-nav {
  z-index: 10;
}
.dot.active-dot {
  background-color: white;
  transform: scale(1.25);
}

/* Popup Styles */
.popup-notice {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.popup-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 0.4s ease-out forwards;
  border-top: 5px solid #ef4444; /* Red border top */
}
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  line-height: 1;
  font-weight: bold;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.close-popup:hover {
  color: #ef4444;
}

/* start language toggle */

.lang-toggle {
  position: relative;

  width: 92px;
  height: 44px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 999px;

  display: flex;
  align-items: center;

  padding: 6px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);

  overflow: hidden;
}

/* Sliding Circle */

.lang-toggle-slider {
  position: absolute;

  width: 36px;
  height: 36px;

  left: 8px;
  top: 2px;

  border-radius: 50%;

  background: linear-gradient(135deg, #3b82f6, #6366f1);

  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);

  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Move slider */

.lang-toggle.bn-active .lang-toggle-slider {
  left: calc(100% - 44px);

  background: linear-gradient(135deg, #f59e0b, #f97316);

  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

/* Buttons */

.lang-option {
  position: relative;
  z-index: 2;

  flex: 1;

  height: 100%;

  border: none;
  background: transparent;

  color: #cbd5e1;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.3s ease;
}

.lang-option.active {
  color: #ffffff;
}

/* Hover */

.lang-option:hover {
  color: #e4e4e4;
}

/* Hide content initially */
.slide .max-w-2xl > * {
    opacity: 0;
    transform: translateY(60px);
}

/* Animate active slide content */
.slide.active .max-w-2xl > *:nth-child(1) {
    animation: fadeUp .7s ease forwards;
}

.slide.active .max-w-2xl > *:nth-child(2) {
    animation: fadeUp .8s ease .2s forwards;
}

.slide.active .max-w-2xl > *:nth-child(3) {
    animation: fadeUp .8s ease .4s forwards;
}

.slide.active .max-w-2xl > *:nth-child(4) {
    animation: fadeUp .8s ease .6s forwards;
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
  .lang-toggle {
    width: 104px;
    height: 48px;
  }

  .lang-toggle-slider {
    width: 38px;
    height: 38px;
  }

  .lang-toggle.bn-active .lang-toggle-slider {
    left: calc(100% - 43px);
  }

  .lang-option {
    font-size: 13px;
  }
}
/* end language toggle */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
