/* ============================================================
   KreemJay Innovation — styles.css
   Accent: #00e676 (green). All original classes preserved.
   New: animations, particles, typing effect, magnetic buttons,
        staggered cards, glow effects, scroll reveal.
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cabinet+Grotesk:wght@300;400;500;700;800&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --bg: #060608;
  --bg2: #0e0e14;
  --card: #13131e;
  --card2: #1c1c2a;
  --accent: #00e676;          /* GREEN — change this one value to retheme */
  --accent-dim: rgba(0,230,118,0.12);
  --accent-border: rgba(0,230,118,0.25);
  --muted: #7a7890;
  --text: #f0efff;
  --border: rgba(255,255,255,0.06);
  --gap: 16px;
  --radius: 14px;
  --nav-h: 66px;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Cabinet Grotesk', sans-serif;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none; /* custom cursor active */
}
img { max-width: 100%; height: auto; display: block; }

/* ── CUSTOM CURSOR ── */
#my-cursor {
  width: 36px;
  height: 36px;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease;
  mix-blend-mode: difference;
}
#my-cursor img { width: 100%; height: 100%; }

/* cursor dot follower */
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.04s;
}

/* ── NOISE GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.35;
}

/* ── LAYOUT UTILS ── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px 70px;
  scroll-margin-top: var(--nav-h);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
h2.section-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 44px;
}
h2.section-title em { font-style: normal; color: var(--accent); }

/* ── HEADER / NAV ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1100;
  background: rgba(6,6,8,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
#brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
#brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: .04em;
}
#brand-name em { color: var(--accent); font-style: normal; }

#logo {
  width: 40px; height: 40px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
}
#logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

#main-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}
.nav-link:hover, .nav-link.active, .nav-link:focus {
  color: var(--accent);
  background: var(--accent-dim);
  outline: none;
}

#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
#menu-toggle .bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
#menu-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open .bar:nth-child(2) { opacity: 0; }
#menu-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

/* floating particles canvas sits behind hero content */
#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.hero-left { flex: 1; position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 26px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-eyebrow .pulse-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.6)} }

/* TYPING EFFECT */
h1.big {
  font-family: var(--font-head);
  font-size: clamp(62px, 9vw, 115px);
  line-height: .92;
  letter-spacing: .02em;
  margin-bottom: 22px;
  overflow: hidden;
}
h1.big em { font-style: normal; color: var(--accent); display: block; }
h1.big span { color: var(--muted); }

.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--accent);
  white-space: nowrap;
  animation: typing 1.8s steps(18,end) 0.4s both,
             blink-caret 0.75s step-end infinite;
  max-width: 100%;
}
@keyframes typing { from{width:0} to{width:100%} }
@keyframes blink-caret { 50%{border-color:transparent} }

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 34px;
  line-height: 1.75;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* HERO RIGHT — avatar hover swap (your original behaviour preserved) */
.hero-right {
  position: relative;
  width: 340px;
  height: 380px;
  flex: 0 0 340px;
  overflow: visible;
}
.hero-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity .3s ease, transform .3s ease;
  padding: 0;
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  display: block;
}
/* hover swap — your original logic */
.hero-card.moving-bg { opacity: 1; z-index: 2; transform: scale(1); }
.hero-card.moving    { opacity: 0; z-index: 1; transform: scale(.97); }
.hero-right:hover .hero-card.moving-bg { opacity: 0; z-index: 1; transform: scale(.97); }
.hero-right:hover .hero-card.moving    { opacity: 1; z-index: 2; transform: scale(1); }

/* glow ring behind avatar */
.hero-right::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: conic-gradient(var(--accent), transparent 40%, var(--accent) 100%);
  opacity: 0.18;
  z-index: 0;
  animation: rotate-glow 8s linear infinite;
}
@keyframes rotate-glow { to { transform: rotate(360deg); } }

