/* ============================================================
   BASE RESET & GLOBAL — base.css
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  width: 100%;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(79, 142, 247, 0.35);
  color: #fff;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* ── Noise overlay (body pseudo) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Section base ── */
section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Section labels & titles ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.section-label.visible { opacity: 1; transform: translateY(0); }
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s 0.1s var(--ease), transform 0.7s 0.1s var(--ease);
}
.section-title.visible { opacity: 1; transform: translateY(0); }

.accent-word {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll-reveal utility ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Parallax orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  transition: transform 0.1s linear;
}
.orb-1 { width: 500px; height: 500px; background: rgba(79,142,247,0.06); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: rgba(123,79,255,0.05); bottom: 20%; right: -100px; }
.orb-3 { width: 300px; height: 300px; background: rgba(0,229,255,0.04);  top: 50%;  left: 40%; }

/* ── Canvas background ── */
#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── 3D tilt cards ── */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}
