/* --- Entrance Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s forwards;
}

@keyframes bubbleToggle1 {
  0%, 48% { opacity: 1; visibility: visible; }
  50%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes bubbleToggle2 {
  0%, 48% { opacity: 0; visibility: hidden; }
  50%, 100% { opacity: 1; visibility: visible; }
}

.animate-bubble-1 {
  animation: bubbleToggle1 5s infinite;
}

.animate-bubble-2 {
  animation: bubbleToggle2 5s infinite;
}

/* --- Premium Navbar Styles --- */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #CE9FFC, #7367F0);
  transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-glass {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.dark .nav-scrolled {
  background: rgba(17, 24, 39, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Primary Button Glow Effect */
.btn-glow {
  position: relative;
  z-index: 1;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #CE9FFC, #7367F0, #CE9FFC);
  background-size: 200% auto;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.btn-glow:hover::before {
  opacity: 0.6;
  animation: gradientShift 2s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Mobile Hamburger Animation */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.hamburger-active .line1 {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-active .line2 {
  opacity: 0;
}

.hamburger-active .line3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Logo Track Adjustments */
.logo-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 60px;
  align-items: center;
}

.logo-track img {
  height: auto;
  max-height: 45px;
  opacity: 0.6;
  filter: grayscale(1);
  transition: all 0.4s ease;
}

.logo-track img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

.mask-image-fade {
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}