:root {
  --bg: #090c12;
  --bg-soft: #0f1420;
  --card: rgba(17, 24, 39, 0.8);
  --card-strong: rgba(15, 22, 35, 0.95);
  --text: #edf2fb;
  --muted: #a7b3c7;
  --accent: #76a9ff;
  --accent-soft: rgba(118, 169, 255, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(118, 169, 255, 0.2), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(88, 225, 179, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0e15 0%, #0a0d14 40%, #0b0d12 100%);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(800px, 92vw);
}

.site-header {
  padding-bottom: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

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

.hero {
  padding: 3rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #9bbfff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.subtitle {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 1.2rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn.primary {
  background: var(--accent-soft);
  border-color: rgba(118, 169, 255, 0.36);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-card,
.card,
.skill-card,
.timeline-item,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.highlight-card {
  padding: 1.1rem 1.15rem;
}

.highlight-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.highlight-card strong {
  display: block;
  font-size: 1rem;
}

.highlight-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 4.5rem 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.025));
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-note {
  color: var(--muted);
  margin: 0.65rem 0 0;
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.35rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.card h3,
.timeline-item h3,
.skill-card h3,
.contact-card h2 {
  margin: 0;
}

.card-role {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tag {
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.desc {
  color: var(--muted);
  margin: 0.95rem 0 0.9rem;
}

.card ul,
.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card li,
.timeline-item li {
  margin-bottom: 0.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.timeline-item {
  padding: 1.35rem;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.timeline-meta {
  margin: 0;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.skill-card {
  padding: 1.25rem;
}

.skill-card p,
.about-text,
.contact-card p {
  color: var(--muted);
}

.about-text {
  font-size: 1.03rem;
}

.contact-card {
  padding: 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2.4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

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

@media (max-width: 920px) {
  .hero-highlights,
  .cards-2,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav,
  .timeline-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-meta {
    text-align: left;
    white-space: normal;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 3.6rem 0;
  }
}