.hero-badge {
  position: absolute;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(10px);
  z-index: 3;
  box-shadow: var(--shadow);
}
.hero-badge.b1 { bottom: -16px; left: -24px; }
.hero-badge.b2 { top: 20px; right: -24px; }
.hb-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.hb-val { font-size: 13px; font-weight: 700; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform .18s, opacity .18s, box-shadow .18s;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}
/* ripple on btn click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: scale(0);
  border-radius: inherit;
  transition: transform .3s;
}
.btn:active::after { transform: scale(2); opacity: 0; }

.btn-primary { background: var(--accent); color: #060608; }
.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,230,118,0.3); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: var(--card2); border-color: var(--accent); color: var(--accent); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── ABOUT ── */
#about-me .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.about-prose p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-prose p + p { margin-top: 12px; }

.about-list { display: flex; flex-direction: column; gap: 12px; }
.about-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: border-color .2s, transform .2s;
}
.about-item:hover { border-color: var(--accent-border); transform: translateX(4px); }
.about-icon { font-size: 22px; flex-shrink: 0; }
.about-item-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.about-item-sub { font-size: 12px; color: var(--muted); }

/* ── SKILLS GRID ── */
#skills { scroll-margin-top: var(--nav-h); }
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 0;
}
/* Original .skill_5 preserved for backward compat */
.skill_5, .skill-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent);
  border: 1px solid var(--border);
  padding: 22px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.skill_5::before, .skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,230,118,.08) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s;
}
.skill_5:hover, .skill-card:hover,
.skill_5:focus, .skill-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-border);
  border-color: var(--accent-border);
  outline: none;
}
.skill_5:hover::before, .skill-card:hover::before { opacity: 1; }
.skill-card.active { border-color: var(--accent); background: rgba(0,230,118,.04); }

.skill_5 img {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
}
.skill-icon { font-size: 26px; margin-bottom: 8px; }
.skill-name {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: .03em;
}
.skill-title { font-weight: 600; font-size: 14px; }
.skill-sub, .skill-tools { font-size: 12px; color: var(--muted); line-height: 1.6; }
.skill-arrow {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--muted);
  font-size: 15px;
  transition: all .25s;
}
.skill-card:hover .skill-arrow,
.skill-card.active .skill-arrow { color: var(--accent); transform: rotate(45deg); }

/* staggered entrance */
.skill_5:nth-child(1), .skill-card:nth-child(1) { animation-delay: .05s; }
.skill_5:nth-child(2), .skill-card:nth-child(2) { animation-delay: .10s; }
.skill_5:nth-child(3), .skill-card:nth-child(3) { animation-delay: .15s; }
.skill_5:nth-child(4), .skill-card:nth-child(4) { animation-delay: .20s; }
.skill_5:nth-child(5), .skill-card:nth-child(5) { animation-delay: .25s; }
.skill_5:nth-child(6), .skill-card:nth-child(6) { animation-delay: .30s; }

/* tools display (original) */
.tools-display {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
  min-height: 60px;
  font-size: 13px;
  color: var(--muted);
}
.tools-display ul { margin: 6px 0 0 18px; }
.tools-display li { margin-bottom: 4px; }

/* ── PROBLEM PANEL (new) ── */
#problem-panel {
  background: var(--card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 16px;
  display: none;
  animation: slideDown .3s ease;
}
#problem-panel.open { display: block; }
@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:none} }

.problem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.problem-skill-name {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--accent);
  letter-spacing: .03em;
}
.problem-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px; height: 30px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.problem-close:hover { border-color: var(--accent); color: var(--accent); }

.problems-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.prob-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color .2s;
}
.prob-card:hover { border-color: var(--accent-border); }
.prob-q { font-size: 13px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.prob-a { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.prob-price { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }

/* ── CIRCULAR SKILLS (original preserved) ── */
.skill-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
  width: 100%;
  position: relative;
  z-index: 1;
}
.skill-circle {
  position: relative;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  transform-origin: center center;
  animation: spin 18s linear infinite reverse;
  background: transparent;
}
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.skill {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}
.skill.entered { opacity: 1; }

/* ── PROJECTS ── */
#projects { scroll-margin-top: var(--nav-h); }
.project-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pf, .filter {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pf.active, .pf:hover, .filter.active, .filter:hover {
  background: var(--accent);
  color: #060608;
  border-color: var(--accent);
}

.grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}
/* card — original .card preserved, also new .proj-card */
.card, .proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  padding: 0;
}
.card:hover, .proj-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.card img, .proj-thumb {
  width: 100%; height: 155px;
  object-fit: cover;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.proj-body, .card-body { padding: 18px; }
.card h3, .proj-card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: .02em;
  margin-bottom: 5px;
}
.card p, .proj-card p { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }

