:root {
  color-scheme: dark;
  --bg: #08111d;
  --bg-elevated: rgba(12, 21, 35, 0.82);
  --bg-panel: rgba(17, 27, 44, 0.9);
  --border: rgba(180, 205, 255, 0.14);
  --border-strong: rgba(180, 205, 255, 0.24);
  --text: #eef4ff;
  --muted: #a6b3c9;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.14), transparent 28%),
    linear-gradient(180deg, #050b14 0%, #08111d 42%, #091320 100%);
  color: var(--text);
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent);
}

main,
.topbar,
.footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.66);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03111d;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  padding: 48px 0 24px;
}

.hero-copy,
.profile-card,
.panel,
.project-card,
.screenshot-frame,
.language-list {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-copy {
  padding: 34px;
  border-radius: var(--radius-xl);
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.hero-text {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.project-card:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04111b;
}

.secondary {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  grid-auto-rows: 1fr;
}

.hero-stats div,
.language-list div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(180, 205, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats dt,
.language-list span,
.timeline-meta,
.project-term {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-stats dd,
.language-list strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-stats dd {
  overflow-wrap: anywhere;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.profile-photo,
.screenshot-frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 24px;
  border: 1px dashed rgba(180, 205, 255, 0.22);
  background:
    radial-gradient(circle at top, rgba(125, 211, 252, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
}

.profile-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.profile-photo::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.18), rgba(255, 255, 255, 0.03));
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  position: relative;
  z-index: 1;
  filter: grayscale(1) contrast(1.04);
}

.profile-photo span,
.screenshot-frame span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-info h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.profile-info p {
  color: var(--muted);
  line-height: 1.7;
}

.content-section {
  padding: 26px 0 8px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 72ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.info-grid,
.project-layout {
  display: grid;
  gap: 18px;
}

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

.panel,
.project-card,
.language-list {
  border-radius: var(--radius-lg);
}

.panel {
  padding: 22px;
}

.panel h3,
.timeline-item h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.panel p + p,
.panel p + a,
.panel a + p {
  margin-top: 10px;
}

.muted-panel {
  background: rgba(255, 255, 255, 0.02);
}

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

.timeline-item {
  display: grid;
  gap: 10px;
}

.timeline-item p {
  line-height: 1.7;
}

.language-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  min-height: 230px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card h3 {
  font-size: 1.15rem;
}

.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.project-card h3,
.panel h3,
.profile-info h2,
.section-heading h2 {
  text-wrap: balance;
}

.panel p,
.project-card p,
.profile-info p,
.hero-text {
  overflow-wrap: anywhere;
}

.project-detail {
  padding-top: 36px;
}

.screenshot-frame {
  min-height: 360px;
}

.footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 0;
  font-size: 0.95rem;
  font-weight: 500;
  justify-content: center;
}

.footer-links a {
  padding: 0 12px;
  transition: color 0.2s ease;
}

.footer-links a:not(:last-child) {
  border-right: 1px solid var(--border);
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.backdrop {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
}

.backdrop-one {
  top: 6%;
  left: -6%;
  width: 280px;
  height: 280px;
  background: rgba(56, 189, 248, 0.28);
}

.backdrop-two {
  bottom: 10%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: rgba(125, 211, 252, 0.18);
}

@media (max-width: 1100px) {
  .hero,
  .two-columns,
  .project-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    grid-auto-rows: auto;
  }

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

@media (max-width: 720px) {
  main,
  .topbar,
  .footer {
    width: min(calc(100% - 20px), var(--container));
  }

  .topbar {
    border-radius: 24px;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 10px 14px;
  }

  .hero-copy,
  .profile-card,
  .panel,
  .project-card,
  .language-list {
    padding: 18px;
  }

  .hero-stats,
  .project-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .profile-photo,
  .screenshot-frame {
    min-height: 260px;
  }

  .profile-photo {
    aspect-ratio: 1 / 1;
  }
}