:root {
  --bg: #08090b;
  --bg-2: #0d1220;
  --surface: #0b0c10;
  --text: #f4f7ff;
  --muted: #a0a7be;
  --line: #4f5a7b;
  --line-soft: #28314a;
  --accent: #9f83ff;
  --accent-2: #3fc5ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 10% 15%, rgba(159, 131, 255, 0.2), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(63, 197, 255, 0.14), transparent 30%),
    linear-gradient(120deg, #0a0f1d 0%, #05070f 45%, #0b1021 100%);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #0a0e1c 0%, #080a12 100%);
  padding: 1.8rem 0 2.1rem;
  box-shadow: none;
}

.site-header {
  width: 100%;
  margin: 0;
  padding-inline: clamp(1rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(159, 131, 255, 0.6);
  background: #0b1020;
  padding: 0.25rem;
  box-shadow: 0 0 26px rgba(159, 131, 255, 0.28);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #596487;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #e4eaff;
  border-radius: 999px;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.site-header nav a.active,
.site-header nav a:hover {
  color: var(--accent);
}

.btn {
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.55rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(159, 131, 255, 0.8);
}

.btn-ghost {
  color: #dce4ff;
  background: transparent;
  border: 1px solid #596487;
}

.top-cta {
  min-width: 130px;
}

.hero {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-inline: clamp(1rem, 4vw, 3.2rem);
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.hero-left {
  padding-bottom: 1.3rem;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: 2rem;
  font-weight: 400;
}

.hero-name {
  margin: 0.15rem 0 0;
  font-size: 2.2rem;
  font-weight: 600;
}

.hero-role {
  margin: 0.35rem 0 1.25rem;
  color: var(--accent);
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats-grid {
  margin-top: 2.2rem;
  max-width: 440px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #12182a;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid article {
  padding: 1.05rem 1rem;
}

.stats-grid article:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.stats-grid h3 {
  margin: 0;
  color: var(--accent-2);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.stats-grid p {
  margin: 0.35rem 0 0;
  color: #c7c8cb;
  font-size: 1rem;
}

.hero-right {
  position: relative;
  min-height: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-circle {
  position: absolute;
  width: min(490px, 95%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #19223a 0%, #131a2f 100%);
}

.photo-frame {
  position: relative;
  z-index: 2;
  width: min(460px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #36415f;
  background: #11182b;
}

#profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: none;
  display: block;
}

.info-strip {
  width: 100%;
  margin: 0 auto 0.85rem;
  border: 1px solid #2f3a58;
  border-radius: 12px;
  background: rgba(12, 16, 30, 0.95);
  padding: 1.1rem clamp(1rem, 4vw, 3.2rem);
}

.info-strip h2 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.2rem;
}

.info-strip p {
  margin: 0;
  color: var(--muted);
}

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

.project-card {
  border: 1px solid #33405f;
  border-radius: 10px;
  padding: 0.85rem;
  background: #0f1527;
}

.project-card h3 {
  margin: 0 0 0.35rem;
  color: #f5f5f6;
  font-size: 1rem;
}

.project-card p {
  margin: 0;
  color: #a6b1cf;
  font-size: 0.92rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-links a {
  text-decoration: none;
  color: #dee6ff;
  border: 1px solid #58668e;
  border-radius: 8px;
  padding: 0.48rem 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-links a:hover {
  color: #fff;
  border-color: var(--accent-2);
  background: rgba(63, 197, 255, 0.08);
}

.site-footer {
  text-align: center;
  color: #97a5cc;
  padding: 0.8rem 1rem 1.4rem;
  font-size: 0.9rem;
}

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

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

@media (max-width: 1080px) {
  .page-shell {
    padding: 1.2rem 0 1.4rem;
  }

  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 0.8rem;
    justify-items: stretch;
  }

  .site-header nav {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .top-cta {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 1.3rem;
  }

  .hero-right {
    min-height: 390px;
  }

  .photo-frame {
    width: min(360px, 82vw);
  }

  .photo-circle {
    width: min(390px, 90vw);
  }

  .stats-grid {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: 100%;
    margin-top: 0;
    border-width: 0;
    border-radius: 0;
  }

  .site-header {
    grid-template-columns: auto auto 1fr;
    align-items: center;
  }

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

  .top-cta {
    display: none;
  }

  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.1rem;
    padding: 0.5rem;
    border: 1px solid #35405e;
    border-radius: 10px;
    background: #0d1427;
  }

  body.nav-open .site-header nav {
    display: flex;
  }

  .site-header nav a {
    width: 100%;
    padding: 0.55rem 0.5rem;
  }

  .site-header,
  .hero,
  .info-strip {
    width: 100%;
    padding-inline: 0.9rem;
  }

  .hero-name {
    font-size: 1.75rem;
  }

  .intro {
    font-size: 1.35rem;
  }

  .hero-right {
    min-height: 300px;
  }

  #profile-photo {
    object-position: center 16%;
  }

  .photo-frame {
    width: min(300px, 86vw);
  }

  .photo-circle {
    width: min(320px, 95vw);
  }

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

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

  .stats-grid article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    width: 100%;
    justify-content: center;
  }
}
