/* Theme Variables */
:root,
[data-theme="dark"] {
  --bg: #090d16;
  --surface: #111726;
  --surface-soft: #182235;
  --surface-warm: #1e1b26;
  --section-bg: #0d121f;
  --header-bg: rgba(9, 13, 22, 0.88);
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: #1e293b;
  --line-strong: #334155;
  --accent: #14b8a6;
  --accent-dark: #2dd4bf;
  --accent-blue: #60a5fa;
  --accent-warm: #fb923c;
  --primary-btn-bg: #f8fafc;
  --primary-btn-text: #090d16;
  --primary-btn-hover: #ffffff;
  --dark-surface: #060910;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --media-bg: #0d1424;
}

[data-theme="light"] {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-soft: #eef5f2;
  --surface-warm: #fcf8f4;
  --section-bg: #ffffff;
  --header-bg: rgba(246, 245, 241, 0.92);
  --ink: #141414;
  --muted: #5f6673;
  --line: #deded7;
  --line-strong: #c9c8be;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-blue: #2563eb;
  --accent-warm: #c2410c;
  --primary-btn-bg: #171717;
  --primary-btn-text: #ffffff;
  --primary-btn-hover: #000000;
  --dark-surface: #1e1e24;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.09);
  --shadow-sm: 0 4px 16px rgba(20, 20, 20, 0.05);
  --media-bg: #f7f8f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  transition: background-color 200ms ease, color 200ms ease;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

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

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

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

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-accent {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  margin-left: 6px;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
  color: #fbbf24;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
  color: #475569;
}

/* Hero Section */
.hero {
  padding: 94px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color 200ms ease;
}

.hero-content {
  max-width: 900px;
}

.eyebrow,
.section-kicker,
.project-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kicker-major {
  color: var(--accent);
}

.kicker-fun {
  color: var(--accent-warm);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
}

.hero-subtitle {
  max-width: 740px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-btn-hover);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--accent);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.text-link {
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-dark);
  outline: none;
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 84px 0;
  transition: background-color 200ms ease;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

.section-subtext {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.about-copy {
  max-width: 860px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.65;
}

.education-callout {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  background: var(--surface);
  margin-top: 10px;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.edu-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.edu-details strong {
  font-size: 15px;
  color: var(--ink);
}

.edu-details span {
  font-size: 13px;
  color: var(--muted);
}

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

.skill-group,
.project-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.skill-group {
  padding: 22px;
}

.skill-group h3 {
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 12px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list span,
.language-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

/* Projects Sections */
.projects-section {
  background: var(--section-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.major-work-section {
  background: var(--section-bg);
}

.passion-section {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 200ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.major-card {
  border: 1px solid var(--line);
}

.fun-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.project-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 20px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.feature-list li::marker {
  color: var(--accent);
}

.fun-card .feature-list li::marker {
  color: var(--accent-warm);
}

.project-tags,
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.status-tag,
.tech-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 750;
}

.status-tag {
  border: 1px solid rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-dark);
}

.status-major {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-dark);
}

.status-verified {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
}

.status-local {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.status-live {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.14);
  color: var(--accent-dark);
  font-weight: 800;
}

.status-ai {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

.status-fun {
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.1);
  color: var(--accent-warm);
}

.status-pixel {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.status-multiplayer {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.status-ambient {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
}

.status-zombie {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.tech-stack span {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 11.5px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.project-media {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--media-bg);
  position: relative;
}

.project-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
}

.media-safar {
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.media-safar img {
  height: 188px;
  object-fit: contain;
}

/* Custom Thematic Banners */
.card-banner {
  height: 220px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Banner: LEVI */
.banner-levi {
  background: #080d1a;
  color: #e2e8f0;
  padding: 14px 18px;
  font-family: "JetBrains Mono", monospace;
}

.banner-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #eab308; }
.term-dot.green { background: #22c55e; }

.term-title {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 8px;
}

.banner-terminal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.term-cmd {
  margin: 0;
  color: #38bdf8;
}

.term-cmd span {
  color: #4ade80;
  margin-right: 6px;
}

.term-res {
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

/* Banner: Lurker */
.banner-lurker {
  background: #14161b;
  color: #dbdee1;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banner-discord-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5865f2;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-handle {
  font-size: 13px;
  font-weight: 700;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-badge {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 4px;
}

.user-text {
  margin: 0;
  font-size: 13px;
  color: #dbdee1;
  line-height: 1.4;
}

.chat-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
}

/* Banner: Bloodies vs Baddies */
.banner-bloodies {
  background:
    radial-gradient(circle at center, #78350f 0%, #1c0800 100%),
    linear-gradient(45deg, #1c0a00, #451a03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-game-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
}

.game-icon {
  font-size: 32px;
  letter-spacing: 6px;
  margin-bottom: 2px;
}

.game-title {
  color: #fef08a;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.game-sub {
  color: #fed7aa;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Stats */
.stats-status {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

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

.stat-card {
  min-height: 140px;
  padding: 22px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 44px;
  line-height: 1;
}

.stat-card-wide {
  grid-column: 1 / -1;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Contact */
.contact-section {
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 42px;
}

.contact-subtext {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--accent-blue);
  font-weight: 750;
  font-size: 14.5px;
  overflow-wrap: anywhere;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease, background-color 200ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
  outline: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
}

.back-to-top {
  color: var(--ink);
  font-weight: 700;
}

.back-to-top:hover {
  color: var(--accent);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 62px;
  }

  .nav-links {
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero {
    padding-top: 72px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-subtitle,
  .about-copy {
    font-size: 17px;
  }

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

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-status {
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    padding-bottom: 4px;
  }

  .nav-links a:first-child {
    margin-left: -8px;
  }

  .hero {
    padding: 50px 0 32px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .project-actions {
    width: 100%;
  }

  .project-copy,
  .skill-group,
  .stat-card {
    padding: 20px;
  }

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

  .stat-card strong {
    font-size: 38px;
  }

  .education-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