.proj-tags, .card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.proj-tag, .card-tag {
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(0,230,118,.1);
  color: #00e676;
  letter-spacing: .06em; text-transform: uppercase;
}
.card-actions, .proj-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.proj-btn, .card-actions a, .card-actions button, .open, .code {
  font-size: 11px; font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: none; color: var(--muted);
  cursor: pointer; text-decoration: none;
  letter-spacing: .04em; text-transform: uppercase;
  transition: all .2s;
}
.proj-btn:hover, .card-actions a:hover,
.card-actions button:hover, .open:hover, .code:hover {
  background: var(--accent); color: #060608; border-color: var(--accent);
}

/* staggered project cards */
.proj-card:nth-child(1), .card:nth-child(1) { animation-delay: .05s; }
.proj-card:nth-child(2), .card:nth-child(2) { animation-delay: .10s; }
.proj-card:nth-child(3), .card:nth-child(3) { animation-delay: .15s; }
.proj-card:nth-child(4), .card:nth-child(4) { animation-delay: .20s; }

/* ── DASHBOARD ── */
#python-space { scroll-margin-top: var(--nav-h); }
.notebooks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.note h4 {
  font-family: var(--font-head);
  font-size: 18px; letter-spacing: .03em;
  margin-bottom: 6px; color: var(--accent);
}
.note p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.note .btn { font-size: 13px; padding: 9px 18px; margin-top: 6px; margin-right: 6px; }

.ds-demo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.ds-demo h4 {
  font-family: var(--font-head);
  font-size: 18px; letter-spacing: .03em;
  margin-bottom: 16px;
}
.chart-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chart-btn {
  background: var(--card2); border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 7px; cursor: pointer;
  letter-spacing: .04em; text-transform: uppercase;
  transition: all .2s;
}
.chart-btn.active, .chart-btn:hover {
  background: var(--accent); color: #060608; border-color: var(--accent);
}
#demoChart, #mainChart { max-width: 100%; height: 280px !important; }

.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 16px;
}
.stat-box {
  background: var(--card2); border-radius: 10px; padding: 14px; text-align: center;
}
.stat-box-num { font-family: var(--font-head); font-size: 22px; color: var(--accent); }
.stat-box-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

#demoSummary { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* CSV drop */
.csv-drop {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s;
  margin-top: 14px;
}
.csv-drop:hover { border-color: var(--accent-border); }

