:root {
  color-scheme: dark;
  --bg: #09101a;
  --surface: rgba(19, 29, 44, 0.95);
  --surface-strong: #122035;
  --surface-soft: rgba(19, 29, 44, 0.6);
  --text: #e9eef5;
  --muted: #9bb0c7;
  --accent: #5fd7ff;
  --accent-soft: rgba(95, 215, 255, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(95, 215, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(150, 65, 255, 0.1), transparent 30%),
    var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(9, 16, 26, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text);
}

.nav-bar {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.mobile-menu {
  display: none;
  width: 100%;
  background: rgba(9, 16, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav .nav-link {
  color: var(--text);
}

.section {
  padding: 5.5rem 0;
}

.section--large {
  padding: 6.25rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.5;
}

p {
  color: var(--muted);
  line-height: 1.85;
  margin: 1.2rem 0 0;
}

.hero {
  padding-top: 6rem;
}

.hero-grid,
.about-hero,
.grid-2,
.stats-grid,
.project-grid,
.process-grid,
.contact-grid,
.skills-grid,
.feature-cards {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  align-items: center;
  gap: 3rem;
}

.hero-image-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-image-wrapper {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-image-wrapper img {
  width: min(320px, 100%);
  height: auto;
  border-radius: 50%;
  border: 5px solid rgba(95, 215, 255, 0.18);
  box-shadow: 0 24px 60px rgba(95, 215, 255, 0.16);
  transition: transform 0.6s ease, filter 0.6s ease;
  transform: translateY(0);
}

.hero-image-wrapper img:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-copy,
.hero-image-panel {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.hero-copy.visible,
.hero-image-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy p {
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), rgba(95, 215, 255, 0.7));
  color: #0b1724;
  box-shadow: 0 20px 50px rgba(95, 215, 255, 0.18);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.button:hover {
  transform: translateY(-2px);
}

.profile-card,
.bio-panel,
.project-card,
.stat-card,
.feature-card,
.contact-panel,
.education-card,
.skill-block,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.profile-top span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.profile-status {
  color: var(--text);
  font-weight: 700;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-metrics div {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-metrics strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
}

.profile-metrics span {
  color: var(--muted);
  font-size: 0.95rem;
}

.skill-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge-group span {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(95, 215, 255, 0.12);
  color: var(--accent);
  font-size: 0.9rem;
}

.panel-note {
  color: var(--muted);
  line-height: 1.8;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  padding: 1.8rem;
}

.stat-card span {
  color: var(--muted);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  padding: 2rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 215, 255, 0.22);
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-head span {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-head strong {
  color: var(--text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.chip-row span {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-full {
  position: relative;
  padding-left: 2rem;
}

.timeline-full::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0.5rem;
  height: calc(100% - 1rem);
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  position: relative;
  padding: 1.8rem 1.5rem;
  border-radius: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 1.9rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
}

.timeline-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.about-statements,
.contact-panel,
.skills-grid,
.process-grid,
.contact-summary,
.bio-list {
  display: grid;
  gap: 1rem;
}

.about-statements {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.about-statements div,
.bio-list div,
.contact-panel div {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1rem 1.2rem;
}

.about-statements strong,
.bio-list p,
.contact-panel p {
  margin: 0;
}

.about-statements strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.bio-panel {
  padding: 2rem;
}

.bio-list {
  margin-top: 2rem;
}

.bio-list .label,
.contact-panel .label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.education-card,
.feature-card,
.contact-panel,
.contact-form,
.skill-block {
  padding: 2rem;
}

.education-card span {
  color: var(--accent);
  display: block;
  margin-top: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-block h3 {
  margin-bottom: 1rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(95, 215, 255, 0.9), rgba(138, 195, 255, 0.8));
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-step {
  padding: 2rem;
}

.process-step h3 {
  margin-bottom: 0.75rem;
}

.contact-grid {
  grid-template-columns: 1.25fr 0.85fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.75rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

#contact-status {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(95, 215, 255, 0.08);
  color: var(--accent);
  font-size: 0.95rem;
  min-height: 1.5rem;
}

#contact-status[data-status="error"] {
  background: rgba(255, 113, 85, 0.14);
  border-color: rgba(255, 113, 85, 0.25);
  color: #ffb8aa;
}

#contact-status[data-status="success"] {
  background: rgba(102, 214, 138, 0.14);
  border-color: rgba(102, 214, 138, 0.28);
  color: #c7f4d3;
}

.contact-summary {
  display: grid;
  gap: 1rem;
}

.contact-summary .feature-card {
  padding: 1.6rem;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2.2rem 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 950px) {
  .hero-grid,
  .grid-2,
  .stats-grid,
  .project-grid,
  .skills-grid,
  .process-grid,
  .contact-grid,
  .timeline-full {
    grid-template-columns: 1fr;
  }

  .timeline-full {
    padding-left: 0;
  }

  .timeline-item::before {
    left: -12px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-bar {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.open {
    display: block;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-grid {
    gap: 3rem;
  }

  .about-statements,
  .contact-panel,
  .skills-grid,
  .project-grid,
  .stats-grid,
  .grid-2,
  .process-grid {
    gap: 1.25rem;
  }

  .contact-grid {
    display: grid;
  }
}

@media (max-width: 520px) {
  body {
    background-position: top;
  }

  .header-inner {
    padding: 0.85rem 0;
  }

  .brand {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }
}
