:root {
  --bg: #0b1220;
  --bg-soft: #020617;
  --bg-card: #020617;
  --bg-elevated: #020617;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-strong: rgba(37, 99, 235, 0.3);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.75);
  --shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.5);
}

*,
*::before,
*::after {
  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, #1d283a 0, #020617 50%, #020617 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(37, 99, 235, 0.08),
    transparent 60%
  );
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.section:nth-of-type(even)::before {
  background: radial-gradient(
    circle at top right,
    rgba(59, 130, 246, 0.08),
    transparent 60%
  );
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.section-subtitle {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #38bdf8, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6),
    0 14px 40px rgba(37, 99, 235, 0.7);
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

/* Nav */

.site-nav {
  position: absolute;
  inset-inline: 1.5rem;
  top: 100%;
  margin-top: 0.75rem;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  display: none;
  flex-direction: row;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.nav-toggle {
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: all 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: 3.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #a5b4fc;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero h1 .accent {
  background: linear-gradient(to right, #38bdf8, #6366f1, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-summary {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.8);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.75);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta dt {
  font-weight: 500;
  color: #e5e7eb;
}

.hero-meta dd {
  margin: 0.1rem 0 0.35rem;
}

/* Hero side */

.hero-side {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: radial-gradient(circle at top, #1e293b, #020617);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.3),
    transparent 60%
  );
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #38bdf8, #6366f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6),
    0 16px 50px rgba(37, 99, 235, 0.9);
  margin-bottom: 0.9rem;
}

.profile-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.profile-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
}

.profile-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.profile-highlights li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.profile-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #38bdf8;
}

/* Two columns */

.two-columns {
  display: grid;
  gap: 1.5rem;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-list li {
  margin-bottom: 0.3rem;
}

/* Timeline */

.timeline {
  border-left: 1px solid rgba(148, 163, 184, 0.45);
  margin-left: 0.7rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 1.7rem;
}

.timeline-item {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 1.1rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.85);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.2rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #f97316, #f59e0b);
  box-shadow: 0 0 0 4px rgba(248, 250, 252, 0.03),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.timeline-title span {
  font-weight: 500;
  color: #9ca3af;
}

.timeline-item ul {
  padding-left: 1.1rem;
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.timeline-item li {
  margin-bottom: 0.3rem;
}

/* Cards */

.cards-grid {
  display: grid;
  gap: 1.3rem;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.48);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.9);
}

.card-subtitle {
  margin: 0.1rem 0 0.35rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Skills */

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skills-grid h3 {
  margin-top: 0;
  font-size: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: #d1d5db;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.4rem;
}

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

.contact-list a {
  font-size: 0.9rem;
}

address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 0 1.75rem;
  margin-top: 1.5rem;
  background: radial-gradient(
    circle at top,
    rgba(37, 99, 235, 0.1),
    transparent 65%
  );
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-summary {
    font-size: 0.95rem;
  }

  .hero-meta {
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .site-nav {
    position: static;
    margin-top: 0;
    display: flex !important;
    background: rgba(15, 23, 42, 0.01);
    border-radius: 999px;
    border-width: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.25rem;
  }

  .site-nav a {
    padding-inline: 0.8rem;
    padding-block: 0.4rem;
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding-top: 4.2rem;
    padding-bottom: 5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr);
    gap: 2.3rem;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

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

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

  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
