:root {
  --bg: #080b14;
  --bg-soft: #0d1322;
  --surface: rgba(18, 26, 45, 0.72);
  --surface-strong: #11192b;
  --text: #f4f7fb;
  --muted: #a8b2c7;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #78a9ff;
  --accent-2: #8be9c7;
  --max: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 5%, rgba(67, 97, 238, .18), transparent 30%),
    radial-gradient(circle at 10% 35%, rgba(76, 201, 240, .08), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  background: rgba(8,11,20,.66);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07101c;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: .92rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 1.35rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 28px;
}

.hero {
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  margin-bottom: 26px;
  letter-spacing: -.055em;
}

h1 span {
  background: linear-gradient(90deg, #ffffff, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  max-width: 800px;
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.3rem;
}

.lead {
  max-width: 690px;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 34px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--text);
  color: #08101c;
}

.btn.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.hero-meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,28,48,.92), rgba(11,16,29,.8));
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
}

pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
  font-size: .9rem;
  color: #d7e4ff;
}

.muted {
  color: #75839e;
}

.split-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  border-top: 1px solid var(--line);
}

.body-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 46px;
}

.section-note {
  color: var(--muted);
}

.skill-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.project-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120,169,255,.4);
  background: rgba(22, 33, 57, .9);
}

.card-index {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
}

.card p,
.project-card p {
  color: var(--muted);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--accent-2);
  font-size: .88rem;
  font-weight: 700;
}

.timeline-item p {
  max-width: 760px;
  color: var(--muted);
}

.company {
  margin-top: -8px;
  color: var(--accent) !important;
}

.project-card {
  min-height: 270px;
}

.project-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.contact-section > div > p {
  color: var(--muted);
  max-width: 560px;
}

.contact-links {
  display: grid;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-links span {
  color: var(--muted);
}

.contact-links strong {
  text-align: right;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 28px 50px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .skill-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    padding: 22px;
    background: #0c1220;
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 78px 20px;
  }

  .site-header {
    padding: 16px 20px;
  }

  .logo span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
  }

  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions,
  .hero-meta,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-links a {
    flex-direction: column;
  }

  .contact-links strong {
    text-align: left;
  }
}
