* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0b;
  --card: #121216;
  --card-2: #17171d;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #29292f;
  --accent: #7c6cff;
  --accent-2: #33d6c6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(ellipse 900px 600px at 15% 10%, rgba(124,108,255,.16), transparent 60%),
    radial-gradient(ellipse 800px 600px at 85% 40%, rgba(51,214,198,.10), transparent 60%),
    var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(ellipse 900px 600px at 15% 10%, rgba(124,108,255,.16), transparent 60%),
    radial-gradient(ellipse 800px 600px at 85% 40%, rgba(51,214,198,.10), transparent 60%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: .035;
  pointer-events: none;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.navbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  transition: .25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 70px;
  padding: 56px 0;
}

.eyebrow {
  color: var(--accent-2);
  font-size: .78rem;
  letter-spacing: .18em;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.4rem, 2.9vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  white-space: nowrap;
}

.hero h2 {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

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

.hero-desc {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}

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

.btn.primary {
  background: var(--text);
  color: #111;
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: .86rem;
}

.profile-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #17171d, #0f0f12);
  padding: 14px;
  border-radius: 24px;
  transform: rotate(1deg);
  transition: transform .3s ease;
}

.profile-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.profile-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(124,108,255,.35), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(51,214,198,.2), transparent 35%),
    #1b1b21;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 4px 2px;
}

.profile-info small {
  color: var(--accent-2);
}

.section {
  padding: 90px 0;
}

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

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.04em;
}

.about-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
}

.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--muted);
}

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

.stats div {
  background: var(--card-2);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
}

.stats span {
  font-size: .78rem;
  color: var(--muted);
}

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

.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 18px;
  transition: .25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #444451;
}

.skill-card span {
  color: var(--accent);
  font-size: .75rem;
}

.skill-card h3 {
  margin: 16px 0 2px;
}

.skill-card p {
  color: var(--muted);
  font-size: .82rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.65);
  font-size: .86rem;
}

.p1 {
  background: linear-gradient(135deg, #252535, #121216);
}

.p2 {
  background: linear-gradient(135deg, #20313a, #121216);
}

.p3 {
  background: linear-gradient(135deg, #32263b, #121216);
}

.project-body {
  padding: 20px;
}

.project-body p {
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.project-body h3 {
  margin-bottom: 8px;
}

.project-body span {
  color: var(--muted);
  font-size: .88rem;
}

.contact-intro {
  color: var(--muted);
  margin-top: 8px;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
}

.contact-card a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.contact-card a:last-child {
  border-bottom: 0;
}

.contact-card a:hover {
  background: var(--card-2);
}

.contact-card span {
  color: var(--muted);
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px 54px;
  font-size: .82rem;
}

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

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

@media (max-width: 820px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px;
    border: 1px solid var(--line);
    background: #101014;
    border-radius: 16px;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 0;
  }

  .hero h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .profile-card {
    max-width: 420px;
  }

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

  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .section {
    padding: 68px 0;
  }

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

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

  .about-card {
    padding: 24px;
  }

  .contact-card a {
    flex-direction: column;
    gap: 4px;
  }
}