/* ============================================
   Base — typography, scrollbar, utility classes
   ============================================ */

body {
  font-family: var(--font-sans);
  background: var(--clr-bg-primary);
  color: var(--clr-text-primary);
  overflow-x: hidden;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- Typography ---- */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

/* ---- Glass card mixin (applied via class) ---- */
.glass {
  background: var(--clr-glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-md);
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(20, 20, 40, 0.85);
  }
}

/* ---- Gradient text ---- */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Section heading ---- */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.section-heading .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--gradient-accent);
}

.section-heading p {
  color: var(--clr-text-muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---- Placeholder tag style ---- */
.placeholder {
  color: var(--clr-text-muted);
  font-style: italic;
  opacity: 0.7;
}

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