
:root {
  --bg:       #000000;
  --bg-card:  #0a0a0a;
  --border:   rgba(255,255,255,0.06);
  --text:     #e4e4e7;
  --text-dim: #71717a;
  --accent:   #ffffff;
  --green:    #22c55e;
  --max-w:    900px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --ease:     cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(255,255,255,.12); }
h1, h2, h3, h4 { font-family: var(--font-heading); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 24px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo {
  font-weight: 700; font-size: 1.15rem; color: var(--accent);
  text-decoration: none; letter-spacing: -.02em;
}
.nav-links {
  list-style: none; display: flex; gap: 1.75rem; align-items: center;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: .85rem;
  font-weight: 500; letter-spacing: .01em;
  transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a:focus, .nav-links a.active { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--border) !important;
  padding: .35rem .9rem !important;
  border-radius: 6px;
  transition: background .2s var(--ease), color .2s var(--ease) !important;
}
.nav-cta:hover { background: rgba(255,255,255,.06) !important; color: var(--accent) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text-dim); padding: .35rem .5rem; border-radius: 6px; cursor: pointer;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 0 5rem;
}
.hero-label { color: var(--text-dim); font-size: .9rem; margin-bottom: .25rem; font-weight: 500; }
.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--accent); line-height: 1.1; margin-bottom: .75rem;
}
.cursor {
  color: var(--green); animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-sub { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 1.75rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .65rem; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: 6px; font-size: .85rem;
  font-weight: 500; text-decoration: none;
  transition: all .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.btn-primary {
  background: var(--accent); color: var(--bg);
}
.btn-primary:hover { background: #d4d4d8; }
.btn-ghost {
  color: var(--text-dim); border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--accent); border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.03); }

/* ── Email reveal ── */
.email-reveal { cursor: default; user-select: none; }
.email-reveal.revealed { cursor: pointer; }
.email-text { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.eye-btn {
  background: none; border: none; color: inherit; cursor: pointer;
  padding: 0; margin-left: .35rem; display: inline-flex; align-items: center;
  opacity: .5; transition: opacity .2s var(--ease);
}
.eye-btn:hover { opacity: 1; }
.eye-btn svg { width: 16px; height: 16px; }
.eye-btn .eye-closed { display: none; }
.email-reveal.revealed .eye-btn .eye-open { display: none; }
.email-reveal.revealed .eye-btn .eye-closed { display: inline-block; }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-title {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 2.5rem; color: var(--accent);
  display: flex; align-items: center; gap: 1rem;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.tl-item {
  position: relative; padding-bottom: 2.5rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tl-item.visible { opacity: 1; transform: none; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2rem; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text-dim);
  z-index: 1;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tl-item:first-child .tl-dot {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.tl-date {
  display: inline-block; font-size: .78rem; color: var(--text-dim);
  font-weight: 500; letter-spacing: .02em; margin-bottom: .2rem;
  font-variant-numeric: tabular-nums;
}
.tl-content h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--accent);
  margin-bottom: .15rem;
}
.tl-company { color: var(--text-dim); font-size: .88rem; margin-bottom: .5rem; }
.tl-desc { color: var(--text-dim); font-size: .88rem; margin-top: .15rem; }

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  text-decoration: none; color: var(--text);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  opacity: 0; transform: translateY(20px);
}
.card.visible { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.card-header { margin-bottom: .5rem; }
.card h3 { font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-bottom: .15rem; }
.card-badge {
  display: inline-block; font-size: .72rem; font-weight: 500;
  color: var(--green); margin-top: .25rem;
}
.card-tech {
  font-size: .78rem; color: var(--text-dim); margin-bottom: .6rem;
  font-weight: 500;
}
.card p:last-child { font-size: .88rem; color: var(--text-dim); line-height: 1.55; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.skill-group {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.skill-group.visible { opacity: 1; transform: none; }
.skill-group h4 {
  font-size: .82rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .65rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span {
  display: inline-block; font-size: .8rem; font-weight: 500;
  padding: .3rem .7rem; border-radius: 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tags span:hover { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }

/* ── EDUCATION ── */
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.75rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.edu-card.visible { opacity: 1; transform: none; }
.edu-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .5rem; }
.edu-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--accent); }
.edu-degree { color: var(--text-dim); font-size: .92rem; margin-top: .1rem; }
.edu-date {
  font-size: .8rem; color: var(--text-dim); font-weight: 500;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.edu-gpa {
  margin-top: .6rem; font-size: .9rem; font-weight: 600; color: var(--green);
}
.edu-courses { margin-top: .35rem; font-size: .88rem; color: var(--text-dim); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem 0;
  color: var(--text-dim); font-size: .82rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── FOCUS ── */
a:focus-visible, button:focus-visible { outline: 2px solid rgba(34,197,94,.4); outline-offset: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(0,0,0,.95); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center;
    padding: 1.5rem 0; gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform .3s var(--ease);
    pointer-events: none;
  }
  .nav-links.open { transform: none; pointer-events: auto; }
  .nav-toggle { display: inline-block; }

  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero-name { font-size: 2.4rem; }

  .edu-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tl-item, .card, .skill-group, .edu-card { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
