/*
 * HUES HUB — Custom Styles
 * Edit colours, fonts, and custom effects here.
 * Tailwind CSS is loaded via CDN in each HTML file.
 */

/* ── Fonts ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(222 47% 6%); }
::-webkit-scrollbar-thumb { background: hsl(215 30% 14%); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsl(214 89% 52%); }

/* ── Scroll-reveal animation ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Scan-line hover effect ────────────── */
@keyframes scanLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.scan-line { animation: scanLine 1.5s ease-in-out; }

/* ── Hero parallax image ───────────────── */
.hero-bg { transition: transform 0.1s linear; }

/* ── Mobile menu transition ────────────── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}
.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Card hover effects ─────────────────── */
.card-hover {
  border: 1px solid rgba(30, 42, 66, 0.4);
  background: rgba(15, 23, 42, 0.3);
  transition: all 0.3s ease;
}
.card-hover:hover {
  border-color: rgba(56, 131, 235, 0.4);
  background: rgba(15, 23, 42, 0.6);
}
.card-hover:hover .card-name {
  color: hsl(214, 89%, 52%);
}
.card-name {
  transition: color 0.3s ease;
}

/* ── Modal ─────────────────────────────── */
.modal-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── FAQ accordion ─────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer.open {
  max-height: 500px;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* ── Bounce scroll indicator ───────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
.bounce { animation: bounce 2s infinite; }

/* ── Spinner ───────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* ── Pulse dot ─────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
