/* ═══════════════════════════════════════════════════════
   chanellegreen.com — Design System
   Dark · Bold · Modern
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:          #0e0e10;
  --bg-2:        #141416;
  --bg-3:        #1c1c1f;
  --border:      #2a2a2e;
  --gold:        #c9a02e;
  --gold-dim:    #a07e20;
  --gold-glow:   rgba(201,160,46,0.12);
  --white:       #f4f4f5;
  --white-dim:   #a1a1aa;
  --white-muted: #52525b;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 14px;
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────── */
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--white-dim); line-height: 1.75; }
.gold  { color: var(--gold); }
.muted { color: var(--white-muted); }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Nav ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14,14,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--white-dim);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--gold); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: #0e0e10;
}
.btn-primary:hover { background: #d9b040; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--white-dim); background: var(--bg-3); }

/* ── Tag / Chip ─────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-gold { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(201,160,46,0.25); }
.tag-dim  { background: var(--bg-3); color: var(--white-muted); border: 1px solid var(--border); }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--white-muted); }

/* ── Divider ────────────────────────────────────────── */
.gold-line {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── Section label ──────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.footer-inner p { font-size: 0.8125rem; color: var(--white-muted); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--white-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ── Skill grid ─────────────────────────────────────── */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.skill-card h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.skill-card p {
  font-size: 0.875rem;
  color: var(--white-dim);
  line-height: 1.5;
}

/* ── Stat row ───────────────────────────────────────── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { font-size: 0.8125rem; color: var(--white-muted); margin-top: 0.25rem; }

/* ── Chat widget ────────────────────────────────────── */
.chat-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.chat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chat-header-text h4 { font-size: 0.9375rem; color: var(--white); }
.chat-header-text p  { font-size: 0.8125rem; color: var(--white-muted); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.msg {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.msg-user {
  align-self: flex-end;
  background: var(--gold);
  color: #0e0e10;
  font-weight: 500;
  border-bottom-right-radius: 3px;
}
.msg-ai {
  align-self: flex-start;
  background: var(--bg-3);
  color: var(--white);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
}
.msg-ai p { color: var(--white); margin: 0; }
.chat-suggestions {
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.suggestion-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--white-dim);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.suggestion-chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}
.chat-input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
  color: var(--white);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input::placeholder { color: var(--white-muted); }
.chat-input:focus { border-color: var(--gold); }
.chat-send {
  background: var(--gold);
  color: #0e0e10;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
.chat-send:hover { background: #d9b040; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.5rem 0;
}
.typing-dot {
  width: 7px; height: 7px;
  background: var(--white-muted);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ── Experience timeline ────────────────────────────── */
.experience-list { display: flex; flex-direction: column; gap: 2rem; }
.exp-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition);
}
.exp-card:hover { border-color: rgba(201,160,46,0.4); }
.exp-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.exp-title { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.exp-company { font-size: 0.9375rem; color: var(--gold); font-weight: 600; margin-top: 0.2rem; }
.exp-bullets { margin-top: 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.exp-bullets li { color: var(--white-dim); font-size: 0.9375rem; line-height: 1.65; }
.exp-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .stat-row { gap: 0.5rem 1.5rem; }
  .chat-widget { height: 420px; }
  .msg { max-width: 92%; }
}
