/* ==================== BASE ==================== */
html {
  scroll-padding-top: 64px;
}

/* ==================== NAVBAR ==================== */
#navbar.scrolled {
  background: rgba(250, 250, 254, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7C3AED;
  transition: width 0.3s ease;
}

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

.mobile-nav-link.active {
  color: #7C3AED;
}

/* ==================== HERO CAROUSEL ==================== */
.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dot.active {
  width: 1.25rem;
  border-radius: 9999px;
  background: #7C3AED;
}

/* ==================== PRICING TOGGLE ==================== */
.price-monthly,
.price-yearly {
  transition: opacity 0.3s ease;
}

/* ==================== FAQ ACCORDION ==================== */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-content {
  max-height: 200px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ==================== BACK TO TOP ==================== */
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==================== MOBILE AOS OVERRIDE ==================== */
@media (max-width: 768px) {
  [data-aos] {
    duration: 500ms !important;
  }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #FAFAFE;
}

::-webkit-scrollbar-thumb {
  background: #7C3AED;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8B5CF6;
}

/* ==================== SELECTION ==================== */
::selection {
  background: rgba(124, 58, 237, 0.2);
  color: #1E1B4B;
}

/* ==================== FORM STYLES ==================== */
input:focus,
textarea:focus {
  box-shadow: none;
}

/* ==================== PHONE MOCKUP ==================== */
.phone-mockup {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
