:root {
  --bg: #071018;
  --bg-soft: #0d1a26;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(173, 217, 224, 0.16);
  --text: #f1f7fb;
  --muted: rgba(241, 247, 251, 0.76);
  --soft: rgba(241, 247, 251, 0.5);
  --accent: #87d7df;
  --accent-strong: #58a9bd;
  --accent-glow: rgba(88, 169, 189, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(135, 215, 223, 0.12), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(88, 169, 189, 0.12), transparent 24%),
    linear-gradient(180deg, #071018 0%, #050a10 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 24, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), #9ce9ee);
  color: #071018;
  box-shadow: 0 14px 30px var(--accent-glow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.button-disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  pointer-events: none;
}

.hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 247, 251, 0.58);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.hero-subtitle {
  margin-bottom: 16px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--accent);
  font-weight: 600;
}

.hero-text,
.section-heading p,
.about-card p,
.info-card p,
.timeline-content p,
.project-card p,
.project-lead p,
.footer-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

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

.hero-facts li,
.product-tags span,
.badge-list span {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-card,
.about-card,
.info-card,
.timeline-card,
.project-lead,
.business-model,
.project-card,
.contact-form,
.stat-card {
  border: 1px solid rgba(173, 217, 224, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.portrait-placeholder {
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(88, 169, 189, 0.16), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(173, 217, 224, 0.1);
}

.portrait-frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 18px;
  border: 1px dashed rgba(173, 217, 224, 0.26);
  color: var(--soft);
  background:
    radial-gradient(circle at center, rgba(135, 215, 223, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(173, 217, 224, 0.08);
}

.panel-label,
.card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel h2,
.section-heading h2,
.info-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.hero-panel h2 {
  font-size: 1.5rem;
}

.contact-mini-list,
.contact-list,
.list-clean {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-mini-list li,
.contact-list li,
.list-clean li {
  margin-bottom: 10px;
  color: var(--muted);
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.about-grid,
.project-grid,
.dual-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-card,
.info-card,
.project-lead,
.business-model,
.project-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.about-card p + p {
  margin-top: 18px;
}

.about-stats {
  display: grid;
  gap: 18px;
}

.stat-card {
  padding: 24px;
  border-radius: 22px;
}

.stat-value {
  display: block;
  margin-bottom: 10px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  color: var(--muted);
}

.skill-groups,
.education-grid,
.projects-grid {
  display: grid;
  gap: 24px;
}

.skill-groups,
.education-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.badge-list,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 168px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(135, 215, 223, 0.3), rgba(135, 215, 223, 0.04));
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 163px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(88, 169, 189, 0.12);
}

.timeline-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
}

.timeline-meta strong {
  color: var(--text);
}

.timeline-content h3,
.project-card h3,
.info-card h3,
.project-lead h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.business-model ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.business-model li + li {
  margin-top: 12px;
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tech-stack {
  margin-top: auto;
  padding-top: 12px;
  color: var(--soft);
}

.placeholder-card {
  border-style: dashed;
}

.site-footer {
  padding: 96px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(173, 217, 224, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(135, 215, 223, 0.5);
  box-shadow: 0 0 0 4px rgba(88, 169, 189, 0.14);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .project-grid,
  .dual-grid,
  .footer-grid,
  .skill-groups,
  .education-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(7, 16, 24, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    padding-top: 56px;
  }

  .timeline::before {
    display: none;
  }

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

  .timeline-card::before {
    left: 24px;
    top: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section,
  .site-footer {
    padding: 72px 0;
  }

  .hero-card,
  .about-card,
  .info-card,
  .timeline-card,
  .project-lead,
  .business-model,
  .project-card,
  .contact-form,
  .stat-card {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-panel h2,
  .section-heading h2,
  .info-card h2 {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }
}
