/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-bg:        #0a0a0a;
  --color-surface:   #111111;
  --color-border:    #1f1f1f;
  --color-text:      #f5f5f5;
  --color-secondary: #a1a1aa;
  --color-accent:    #6366f1;
  --radius:          8px;
}

/* ============================================================
   Global Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'DM Sans', sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  line-height: 1.6;
}

::selection {
  background-color: rgba(99, 102, 241, 0.25);
  color: var(--color-text);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }

/* ============================================================
   JS-gated Scroll Animations (T008)
   Falls back to visible content when JS is disabled.
   ============================================================ */
.js [data-animate] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Hero Background — Dot Grid (T009 design system)
   ============================================================ */
.hero-bg {
  background-image:
    radial-gradient(circle, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

/* ============================================================
   Section Headings (T009 design system)
   ============================================================ */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   Skill Pills (T009 design system)
   ============================================================ */
.skill-pill {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: default;
  line-height: 1.6;
}

.skill-pill:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--color-text);
}

/* ============================================================
   Experience Cards (T009 design system)
   ============================================================ */
.experience-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.experience-card:hover {
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 4px 24px rgba(99, 102, 241, 0.06);
}

/* ============================================================
   Language Tags (T009 design system)
   ============================================================ */
.lang-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  border-radius: var(--radius);
  list-style: none;
}
