*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
strong { font-weight: 500; }

:root {
  --bg:        #0f0e2a;
  --surface:   #16153a;
  --border:    #1e1b4b;
  --muted:     #312e81;
  --subtle:    #6366f1;
  --body:      #c7d2fe;
  --head:      #e0e7ff;
  --accent:    #f97316;
  --accent2:   #fb923c;
  --glow:      rgba(249,115,22,0.15);
  --indigo-glow: rgba(99,102,241,0.1);
  --mono: 'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(15,14,42,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
#hero {
  display: flex; align-items: center;
  padding: 100px 40px 80px;
  position: relative;
}
.hero-inner { max-width: 900px; }

.hero-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-label::after {
  content: '';
  display: block; width: 48px; height: 1px;
  background: var(--accent); opacity: 0.5;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.0;
  color: var(--head);
  margin-bottom: 8px;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-title {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--subtle);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-bio {
  font-size: 19px;
  line-height: 1.8;
  color: var(--body);
  max-width: 620px;
  margin-bottom: 48px;
}
.hero-bio strong { color: var(--head); font-weight: 500; }

.hero-email {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.06em;
  margin-top: 16px;
}

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #0f0e2a;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  box-shadow: 0 0 24px var(--glow);
}
.btn-ghost {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── HERO ACCENT LINE ── */
.hero-line {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 300px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ── SECTION COMMON ── */
section { padding: 56px 40px; position: relative; z-index: 1; }
section + section { border-top: 1px solid var(--border); }

/* Unified content column — all sections align */
.section-inner { max-width: 960px; margin: 0 auto; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--head);
  line-height: 1.1;
  margin-bottom: 32px;
}
.accent-em {
  font-style: italic;
  color: var(--accent);
}

/* ── EXPERIENCE ── */
#experience .section-inner { max-width: 960px; }

.exp-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}
.exp-item:last-child { border-bottom: none; }

.exp-meta { padding-top: 4px; }
.exp-company {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--head);
  margin-bottom: 4px;
}
.exp-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.exp-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--glow);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--accent);
  border-radius: 2px;
}

.exp-body h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.exp-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.exp-body li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}
.exp-body li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  padding-top: 2px;
}
.exp-body li span { display: block; }
.exp-body li strong {
  color: var(--accent);
  font-weight: 600;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.project-card {
  background: var(--bg);
  padding: 24px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.project-card:hover { background: var(--surface); }
.project-card:hover::before { transform: scaleX(1); }

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.project-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--head);
  margin-bottom: 12px;
  line-height: 1.2;
}
.project-desc {
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.7;
  margin-bottom: 20px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: var(--border);
  color: var(--subtle);
  border-radius: 2px;
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); text-decoration: none;
  margin-top: 16px; letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.skill-group {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.skill-group:hover { border-color: var(--muted); }
.skill-group-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--body);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-group:hover .skill-tag {
  border-color: var(--muted);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
  flex-wrap: wrap; gap: 20px;
}
.footer-left {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--head);
}
.footer-left em { color: var(--accent); font-style: italic; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.05em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner { animation: fadeUp 0.7s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.04em; }
  section, #hero { padding: 48px 20px; }
  .exp-item { grid-template-columns: 1fr; gap: 12px; }
  footer { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .nav-links li:nth-child(3),
  .nav-links li:nth-child(4) { display: none; }
}