/* SQL display */
.sql-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #9090c0;
  line-height: 1.9;
  overflow-x: auto;
  margin-bottom: 14px;
}
.sql-block .kw { color: var(--accent); font-weight: 700; }
.sql-block .fn { color: #ff9d4d; }
.sql-block .num { color: #a8d8a8; }

/* ── VIDEO SECTION ── */
#video-project { scroll-margin-top: var(--nav-h); }
.video-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.meta-left { flex: 1 1 400px; }
.meta-right { flex: 0 1 300px; }
.video-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.video-stats { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.btn.tiny { padding: 5px 10px; font-size: 11px; }
.chapters ul { list-style: none; }
.chapters li { padding: 6px 8px; cursor: pointer; border-radius: 6px; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; }
.chapters li:hover { background: var(--card2); color: var(--accent); }
.thumbs-row { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; }
.thumb { width: 120px; height: 70px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.transcript { position: fixed; right: 20px; top: 90px; width: 340px; background: var(--card); border: 1px solid var(--border); padding: 14px; border-radius: 10px; color: var(--text); overflow-y: auto; max-height: 60vh; }
.transcript.hidden { display: none; }
.transcript p { font-size: 13px; color: var(--muted); padding: 4px 6px; border-radius: 5px; cursor: pointer; }
.transcript p.active { background: var(--accent-dim); color: var(--accent); }

/* ── YOUTUBE EMBED ── */
.yt-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.yt-embed iframe { display: block; width: 100%; aspect-ratio: 16/9; border: none; }

/* ── CREDENTIALS / CERTS ── */
#credentials { scroll-margin-top: var(--nav-h); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; margin-bottom: 32px; }
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.cert-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.cert-icon { font-size: 28px; margin-bottom: 12px; }
.cert-name { font-family: var(--font-head); font-size: 18px; letter-spacing: .02em; margin-bottom: 4px; }
.cert-issuer { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cert-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: .06em; text-transform: uppercase;
}
.cert-status.done { background: rgba(0,230,118,.12); color: var(--accent); }
.cert-status.pending { background: rgba(255,179,0,.1); color: #ffb300; }
.cert-status.progress { background: rgba(100,149,237,.1); color: #6495ed; }

.cv-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #060608;
  font-weight: 700; font-size: 14px;
  padding: 14px 28px; border-radius: 10px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  margin-bottom: 48px;
}
.cv-download:hover { opacity: .88; transform: translateY(-2px); }

/* ── CYBERCAFE / SERVICES ── */
#services { scroll-margin-top: var(--nav-h); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.service-icon { font-size: 28px; margin-bottom: 12px; }
.service-title { font-family: var(--font-head); font-size: 18px; letter-spacing: .02em; margin-bottom: 6px; }
.service-list { padding-left: 16px; }
.service-list li { font-size: 13px; color: var(--muted); margin-bottom: 4px; line-height: 1.6; }

.office-card {
  background: var(--card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
}
.office-map { font-size: 36px; flex-shrink: 0; }
.office-detail h4 { font-family: var(--font-head); font-size: 20px; letter-spacing: .03em; margin-bottom: 6px; }
.office-detail p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.office-detail a { color: var(--accent); text-decoration: none; }

/* ── PAYMENT ── */
#payment { scroll-margin-top: var(--nav-h); }
#payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.pay-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.pay-card h4 { font-family: var(--font-head); font-size: 18px; letter-spacing: .02em; margin-bottom: 6px; }
.pay-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pay-card input[type=number] {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 14px; margin-bottom: 10px; outline: none;
  transition: border-color .2s;
}
.pay-card input:focus { border-color: var(--accent-border); }
.bank-details p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.bank-details { margin-bottom: 14px; }

/* ── CONTACT ── */
#contact { scroll-margin-top: var(--nav-h); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-desc { font-size: 15px; color: var(--muted); margin-bottom: 22px; line-height: 1.75; }

.social-links { display: flex; flex-direction: column; gap: 10px; }
.soc-link {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 18px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.soc-link:hover { border-color: var(--accent-border); transform: translateX(4px); }
.soc-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.soc-name { font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.soc-handle { font-size: 11px; color: var(--muted); }
.soc-arrow { color: var(--muted); margin-left: auto; font-size: 13px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
  display: block; margin-bottom: 5px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--accent-border); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select option { background: var(--card); }
#formStatus { font-size: 13px; color: var(--accent); font-weight: 500; min-height: 18px; }

/* ── MODAL (original preserved) ── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.modal-body, .modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 500px; width: 90%;
}
.modal-body h3, .modal-content h3 {
  font-family: var(--font-head); font-size: 22px; margin-bottom: 10px;
}
.modal-body p, .modal-content p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.close, .closeBtn, .modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; font-size: 13px;
  transition: all .2s;
}
.close:hover, .closeBtn:hover { background: var(--accent); color: #060608; border-color: var(--accent); }
.modal-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-brand { font-family: var(--font-head); font-size: 30px; letter-spacing: .04em; margin-bottom: 6px; }
.footer-brand em { color: var(--accent); font-style: normal; }
.footer-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── THEME SELECTOR ── */
#themeSelector {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  #hero { flex-direction: column; gap: 36px; }
  .hero-right { order: -1; width: 240px; height: 270px; flex: none; margin: 0 auto; }
  .hero-badge.b1 { left: 0; }
  .hero-badge.b2 { right: 0; }
  #main-nav {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    z-index: 99;
  }
  #main-nav.open { display: flex; }
  #menu-toggle { display: flex; }
  #about-me .about-grid,
  .contact-wrap,
  .notebooks,
  .stats-row,
  .form-row { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .problems-list { grid-template-columns: 1fr; }
  h1.big { font-size: 56px; }
  .transcript { position: relative; right: auto; top: auto; width: 100%; max-height: none; }
}
@media (max-width: 480px) {
  .skill-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
}
