:root {
  --bg: #0f172a;
  --bg-secondary: #111827;
  --card: #1e293b;
  --accent: #22c55e;
  --accent-soft: #bef264;
  --highlight: #facc15;
  --success: #22c55e;
  --danger: #ef4444;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --border: #334155;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.25);
  --radius: 24px;
  --max-width: 1200px;
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg-secondary: #e2e8f0;
  --card: #ffffff;
  --accent: #16a34a;
  --accent-soft: #bbf7d0;
  --highlight: #f59e0b;
  --success: #16a34a;
  --danger: #dc2626;
  --text: #0f172a;
  --text-secondary: #475569;
  --border: #cbd5e1;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.08), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 90%);
  pointer-events: none;
  z-index: -1;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-tag,
.eyebrow {
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-heading h2,
.hero-copy h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4rem);
}

.section-heading p,
.hero-description,
.hero-highlights,
.about-content p,
.achievement-card p,
.contact-info p {
  color: var(--text-secondary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 45px rgba(2, 6, 23, 0.25);
}

:root[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.5);
}

:root[data-theme="light"] .site-header.scrolled {
  background: rgba(248, 250, 252, 0.96);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 999px;
}

.menu-toggle,
.theme-toggle,
.back-to-top {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover,
.theme-toggle:hover,
.back-to-top:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.theme-toggle {
  width: 46px;
  height: 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.92rem 1.35rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: white;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.22);
  }

  .btn-secondary,
  .btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
  }

  .diff-added,
  .diff-removed,
  .diff-changed {
    border-radius: 18px;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
  }

  .diff-added {
    background: rgba(34, 197, 94, 0.12);
    border-left: 4px solid #22c55e;
  }

  .diff-removed {
    background: rgba(239, 68, 68, 0.12);
    border-left: 4px solid #ef4444;
  }

  .diff-changed {
    background: rgba(250, 204, 21, 0.12);
    border-left: 4px solid #facc15;
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.typing-line {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.typing-text {
  color: var(--highlight);
  font-weight: 600;
}

.hero-description {
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.hero-highlights li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.visual-card,
.about-card {
  position: relative;
    background: linear-gradient(145deg, rgba(34,197,94,0.12), rgba(250,204,21,0.08));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
  }

  .visual-card::before,
  .about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(34,197,94,0.18), transparent 40%, rgba(239,68,68,0.12));
.visual-card img,
.about-card img {
  width: 100%;
  border-radius: 24px;
}

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

.about-content,
.contact-info,
.contact-form,
.achievement-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.about-content h3,
.contact-info h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-list span {
  color: var(--text-secondary);
}

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

.stats-grid article {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.stats-grid h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  color: var(--highlight);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--text-secondary);
}

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

.achievement-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.achievement-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(168,85,247,0.16);
  font-size: 1.35rem;
}

.achievement-card a {
  margin-top: auto;
  color: var(--highlight);
  font-weight: 600;
}

.contact-info ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--text-secondary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label {
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--text);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.form-message {
  min-height: 1.5rem;
  margin-top: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--text-secondary);
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  font-size: 1.2rem;
  z-index: 1000;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  z-index: 1100;
}

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

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