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

/* ==================== NAVBAR ==================== */
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

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

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

.mobile-nav-link.active {
  color: #00D4FF;
}

/* ==================== MARQUEE TICKER ==================== */
.marquee {
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== FEATURE CARDS ==================== */
.feature-card {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

/* ==================== 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;
  }

  .marquee {
    animation: none;
  }

  [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: #0A0A0F;
}

::-webkit-scrollbar-thumb {
  background: #00D4FF;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0099CC;
}

/* ==================== SELECTION ==================== */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #E2E8F0;
}

/* ==================== FORM STYLES ==================== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2);
}

/* ==================== GLOW EFFECT ==================== */
.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}
