/* spinner code  */

/* === Loader Wrapper === */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(11, 11, 31, 0.3); /* Semi-transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  height: 100vh;
  z-index: 9999;
}

/* From Uiverse.io by mrhyddenn */
.spinner {
  font-size: 28px;
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.spinner.center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.spinner .spinner-blade {
  position: absolute;
  left: 0.4629em;
  bottom: 0;
  width: 0.074em;
  height: 0.2777em;
  border-radius: 0.0555em;
  background-color: transparent;
  transform-origin: center -0.2222em;
  animation: spinner-fade9234 1s infinite linear;
}

.spinner .spinner-blade:nth-child(1) {
  animation-delay: 0s;
  transform: rotate(0deg);
}
.spinner .spinner-blade:nth-child(2) {
  animation-delay: 0.083s;
  transform: rotate(30deg);
}
.spinner .spinner-blade:nth-child(3) {
  animation-delay: 0.166s;
  transform: rotate(60deg);
}
.spinner .spinner-blade:nth-child(4) {
  animation-delay: 0.249s;
  transform: rotate(90deg);
}
.spinner .spinner-blade:nth-child(5) {
  animation-delay: 0.332s;
  transform: rotate(120deg);
}
.spinner .spinner-blade:nth-child(6) {
  animation-delay: 0.415s;
  transform: rotate(150deg);
}
.spinner .spinner-blade:nth-child(7) {
  animation-delay: 0.498s;
  transform: rotate(180deg);
}
.spinner .spinner-blade:nth-child(8) {
  animation-delay: 0.581s;
  transform: rotate(210deg);
}
.spinner .spinner-blade:nth-child(9) {
  animation-delay: 0.664s;
  transform: rotate(240deg);
}
.spinner .spinner-blade:nth-child(10) {
  animation-delay: 0.747s;
  transform: rotate(270deg);
}
.spinner .spinner-blade:nth-child(11) {
  animation-delay: 0.83s;
  transform: rotate(300deg);
}
.spinner .spinner-blade:nth-child(12) {
  animation-delay: 0.913s;
  transform: rotate(330deg);
}

@keyframes spinner-fade9234 {
  0% {
    background-color: #69717d;
  }
  100% {
    background-color: transparent;
  }
}

/* Red underline on hover (excluding .cta-button) */
nav a:not(.cta-button),
.dropdown-toggle {
  font-size: 17px;
  position: relative;
  color: white;
}

nav a:not(.cta-button)::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
   background: rgba(255, 255, 255, 0.534);
  transition: width 0.3s ease;
}


nav a:not(.cta-button):hover::after,
.dropdown-toggle:hover::after {
  width: 100%;
  margin-top: 20px;
}

/* Dropdown content underline */
.dropdown-content a {
  position: relative;
}

.dropdown-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background-color: red;
  transition: width 0.3s ease;
}

.dropdown-content a:hover::after {
  width: 100%;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 11px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 1000;
  background: transparent;
  color: white;
  border-radius: 0 0 20px 20px;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(11px);
  /* color: white; */
  box-shadow: 0 2px 10px black;
}

.logo img{
  font-size: 1.5rem;
  font-weight: bold;
  width: 150px;
  height: 50px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Align button to right only on desktop */
.desktop-button {
  display: inline-block;
  color: white;
  border: 2px solid #007bff;
}

.desktop-button:hover {
  background: #0056b3;
  border-color: #0056b3;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* CTA Button */
.cta-button {
  padding: 10px 20px;
  color: white !important;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.dropdown-content {
  position: absolute;
  top: 139%;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  color: black;
  min-width: 180px;
  border-radius: 5px;
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.dropdown:hover .dropdown-content {
  transform: scaleY(1);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(11px);
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-content a {
  padding: 10px 15px;
  color: black;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #424242ff;
  /* color: #007BFF; */
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
}

.desktop-button {
  display: inline-block;
  color: white;
  border: 2px solid #007bff;
  border-radius: 20px;
}

.desktop-button:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.mobile-button {
  display: none;
}

@media (max-width: 1024px) {
  /* Responsive behavior for tablets + phones */

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: black;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 30px;
    display: none;
    gap: 20px;
    animation: slideDown 0.3s ease forwards;
  }

  nav.active {
    display: flex;
    background: rgba(0, 0, 0, 1);
    /* backdrop-filter: blur(11px); */
    color: white;
  }

  .dropdown-content {
    position: relative;
    /* background: transparent; */
    box-shadow: none;
    transform: scaleY(1);
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: flex;
    color: white;
  }

  .dropdown.open .arrow {
    transform: rotate(180deg);
  }

  .hamburger {
    display: flex;
  }

  .cta-button.mobile-button {
    display: block;
    width: 100%;
    text-align: center;
    color: white;
    border: 2px solid #007bff;
    border-radius: 20px;
  }

  .cta-button.desktop-button {
    display: none;
  }

  .nav-center {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {

  .hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 25px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Transform hamburger into X when active */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
  .desktop-button {
    display: none;
  }

  .mobile-button {
    display: block;
    width: 100%;
    text-align: center;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: black;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 30px;
    display: none;
    gap: 20px;
    animation: slideDown 0.3s ease forwards;
  }

  nav.active {
    display: flex;
  }

  .dropdown-content {
    position: relative;
    /* background: transparent; */
    box-shadow: none;
    transform: scaleY(1);
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: flex;
  }

  .dropdown.open .arrow {
    transform: rotate(180deg);
  }

  .hamburger {
    display: flex;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
