:root {
  --bg: #0b1320;
  --bg-soft: #0f1b2a;
  --surface: #16263a;
  --surface-soft: #1c2f47;
  --text: #eef3f7;
  --muted: #9bb0c4;
  --accent: #d7dde3;
  --accent-2: #f2bc5e;
  --line: rgba(215, 221, 227, 0.14);
  --danger: #ff836b;
  --ok: #90e6a3;
  --shadow: 0 22px 48px rgba(2, 6, 14, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Trebuchet MS", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(205, 215, 230, 0.1), transparent 40%),
    radial-gradient(circle at 0% 25%, rgba(140, 165, 200, 0.18), transparent 32%),
    linear-gradient(160deg, #060a12 0%, #0c1726 45%, #081120 100%);
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.45;
}

.bg-glow-one {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -130px;
  background: rgba(205, 214, 228, 0.28);
}

.bg-glow-two {
  width: 360px;
  height: 360px;
  left: -100px;
  bottom: 4%;
  background: rgba(120, 150, 190, 0.32);
}

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

.section {
  padding: 5.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.72);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent-2), #ffe2a9);
  box-shadow: 0 0 0 6px rgba(242, 188, 94, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  padding-top: 6.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.14;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.85rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-text,
.section-content p,
.skill-card p,
.project-card p,
.opensource-list p,
.contact-wrap p {
  color: var(--muted);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.74rem 1.18rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  color: #14181f;
  background: linear-gradient(140deg, var(--accent-2), #ffd88f);
  box-shadow: 0 12px 24px rgba(242, 188, 94, 0.3);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

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

.stat-row article,
.hero-card,
.skill-card,
.project-card,
.opensource-list article,
.contact-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(22, 38, 58, 0.76), rgba(15, 27, 42, 0.76));
}

.stat-row article {
  padding: 0.82rem;
}

.stat-row h3 {
  margin-bottom: 0.15rem;
  font-size: 1.45rem;
}

.stat-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-card {
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.card-kicker {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.hero-card ul {
  padding-left: 1.15rem;
  margin: 0;
  color: var(--muted);
}

.hero-card a {
  color: var(--text);
}

.card-line {
  margin: 1rem 0;
  height: 1px;
  background: var(--line);
}

.quote {
  margin: 0;
  font-style: italic;
  color: #dce9ed;
}

.section-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.95fr 1.05fr;
}

.social-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social-row a {
  color: var(--text);
  text-underline-offset: 4px;
}

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

.timeline-grid,
.info-grid,
.reference-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-card,
.project-card,
.opensource-list article,
.timeline-card,
.info-card,
.reference-card {
  padding: 1.1rem;
}

.timeline-card,
.info-card,
.reference-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(22, 38, 58, 0.76), rgba(15, 27, 42, 0.76));
}

.timeline-card h3,
.info-card h3,
.reference-card h3 {
  margin-bottom: 0.35rem;
}

.timeline-date {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

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

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(22, 38, 58, 0.76), rgba(15, 27, 42, 0.76));
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.6rem 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.project-tag {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card a {
  color: var(--text);
  text-underline-offset: 4px;
}

.project-private {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.reference-note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.open-source {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.opensource-list {
  display: grid;
  gap: 0.84rem;
}

.contact {
  padding-bottom: 6rem;
}

.contact-wrap {
  border-radius: 24px;
  text-align: center;
  padding: 2rem;
}

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

.footer-wrap {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .skills-grid,
  .projects-grid,
  .open-source,
  .timeline-grid,
  .info-grid,
  .reference-grid,
  .gallery-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: rgba(8, 14, 24, 0.98);
    border-bottom: 1px solid var(--line);
    display: grid;
    padding: 1rem;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
  }

  .nav.open {
    transform: scaleY(1);
  }

  .menu-toggle {
    display: inline-block;
  }
}
