:root {
  color-scheme: dark;
  --bg: #07110f;
  --bg-soft: #0d241f;
  --panel: rgba(9, 28, 25, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #f4f7f4;
  --muted: #b8c9be;
  --accent: #62e3ae;
  --accent-2: #2d8bff;
  --accent-3: #ffbf69;
  --accent-4: #ff5d8f;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(98, 227, 174, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(45, 139, 255, 0.16), transparent 24%),
    linear-gradient(135deg, var(--bg), #132c27 85%);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: rgba(98, 227, 174, 0.28);
  color: white;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

body::before {
  width: 360px;
  height: 360px;
  top: -100px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 227, 174, 0.18), transparent 72%);
  filter: blur(4px);
}

body::after {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 139, 255, 0.16), transparent 72%);
  filter: blur(6px);
}

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

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

.page-shell {
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 15, 0.74);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  position: relative;
  transition: color 180ms ease;
}

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

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

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

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: 760px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 660px;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-4));
  color: white;
  box-shadow: 0 12px 30px rgba(98, 227, 174, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

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

.stats-row div {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(98, 227, 174, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  padding: 0.95rem;
}

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

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

.profile-card,
.info-card,
.panel-card,
.card,
.project-card,
.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.profile-card:hover,
.info-card:hover,
.panel-card:hover,
.card:hover,
.project-card:hover,
.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 227, 174, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.profile-card {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(9, 28, 25, 0.96), rgba(14, 38, 31, 0.96));
  transform: rotate(1.2deg);
  border: none;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: rotate(-15deg);
}

.profile-card::after {
  content: '';
  position: absolute;
  bottom: 18px;
  right: 16px;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-4));
  transform: rotate(-15deg);
}

.image-frame {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(98, 227, 174, 0.25), rgba(255, 191, 105, 0.16), rgba(45, 139, 255, 0.18));
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
  transform: rotate(-5deg);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.6rem;
  pointer-events: none;
}

.image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 46%);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  background: linear-gradient(135deg, rgba(98, 227, 174, 0.18), rgba(45, 139, 255, 0.18));
}

.profile-meta {
  text-align: center;
}

.profile-meta p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.section {
  padding: 2rem 0 3rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: center;
}

.info-card {
  padding: 1.3rem;
  color: var(--muted);
}

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

.about-unified {
  padding: 2rem 0 3rem;
}

.about-unified-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(98, 227, 174, 0.06));
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.6rem;
  color: var(--muted);
}

.about-unified-card h3 {
  color: var(--text);
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.about-unified-card h3:first-child {
  margin-top: 0;
}

.contact-card {
  background: linear-gradient(135deg, rgba(98, 227, 174, 0.12), rgba(45, 139, 255, 0.1));
  border: 1px solid rgba(98, 227, 174, 0.24);
  border-radius: 1.4rem;
  padding: 1.6rem;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.about-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(98, 227, 174, 0.06));
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.25rem;
  color: var(--muted);
}

.detail-list {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pill-group span {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(98, 227, 174, 0.12);
  color: var(--accent);
  border: 1px solid rgba(98, 227, 174, 0.22);
  font-size: 0.9rem;
}

.edu-institution {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  margin-top: 0.3rem;
}

.edu-badge {
  color: var(--accent-3);
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-top: 0.2rem;
  letter-spacing: 0.3px;
}

.highlight-grid,
.skills-grid,
.projects-grid {
  display: grid;
  gap: 1rem;
}

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

.panel-card {
  padding: 1.2rem;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.panel-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 227, 174, 0.2), transparent 70%);
}

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

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

.card,
.project-card {
  padding: 1.25rem;
}

.card ul,
.project-card ul {
  padding-left: 1rem;
  margin: 0;
  color: var(--muted);
}

.project-card p,
.project-card li {
  color: var(--muted);
}

.project-card span,
.project-card strong {
  color: var(--accent);
  font-weight: 700;
}

.page-title {
  margin-bottom: 1rem;
}

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

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .hero,
  .intro-grid,
  .highlight-grid,
  .skills-grid,
  .projects-grid,
  .about-section {
    grid-template-columns: 1fr;
  }

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.profile-card {
  animation: floatIn 700ms ease both;
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
