/* ========== Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  overflow-x: hidden;
}

/* ========== Fade-up Animation ========== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Logo Marquee ========== */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 0 1.75rem;
}

.marquee-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

.marquee-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

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

/* Pause on hover */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* ========== Header Shadow on Scroll ========== */
#header.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ========== FAQ Accordion ========== */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-content {
  display: block;
}

.faq-content {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Counter Animation ========== */
.counter {
  display: inline-block;
  min-width: 2ch;
}

/* ========== Dropdown Menus ========== */
.group:hover .group-hover\:opacity-100 {
  pointer-events: auto;
}

/* ========== Selection Color ========== */
::selection {
  background-color: #E2DDFB;
  color: #3D02E1;
}

/* ========== Responsive Tweaks ========== */
@media (max-width: 640px) {
  .marquee-logo {
    height: 28px;
    max-width: 110px;
  }

  .marquee-content {
    gap: 2rem;
  }
}

/* ========== Smooth Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* Ghrathe Ligature for H1 and H2 only */
h1, h2 {
  font-family: 'Ghrathe Ligature', 'Inter', sans-serif !important;
  font-weight: 500 !important;
}
