:root {
  --bg: #081120;
  --bg-soft: rgba(14, 24, 42, 0.72);
  --panel: rgba(11, 20, 35, 0.8);
  --panel-strong: rgba(8, 15, 28, 0.95);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #9fb1cc;
  --primary: #7dd3fc;
  --primary-strong: #38bdf8;
  --accent: #a78bfa;
  --success: #86efac;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07101d;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

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

main {
  margin-left: 40vw;
  width: 60vw;
}

.container {
  width: min(calc(100% - 5rem), 760px);
  margin: 0 auto;
}

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

.section p,
.hero-copy,
.profile-panel p,
.timeline-card p,
.project-card p,
.contact-card p,
.form-card p,
.highlight p,
.section-heading p {
  max-width: 680px;
}

.section-label.section-title-original {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: none;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

header {
  position: fixed;
  inset: 0 auto 0 0;
  width: 40vw;
  height: 100vh;
  z-index: 20;
  padding: 3.5rem;
  background: transparent;
  border: 0;
}

.nav-wrap {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.logo span {
  color: var(--primary);
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
}

nav a {
  color: var(--muted);
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid transparent;
  border-radius: 0;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
  border-left-color: var(--primary);
}

.nav-cta {
  border: 0;
  background: transparent;
  color: inherit;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero-main,
.hero-side,
.glass-card,
.skill-card,
.contact-card,
.timeline-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.hero-main {
  padding: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
  isolation: auto;
}

.hero-main::after {
  content: none;
}

.eyebrow {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--muted);
  width: fit-content;
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
  letter-spacing: 0.08em;
  font-variant: small-caps;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.8rem)
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 10ch;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus-visible {
  opacity: 0.85;
}

.btn-primary {
  background: var(--primary);
  color: #04111f;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.metric {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  line-height: 1.7;
}

.hero-side {
  position: static;
  width: auto;
  padding: 0;
  margin-top: 2rem;
  pointer-events: auto;
}

.hero-side > * + * {
  margin-top: 1.5rem;
}

.profile-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #04111f;
  background: var(--primary);
  margin-bottom: 1rem;
}

.profile-panel h2 {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.profile-panel p,
.stat-line,
.list-muted li,
.timeline-card p,
.project-card p,
.contact-card p,
.form-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.stat-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.stat-line strong {
  color: var(--text);
  font-weight: 600;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.tag::before {
  content: "/";
  color: var(--primary);
  margin-right: 0.35rem;
}

.glass-card {
  padding: 0;
}

.quick-links {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.quick-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
}

.quick-links a:hover,
.quick-links a:focus-visible {
  color: var(--text);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about-story {
  padding: 0;
}

.about-story p + p {
  margin-top: 1rem;
}

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

.highlight {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.highlight strong {
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.timeline-stack {
  display: grid;
  gap: 1.75rem;
  border-left: 2px solid var(--border);
  margin-left: 0.2rem;
}

.timeline-card {
  padding: 0 0 0 1.5rem;
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-card small {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.timeline-card h3 {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.timeline-card .meta {
  color: #cad9ef;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: project-count;
}

.skill-card,
.project-card,
.contact-card,
.form-card {
  padding: 0;
}

.skill-card {
  padding: 0 0 1rem;
}

.skill-card h3,
.project-card h3,
.contact-card h3,
.form-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}

.list-muted {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.list-muted li {
  position: relative;
  padding-left: 1rem;
}

.list-muted li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 0.8rem;
  box-shadow: none;
}

.project-card {
  counter-increment: project-count;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  border-radius: 0;
}

.project-card::before {
  content: counter(project-count, decimal-leading-zero);
  color: var(--muted);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-card.featured {
  grid-column: span 1;
}

.project-card > * {
  grid-column: 2;
}

.project-card::before {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-visual {
  display: none;
}

.form-card {
  margin-top: 1rem;
  background: transparent;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text);
  font: inherit;
  transition: 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  border: none;
  cursor: pointer;
  width: fit-content;
}

.footer-wrap {
  width: min(calc(100% - 5rem), 760px);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer {
  margin-left: 40vw;
  width: 60vw;
  padding: 1.5rem 0 3rem;
  color: var(--muted);
}

.demo-credentials {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.demo-credentials summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-credentials summary::-webkit-details-marker {
  display: none;
}

.credentials-box {
  margin-top: 0.75rem;
  padding: 0.9rem 0 0 1rem;
  background: transparent;
  border-left: 2px solid var(--border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.credentials-box p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.credentials-box span {
  color: var(--muted);
  min-width: 70px;
}

.credentials-box code {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

@media (max-width: 1200px) {
  header,
  .hero-side {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .container,
  .footer-wrap {
    width: min(calc(100% - 3.5rem), 760px);
  }
}

@media (max-width: 900px) {
  main,
  footer {
    margin-left: 0;
    width: 100%;
  }

  header {
    position: sticky;
    inset: 0 auto auto 0;
    width: 100%;
    height: auto;
    padding: 0;
    background: rgba(7, 16, 29, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .nav-wrap {
    width: min(calc(100% - 2rem), var(--max-width));
    height: auto;
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
  }

  nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0;
    width: auto;
    flex-wrap: wrap;
  }

  nav a {
    padding: 0.6rem 0.1rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  nav a:hover,
  nav a:focus-visible {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }

  .hero-side {
    position: static;
    width: auto;
    padding: 2rem 0 0;
    gap: 1.25rem;
    pointer-events: auto;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .container,
  .footer-wrap {
    width: min(calc(100% - 2rem), var(--max-width));
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 2.4rem;
  }

  .hero-metrics,
  .highlights,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5rem 0;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.25rem 0 1.5rem;
    background: transparent;
    border-width: 0 0 1px;
  }

  .project-card::before,
  .project-card > * {
    grid-column: auto;
    grid-row: auto;
  }

  nav {
    gap: 0.2rem;
  }

  nav a {
    font-size: 0.88rem;
  }
}

.nav-wrap::-webkit-scrollbar {
  width: 3px;
}

.nav-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.nav-wrap::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.2);
  border-radius: 999px;
}

.nav-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 211, 252, 0.4);
}

.nav-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.2) transparent;
}

