:root {
  --bg: #0a0e17;
  --surface: #111827;
  --border: #1e293b;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --text: #e2e8f0;
  --muted: #adbacd;
  --tag-bg: #0f172a;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glow blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.blob-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -200px; }
.blob-2 { width: 400px; height: 400px; background: var(--accent2); bottom: -100px; right: -100px; }

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

/* ── HEADER ── */
header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease both;
}

.label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h1 span {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: none;
  line-height: 1.6;
  font-weight: 300;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.contact-list li:hover { color: var(--text); }

.contact-list .icon {
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── SECTIONS ── */
section {
  margin-bottom: 52px;
  animation: fadeUp 0.6s ease both;
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }

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

h2 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.2s;
}
.skill-card:hover {
  border-color: rgba(56,189,248,0.3);
  transform: translateY(-2px);
}
.skill-card:hover::before { opacity: 1; }

.skill-category {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

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

.tag {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text);
}
.tag.highlight {
  border-color: rgba(56,189,248,0.4);
  color: var(--accent);
  background: rgba(56,189,248,0.05);
}

/* ── EXPERIENCE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 28px;
  position: relative;
}

.exp-item + .exp-item {
  margin-top: 0;
}

.exp-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  padding-top: 4px;
  text-align: right;
  line-height: 1.5;
}

.exp-content {
  border-left: 1px solid var(--border);
  padding: 0 0 40px 28px;
  position: relative;
}

.exp-content::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.exp-item:last-child .exp-content {
  padding-bottom: 0;
}

.exp-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

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

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

.exp-bullets li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.exp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-size: 11px;
  top: 1px;
}

.exp-note {
  font-size: 12px;
  color: var(--accent2);
  font-family: 'DM Mono', monospace;
  margin-top: 6px;
}

/* ── EDUCATION ── */
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.edu-item:hover { border-color: rgba(129,140,248,0.4); }
.edu-item.highlight-edu {
  border-color: rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.03);
}

.edu-year {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  min-width: 70px;
  flex-shrink: 0;
}

.edu-name {
  font-size: 14px;
  font-weight: 500;
}

.edu-badge {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.3);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── INTERESTS ── */
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.interest-tag {
  padding: 10px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  color: var(--muted);
  transition: all 0.2s;
}
.interest-tag:hover {
  color: var(--text);
  border-color: var(--accent2);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: rgba(56,189,248,0.3); }

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.project-status {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56,189,248,0.4);
  color: var(--accent);
}

.project-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
  min-height: 45px;
}

.project-tags {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-link {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(56,189,248,0.3);
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.2s;
  text-align: center;
  margin-top: auto;
}
.project-link:hover {
  background: rgba(56,189,248,0.08);
}

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

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; }
  .exp-date { text-align: left; }
  .exp-content { padding-left: 20px; }
}
