:root {
  --bg: #f9fbff;
  --card: #ffffff;
  --text: #0c1a2b;
  --muted: #4c5c70;
  --accent: #ff6f3c;
  --accent-2: #3a80ff;
  --stroke: #d9e0ec;
  --shadow: 0 12px 28px rgba(12, 26, 43, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spline Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Spline Sans", system-ui, sans-serif;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
}

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

main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1120px;
  margin: 0 auto;
  margin-top: 12px;
  border: 1px solid rgba(12, 26, 43, 0.05);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(12, 26, 43, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 12px 28px rgba(12, 26, 43, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 16px;
}

.brand-text {
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 600;
  color: var(--muted);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(58, 128, 255, 0.1);
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.hero {
  max-width: 1120px;
  margin: 72px auto 48px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 12px 0 18px;
}

.eyebrow {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.lede {
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 18px;
}

.quick-facts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.quick-facts > div {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 14px rgba(12, 26, 43, 0.05);
}

.fact-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.fact-value {
  color: var(--text);
  font-weight: 600;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px 20px 22px;
  box-shadow: 0 10px 24px rgba(12, 26, 43, 0.08);
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  grid-auto-rows: auto;
  grid-template-areas:
    "avatar heading"
    "avatar list";
  gap: 12px 16px;
  align-items: start;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  margin-bottom: 8px;
  overflow: hidden;
  grid-area: avatar;
}

.avatar.photo {
  width: 200px;
  height: auto;
  padding: 0;
  border: 1px solid var(--stroke);
  background: #fff;
  overflow: hidden;
  grid-area: avatar;
}

.avatar.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.profile-card h3 {
  margin: 0;
  font-size: 20px;
  grid-area: heading;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-area: list;
}

.profile-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 26, 43, 0.02);
}

.profile-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.profile-value {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(58, 128, 255, 0.25);
}

.btn.ghost {
  border-color: rgba(58, 128, 255, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.btn.inline {
  padding: 10px 14px;
  color: var(--accent-2);
  border-color: rgba(58, 128, 255, 0.3);
  background: #fff;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 26, 43, 0.12);
}

.hero-meta {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.meta-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.meta-value {
  color: var(--text);
  font-weight: 600;
}

.hero-card {
  background: #0c1a2b;
  color: #dbe5ff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(12, 26, 43, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.tab {
  margin-left: auto;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.03em;
}

.card-body {
  padding: 18px 18px 22px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pill.soft {
  background: rgba(12, 26, 43, 0.05);
  color: var(--text);
}

.card-title {
  font-size: 20px;
  color: var(--text);
  margin: 16px 0 10px;
}

.card-text {
  color: var(--muted);
  margin-bottom: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-value {
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}

.stat-label {
  color: #9aa9d9;
  font-size: 13px;
}

.section {
  max-width: 1120px;
  margin: 80px auto;
  padding: 0 28px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin: 10px 0 14px;
}

.section-lede {
  max-width: 720px;
  font-size: 18px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 18px 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 24px rgba(12, 26, 43, 0.06);
}

.soft-card {
  box-shadow: 0 6px 16px rgba(12, 26, 43, 0.05);
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.bullet-list {
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  margin: 0;
}

.card-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.highlight {
  border: 1px solid rgba(58, 128, 255, 0.35);
  background: linear-gradient(135deg, rgba(58, 128, 255, 0.05), rgba(255, 111, 60, 0.05));
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.skills {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(12, 26, 43, 0.05);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
}

.time {
  font-weight: 700;
  color: var(--text);
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(12, 26, 43, 0.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.project-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(12, 26, 43, 0.25);
}

.project-card h3 {
  font-size: 20px;
  margin: 10px 0 10px;
  color: #fff;
}

.project-card p {
  color: #cdd6f4;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-link {
  margin-top: 12px;
  font-weight: 700;
  color: #9ad9ff;
}

.contact {
  margin-bottom: 120px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border-radius: 18px;
  padding: 20px 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.contact-actions {
  display: flex;
  gap: 12px;
}

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

.site-footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .site-header {
    position: fixed;
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
  }

  main {
    padding-top: 90px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    margin-top: 40px;
  }

  .contact-card {
    align-items: flex-start;
  }

  .profile-list li {
    grid-template-columns: 1fr;
  }

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