:root {
  --bg: #020409;
  --surface-border: rgba(125, 166, 255, 0.18);
  --text: #edf3ff;
  --muted: #97a8c0;
  --muted-strong: #c8d4e7;
  --blue: #4b8cff;
  --indigo: #675cff;
  --emerald: #11b899;
  --glow-blue: rgba(75, 140, 255, 0.35);
  --glow-indigo: rgba(103, 92, 255, 0.28);
  --glow-emerald: rgba(17, 184, 153, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(31, 31, 86, 0.48), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(49, 36, 102, 0.22), transparent 24%),
    linear-gradient(180deg, #010102 0%, #04050a 42%, #020204 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--indigo), var(--emerald));
  box-shadow: 0 0 16px rgba(75, 140, 255, 0.45);
}

.noise,
.orb {
  position: fixed;
  pointer-events: none;
}

.noise {
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 90%);
}

.orb {
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.8;
  will-change: transform;
}

.orb-blue {
  top: 5%;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background: rgba(57, 105, 255, 0.3);
}

.orb-indigo {
  top: 25%;
  right: -8rem;
  width: 28rem;
  height: 28rem;
  background: rgba(95, 67, 255, 0.34);
}

.orb-emerald {
  bottom: 8%;
  left: 30%;
  width: 26rem;
  height: 26rem;
  background: rgba(8, 112, 105, 0.16);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  background: rgba(7, 8, 10, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(245, 248, 255, 0.94);
  text-shadow: 0 0 18px rgba(157, 178, 255, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
}

.nav-dot {
  color: rgba(160, 174, 214, 0.55);
  font-size: 0.95rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--emerald));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--text);
  transition: transform 180ms ease;
}

.hero {
  display: block;
  min-height: calc(100vh - 10rem);
  padding-top: 3.2rem;
}

.hero-copy,
.intro-card,
.project-card,
.timeline-card,
.panel-card,
.contact-shell,
.meta-card {
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.9) 0%, rgba(6, 10, 18, 0.9) 100%);
  box-shadow: var(--shadow);
}

.hero-copy,
.intro-card,
.project-card,
.timeline-card,
.panel-card,
.contact-shell {
  border-radius: var(--radius-xl);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  padding: 2.4rem;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.72fr);
  gap: 1.6rem;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-side {
  display: flex;
  justify-content: center;
}

.hero-intro {
  min-height: 1.6rem;
  margin-top: 0.2rem;
  color: rgba(236, 242, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(120, 145, 255, 0.24);
  position: relative;
  z-index: 1;
}

.type-cursor {
  display: inline-block;
  width: 0.72ch;
  height: 1.05em;
  margin-left: 0.18rem;
  vertical-align: -0.15em;
  background: rgba(226, 234, 255, 0.88);
  box-shadow:
    0 0 18px rgba(170, 188, 255, 0.34),
    0 0 28px rgba(117, 145, 255, 0.18);
  animation: blink 1s steps(1, end) infinite;
}

.eyebrow,
.section-kicker,
.panel-label,
.project-index,
.project-badge,
.timeline-meta span,
.meta-card span,
.stat-item span {
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-shell h2 {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(125, 149, 255, 0.08);
}

.hero h1 {
  max-width: 13ch;
  margin-top: 1rem;
  font-size: clamp(2.45rem, 5.8vw, 4.35rem);
  line-height: 1.02;
}

.hero-text {
  max-width: 43rem;
  margin-top: 0.95rem;
  font-size: 0.97rem;
  line-height: 1.66;
  color: var(--muted-strong);
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-links span {
  color: rgba(160, 174, 214, 0.45);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--blue), #296dff);
  box-shadow: 0 0 34px rgba(75, 140, 255, 0.35);
}

.button-secondary {
  border-color: rgba(17, 184, 153, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.2rem;
}

.meta-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
}

.meta-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.profile-visual {
  position: relative;
  width: min(17rem, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(166, 182, 255, 0.24);
  border-radius: 50%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at top, rgba(86, 92, 255, 0.26), transparent 38%),
    linear-gradient(180deg, rgba(10, 14, 28, 0.96), rgba(6, 8, 18, 0.96));
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.02),
    0 0 34px rgba(108, 96, 255, 0.14);
}

.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.9rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-item strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.04rem;
}

.stat-item p {
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.93rem;
}

.section {
  padding-top: 5rem;
}

.section-heading {
  max-width: 52rem;
}

.section-heading h2,
.contact-shell h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.intro-grid,
.projects-grid,
.split-grid,
.profile-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

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

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

.intro-card,
.project-card,
.timeline-card,
.panel-card {
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
}

.intro-card,
.project-card,
.timeline-card,
.panel-card,
.contact-links {
  color: var(--muted-strong);
  line-height: 1.68;
  font-size: 0.95rem;
}

.featured-card {
  background:
    linear-gradient(180deg, rgba(10, 17, 31, 0.95) 0%, rgba(5, 11, 20, 0.95) 100%),
    radial-gradient(circle at top left, rgba(75, 140, 255, 0.16), transparent 35%);
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(75, 140, 255, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.interactive-card:hover::before {
  opacity: 1;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-badge {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(103, 92, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: #bfd0ff;
}

.project-card h3,
.timeline-card h3,
.panel-card h3 {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 1.06rem;
  color: var(--text);
}

.tags,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tags {
  margin-top: 1.35rem;
}

.tags span,
.contact-links a {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-meta strong {
  color: var(--text);
  font-size: 0.9rem;
}

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

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

.profile-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.9) 0%, rgba(6, 10, 18, 0.9) 100%);
  box-shadow: var(--shadow);
}

.profile-card span {
  font-size: 0.76rem;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.skill-groups {
  display: grid;
  gap: 1rem;
}

.skill-groups span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}

.list-block {
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.list-block li + li {
  margin-top: 0.8rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.2rem 0 0.5rem;
  border-top: 1px solid rgba(125, 166, 255, 0.16);
}

.footer-copy strong {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
}

.footer-copy p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(125, 166, 255, 0.22);
  border-radius: 50%;
  background: rgba(8, 10, 14, 0.82);
  color: rgba(241, 245, 255, 0.92);
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 24px rgba(99, 112, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: 0 0 30px rgba(99, 112, 255, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .projects-grid,
  .split-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .hero-main,
  .stat-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    top: 0.5rem;
    justify-content: space-between;
  }

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

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

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--surface-border);
    border-radius: 1.5rem;
    background: rgba(4, 8, 15, 0.96);
  }

  .nav-dot {
    display: none;
  }

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

  .hero-copy,
  .intro-card,
  .project-card,
  .timeline-card,
  .panel-card {
    padding: 1.3rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-top {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .section {
    padding-top: 4rem;
  }
}
