:root {
  --bg: #09111c;
  --surface: #0f1b2c;
  --surface-2: #122236;
  --text: #eef4ff;
  --muted: #9eb1ce;
  --line: rgba(124, 164, 218, 0.22);
  --accent: #38d39f;
  --accent-2: #ffbd75;
  --shadow: 0 16px 44px rgba(3, 8, 17, 0.35);
  --radius: 18px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #15325a 0, transparent 34%),
    radial-gradient(circle at 100% 10%, #2c4a3f 0, transparent 30%),
    var(--bg);
  line-height: 1.6;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 20% 75%, rgba(56, 211, 159, 0.12) 0, transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(255, 189, 117, 0.1) 0, transparent 24%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.14;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 17, 28, 0.72);
  backdrop-filter: blur(10px);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.resume-btn {
  justify-self: end;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111b;
  font-weight: 800;
}

main {
  display: grid;
  gap: 32px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 40px 20px;
}

.hero {
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 24px;
}

.hero-copy {
  background: linear-gradient(160deg, rgba(18, 34, 54, 0.98), rgba(14, 26, 41, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.76rem;
}

h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 4.7vw, 3.9rem);
}

h1 span {
  background: linear-gradient(90deg, var(--accent), #9af1d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.type-row {
  margin: 14px 0 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.type-label {
  color: var(--accent-2);
}

.typewriter {
  color: var(--text);
  min-height: 24px;
}

.typewriter::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  margin-left: 4px;
  background: var(--accent);
  animation: blink 1s infinite;
  vertical-align: -2px;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

.hero-text {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(130deg, var(--accent), #95efd0);
  color: #08131f;
  box-shadow: 0 10px 26px rgba(56, 211, 159, 0.2);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.hero-metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics article {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-metrics h3 {
  color: var(--accent-2);
  font-size: 1.08rem;
}

.hero-metrics p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, #152940, #0f1d2f);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 211, 159, 0.45), transparent 65%);
  top: -110px;
  right: -70px;
  filter: blur(14px);
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

.profile-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.photo-meta {
  padding: 16px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  background: rgba(9, 17, 28, 0.8);
}

.photo-meta p {
  margin: 7px 0 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 16px;
  display: grid;
  gap: 7px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel,
.skill-card,
.project-card,
.timeline-item,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 34, 54, 0.95), rgba(14, 26, 41, 0.95));
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

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

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

.panel li + li {
  margin-top: 6px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-card {
  padding: 16px;
}

.skill-card h3 {
  color: #f5f8ff;
}

.skill-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  padding: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 211, 159, 0.45);
}

.project-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 16px;
}

.meta {
  margin: 6px 0 0;
  color: var(--accent-2);
  font-size: 0.85rem;
}

.timeline-item p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-card {
  padding: 18px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  padding: 9px 12px;
  font-weight: 700;
  color: var(--text);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 26px 20px 34px;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-photo {
    max-width: 560px;
  }

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

@media (max-width: 760px) {
  .site-nav {
    grid-template-columns: auto auto auto;
  }

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

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    background: rgba(15, 27, 44, 0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.menu-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 11px 14px;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 28px 16px;
  }

  .site-nav {
    padding: 12px 16px;
  }

  h1 {
    font-size: clamp(1.95rem, 10vw, 2.55rem);
  }
}
