:root {
  --bg:        #0a0d12;
  --surface:   #0f1318;
  --card:      #141920;
  --border:    #1e2730;
  --accent:    #00d9ff;
  --accent2:   #7c3aed;
  --green:     #22c55e;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --subtle:    #94a3b8;
  --font-mono: 'JetBrains Mono', monospace;
  --font-head: 'Syne', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── SCANLINE OVERLAY ── */
body::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 1000;
}

/* ── GRID BACKGROUND ── */
body::after {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,217,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ── HEADER ── */
header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
  margin-bottom: 48px;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.prompt-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  opacity: 0.8;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 span {
  color: var(--accent);
}

.title-tag {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.title-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  padding-top: 4px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item:hover { color: var(--accent); }

.contact-item .icon {
  width: 14px;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

.summary {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--card);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.8;
  position: relative;
}

.summary::before {
  content: '// summary';
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ── SECTIONS ── */
section { margin-bottom: 44px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.skill-group:hover { border-color: rgba(0,217,255,0.25); }

.skill-category {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.8;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--subtle);
}

/* ── EXPERIENCE ── */
.experience-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 32px;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: -32px;
  width: 1px;
  background: var(--border);
}

.experience-item:last-child::before { display: none; }

.experience-item::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.exp-role {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.exp-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.exp-company {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-bullets li {
  color: var(--subtle);
  font-size: 12.5px;
  padding-left: 16px;
  position: relative;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.5;
  font-size: 10px;
  top: 1px;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}

.project-card:hover {
  border-color: rgba(0,217,255,0.3);
  transform: translateY(-2px);
}

.project-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-name .arrow {
  font-size: 11px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover .arrow { opacity: 1; }

.project-desc {
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stack-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
}

/* ── EDUCATION & CERTS ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.cert-card:hover { border-color: rgba(0,217,255,0.25); }

.cert-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.cert-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 3px;
}

.cert-issuer {
  font-size: 11px;
  color: var(--muted);
}

.cert-year {
  margin-top: 6px;
  font-size: 10px;
  color: var(--accent);
  opacity: 0.7;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-note {
  font-size: 11px;
  color: var(--muted);
}

.footer-note span { color: var(--accent); }

.visitor-counter {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter-value {
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 4px;
  padding: 1px 8px;
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

header                 { animation: fadeUp 0.5s ease both; }
section:nth-of-type(1) { animation: fadeUp 0.5s 0.1s ease both; }
section:nth-of-type(2) { animation: fadeUp 0.5s 0.2s ease both; }
section:nth-of-type(3) { animation: fadeUp 0.5s 0.3s ease both; }
section:nth-of-type(4) { animation: fadeUp 0.5s 0.4s ease both; }
section:nth-of-type(5) { animation: fadeUp 0.5s 0.5s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .page { padding: 28px 18px 60px; }
  .header-top { flex-direction: column; }
  .contact-block { align-items: flex-start; }
}
