:root {
  --bg: #08111f;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #f7fbff;
  --muted: #b5c2d4;
  --line: rgba(255, 255, 255, 0.15);
  --accent: #2f81f7;
  --accent-2: #7dd3fc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 129, 247, 0.25), transparent 34rem),
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.15), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(47, 129, 247, 0.35);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  transition: color 180ms ease;
}

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

.hero { padding-bottom: 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 36px;
  align-items: center;
  min-height: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.subtitle {
  max-width: 780px;
  color: #dbeafe;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
}

.intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions, .footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: white;
  box-shadow: 0 12px 30px rgba(47, 129, 247, 0.28);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.status-pill {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(125, 211, 252, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-card h2 { margin-bottom: 8px; }
.profile-card p { color: var(--muted); }

.contact-list {
  display: grid;
  gap: 16px;
  padding: 22px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-2); }

.section { padding: 74px 0; }

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.large-card {
  padding: 32px;
  color: #dbeafe;
  font-size: 1.12rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  padding: 28px;
}

.timeline-meta {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.company {
  color: var(--muted);
  font-weight: 600;
}

ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li { margin-top: 8px; }

.project-grid, .skills-grid, .split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card, .skill-card, .highlight-card {
  padding: 28px;
}

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

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.highlight-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.footer {
  margin-top: 80px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer p { color: var(--muted); }

@media (max-width: 820px) {
  .nav { align-items: flex-start; gap: 18px; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
  .hero-grid, .project-grid, .skills-grid, .split-section, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid { min-height: auto; padding-top: 50px; }
  .footer-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero { padding-bottom: 40px; }
  .section { padding: 48px 0; }
  .card, .profile-card { border-radius: 22px; }
  .timeline-item, .project-card, .skill-card, .highlight-card, .large-card, .profile-card { padding: 22px; }
}
