:root {
  --background: #090f1d;
  --background-soft: #101828;
  --surface: #1b2434;
  --surface-soft: #222d3f;
  --text: #f5f7fb;
  --muted: #9aa3b2;
  --accent: #a855f7;
  --accent-strong: #d946ef;
  --border: rgba(139, 92, 246, 0.18);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(168, 85, 247, 0.14), transparent 30%),
    linear-gradient(180deg, #09111f 0%, var(--background) 100%);
  line-height: 1.6;
}

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

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

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(8, 13, 24, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

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

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 380px);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-photo-panel {
  border-radius: 32px;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.9), rgba(217, 70, 239, 0.7));
  box-shadow: 0 24px 60px rgba(168, 85, 247, 0.22);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  background: #161f2f;
}

.status-pill {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #cab8ff;
  background: rgba(131, 56, 236, 0.18);
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 1;
  margin: 0 0 1.25rem;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #c6cdd8;
  margin: 0 0 1rem;
}

.intro,
.section-note {
  color: var(--muted);
  max-width: 850px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2.2rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.section-heading::after {
  content: "";
  display: block;
  width: 86px;
  height: 5px;
  border-radius: 999px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.button {
  display: inline-block;
  padding: 0.95rem 1.7rem;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  color: white;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.button:hover {
  opacity: 0.92;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.3);
}

.button-secondary:hover {
  background: rgba(148, 163, 184, 0.08);
}

.button-ghost {
  background: transparent;
  border-color: rgba(168, 85, 247, 0.5);
  color: #c7b4ff;
}

.button-ghost:hover {
  background: rgba(168, 85, 247, 0.08);
}

.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-mark-panel {
  border-radius: 28px;
  background: linear-gradient(135deg, #a78bfa, #d946ef);
  padding: 0.9rem;
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.2);
}

.about-mark {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: rgba(9, 15, 29, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: white;
}

.about-content {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-content strong {
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat-card,
.skill-card,
.education-card,
.resume-panel,
.contact-row,
.project-card {
  background: rgba(27, 36, 52, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1.4rem;
  border-radius: 20px;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: 2rem;
}

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

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

.skill-card {
  border-radius: 24px;
  padding: 1.8rem;
}

.skill-label {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.skill-frontend {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.18);
}

.skill-backend {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.skill-tools {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.15);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.skill-tags span {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  color: #f8fafc;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.9));
}

.skill-card:nth-child(2) .skill-tags span {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(45, 212, 191, 0.9));
}

.skill-card:nth-child(3) .skill-tags span {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.98), rgba(245, 158, 11, 0.9));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.project-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.28);
}

.project-image-wrap {
  position: relative;
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f5d0fe;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.92), rgba(217, 70, 239, 0.92));
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.9), rgba(168, 85, 247, 0.28));
}

.project-content {
  padding: 1.7rem;
}

.project-content h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.project-content p {
  color: var(--muted);
}

.project-tech {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  color: #bf9cff;
  background: rgba(107, 33, 168, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.18);
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-links a {
  color: #d1d5db;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.project-links a:hover {
  border-bottom-color: rgba(217, 70, 239, 0.7);
}

.education-card {
  border-radius: 24px;
  padding: 1.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.education-card h3,
.resume-panel h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.education-card p {
  margin: 0;
  color: #bf9cff;
}

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

.resume-panel {
  border-radius: 28px;
  padding: 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

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

.resume-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-intro {
  text-align: center;
  color: var(--muted);
  margin: -0.5rem auto 2rem;
}

.contact-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.contact-row {
  padding: 1.3rem 1.5rem;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.contact-label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-action {
  color: #8b5cf6;
  font-size: 1.8rem;
}

.site-footer {
  padding: 0 0 3rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer span {
  color: var(--accent);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.02);
  font-weight: 700;
}

@media (max-width: 800px) {
  .nav-inner,
  .hero-actions,
  .education-card,
  .resume-panel,
  .contact-row,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-layout,
  .hero-layout,
  .skills-grid,
  .projects-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    align-items: stretch;
    width: 100%;
  }

  .hero-copy {
    text-align: center;
    max-width: none;
  }

  .status-pill,
  .intro {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    margin-top: 1rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
