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

:root {
  --bg: #14161f;
  --bg-2: #1a1e2b;
  --bg-3: #0a0a0a;
  --text: #e8e8e8;
  --text-dim: #a0aec0;
  --text-muted: #718096;
  --accent: #ff8c00;
  --accent-2: #ffd700;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(255,140,0,0.3);
  --grid: rgba(255,140,0,0.04);
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --bg-3: #fafafa;
  --text: #1a1a1a;
  --text-dim: #4a5568;
  --text-muted: #718096;
  --border: rgba(0,0,0,0.08);
  --border-accent: rgba(255,140,0,0.4);
  --grid: rgba(255,140,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 50px 50px;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 60px;
}

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 60px;
  background: rgba(20,22,31,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-accent);
  position: sticky; top: 0; z-index: 1000;
}
[data-theme="light"] header { background: rgba(255,255,255,0.85); }

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}
.logo span { color: var(--accent-2); }
.logo:hover { text-shadow: 0 0 12px var(--accent); }

nav { display: flex; gap: 4px; align-items: center; }

.nav-item {
  position: relative;
  padding: 10px 16px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
  z-index: 100;                     
}
.nav-item:hover, .nav-item.active {
  color: var(--accent);
  background: rgba(255,140,0,0.1);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  margin-top: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 9999;
  isolation: isolate;
}
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  pointer-events: auto;
  background: transparent;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  transition: 0.2s;
}
.dropdown a:hover { color: var(--accent); background: rgba(255,140,0,0.1); }

.nav-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
  font-family: inherit;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: rgba(255,140,0,0.08);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.hero {
  max-width: 1300px;
  margin: auto;
  padding: 80px 60px 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-left, .hero-right { position: relative; z-index: 2; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,140,0,0.1);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  transition: 0.3s;
}
.badge:hover {
  background: rgba(255,140,0,0.2);
  transform: translateY(-2px);
}

.hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 34px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 22px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
}

.quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 15px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  margin-bottom: 30px;
  max-width: 400px;
}

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--accent), #ffaa00);
  color: #14161f;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255,140,0,0.3);
  font-size: 14px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,140,0,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

.photo-placeholder {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(255,140,0,0.15), rgba(255,215,0,0.05)),
    repeating-linear-gradient(45deg, #1a2038 0, #1a2038 12px, #161c30 12px, #161c30 24px);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: rgba(255,140,0,0.7);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 2;
  position: relative;
}
.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--border-accent);
  border-radius: 14px;
}

.section {
  max-width: 1300px;
  margin: auto;
  padding: 70px 60px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  color: var(--text);
}
.section-head h2 span { color: var(--accent); }
.section-head .all {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.section-head .all:hover { text-decoration: underline; }

.work {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  transition: 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.work::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s;
}
.work:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.work:hover::before { transform: scaleX(1); }

.work-thumb {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,215,0,0.05)),
    repeating-linear-gradient(45deg, #1a2038 0, #1a2038 10px, #161c30 10px, #161c30 20px);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,140,0,0.6);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  text-align: center;
  padding: 10px;
  line-height: 1.6;
}
.work-info { display: flex; flex-direction: column; justify-content: center; }
.work-cat {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.work h3 { color: var(--text); font-size: 22px; margin-bottom: 10px; }
.work p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 600px;
}
.work-link {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.story-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.story-img {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, rgba(255,140,0,0.2), rgba(255,215,0,0.05)),
    repeating-linear-gradient(45deg, #1a2038 0, #1a2038 10px, #161c30 10px, #161c30 20px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,140,0,0.6);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
}
.story-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.story-date {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.story-body h3 { color: var(--text); font-size: 17px; margin-bottom: 10px; }
.story-body p { color: var(--text-dim); font-size: 13px; line-height: 1.6; flex: 1; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.skill { padding: 6px 0; }
.skill-head {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.skill-name { color: var(--text); font-weight: 600; }
.skill-percent {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.skill-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  transition: width 2.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(255,140,0,0.5);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  transition: 0.3s;
}
.stat:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.stat-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.now-working {
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.now-working h3 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.now-working .nw-cat {
  font-size: 11px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.now-working p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.nw-progress {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.nw-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nw-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 700;
}

.reviews-wrap {
  position: relative;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.review {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.review:hover { border-color: var(--border-accent); }
.review-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
  font-style: italic;
}
.review-author {
  display: flex; align-items: center; gap: 12px;
}
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #14161f; font-weight: 800; font-size: 16px;
}
.review-name { color: var(--text); font-size: 14px; font-weight: 600; }
.review-role { color: var(--text-muted); font-size: 12px; }

.carousel-controls {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 24px;
}
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}
.carousel-btn:hover {
  background: var(--accent);
  color: #14161f;
  box-shadow: 0 0 20px rgba(255,140,0,0.5);
}
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.faq { max-width: 800px; margin: auto; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: 0.3s;
}
.faq-item.open { border-color: var(--border-accent); }
.faq-q {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  color: var(--accent);
  font-size: 22px;
  transition: 0.3s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 22px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 36px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -34px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  border: 3px solid var(--bg);
}
.tl-year {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.tl-text {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.tl-text b { color: var(--text); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,140,0,0.15), rgba(255,215,0,0.05)),
    repeating-linear-gradient(45deg, #1a2038 0, #1a2038 10px, #161c30 10px, #161c30 20px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,140,0,0.6);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  transition: 0.3s;
  cursor: pointer;
}
.gallery-item:hover {
  border-color: var(--border-accent);
  transform: scale(1.03);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}
.contact-link:hover {
  border-color: var(--border-accent);
  transform: translateX(6px);
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,140,0,0.12);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.25s;
}
.contact-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(60%) sepia(85%) saturate(1500%) hue-rotate(1deg) brightness(102%) contrast(103%);
  transition: 0.25s;
}
.contact-link:hover .contact-icon {
  background: rgba(255,140,0,0.2);
  box-shadow: 0 0 20px rgba(255,140,0,0.3);
}
.contact-link:hover .contact-icon img {
  transform: scale(1.1);
}
.contact-info b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.contact-info span { color: var(--text-muted); font-size: 13px; }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,140,0,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

footer .socials {
  display: flex;
  gap: 22px;
  align-items: center;
}
footer .socials a {
  color: var(--text-dim);
  text-decoration: none;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
footer .socials a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(70%) sepia(50%) saturate(1000%) hue-rotate(360deg) brightness(95%) contrast(95%);
  transition: 0.2s;
}
footer .socials a:hover {
  color: var(--accent);
}
footer .socials a:hover img {
  filter: brightness(0) saturate(100%) invert(60%) sepia(85%) saturate(1500%) hue-rotate(1deg) brightness(102%) contrast(103%);
  transform: scale(1.15);
}

.terminal-wrap {
  max-width: none;
  margin: 0;
}
.terminal {
  background: #0a0a0a;
  border: 2px solid #1f2a1f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.08);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #121212;
  border-bottom: 1px solid #1f2a1f;
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #28c840; }
.term-title {
  color: #6b7a6b;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  margin-left: 6px;
}
.term-stage {
  position: relative;
  overflow: hidden;
  height: 224px;
  padding: 8px 14px;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  line-height: 28px;
  color: #7dff5c;
  text-shadow: 0 0 6px rgba(125, 255, 92, 0.4);
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 2px,
      rgba(0, 255, 0, 0.015) 2px, rgba(0, 255, 0, 0.015) 3px);
}
#term-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #7dff5c;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  line-height: 28px;
  text-shadow: 0 0 6px rgba(125, 255, 92, 0.4);
  caret-color: #7dff5c;
  padding: 0;
  height: 28px;
}
#term-input::placeholder { color: #2a4a2a; text-shadow: none; }
.term-line {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  color: #7dff5c;
  white-space: pre;
  text-shadow: 0 0 6px rgba(125, 255, 92, 0.4);
  line-height: 28px;
  height: 28px;
  overflow: hidden;
}
.term-prompt { color: #4a7a4a; text-shadow: none; }
.term-letter {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 20px;
  line-height: 28px;
  color: #7dff5c;
  text-shadow: 0 0 8px rgba(125, 255, 92, 0.6);
  user-select: none;
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
  white-space: pre;
}
.term-letter.dragging {
  cursor: grabbing;
  text-shadow: 0 0 16px rgba(125, 255, 92, 1);
  z-index: 999;
}
.term-controls {
  padding: 10px 14px;
  background: #121212;
  border-top: 1px solid #1f2a1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.term-status {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #6b7a6b;
  flex: 1;
}
.term-status.ok { color: #7dff5c; }
.term-btns { display: flex; gap: 8px; }
.term-btn {
  padding: 8px 16px;
  background: transparent;
  border: 2px solid #7dff5c;
  color: #7dff5c;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.term-btn:hover {
  background: #7dff5c;
  color: #0a0a0a;
  box-shadow: 0 0 25px rgba(125, 255, 92, 0.6);
}
.term-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.term-btn:disabled:hover { background: transparent; color: #7dff5c; }
.term-btn.reset { border-color: #ff5f57; color: #ff5f57; }
.term-btn.reset:hover {
  background: #ff5f57;
  color: #0a0a0a;
  box-shadow: 0 0 25px rgba(255, 95, 87, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
header, .section, footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  z-index: 0;
}

a, button, input, textarea {
  position: relative;
  z-index: 2;
}

header {
  z-index: 100000 !important;
}

.nav-item {
  z-index: 100000 !important;
}

.dropdown {
  z-index: 100001 !important;
}

.section, .hero, .page-head, .project-hero, .story-hero,
.project-content, .about-hero, main {
  z-index: 1 !important;
}

header {
  position: sticky !important;
  top: 0 !important;
}
.nav-item a,
.nav-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  transition: 0.2s;
}

.nav-item a:hover,
.nav-link:hover {
  color: var(--accent);
}

.nav-item.active,
.nav-item.active > .nav-link,
.nav-item.active > a {
  color: var(--accent);
}
.project-code {
  background: #0a0a0a;
  border: 1px solid #1f2a1f;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #7dff5c;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: 0 0 30px rgba(0,255,0,0.06);
  white-space: pre;
}
.story-content p:first-of-type::first-letter {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: #14161f;
  background: var(--accent);
  float: left;
  line-height: 1;
  padding: 12px 14px;
  margin-right: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255,140,0,0.35);
}
.story-content .ps .motto {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--accent);
  margin-top: 20px;
  line-height: 1.8;
  text-shadow: 0 0 12px rgba(255,140,0,0.3);
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
  transition: 0.3s;
}
.form-status.success {
  color: #4caf50;
}
.form-status.error {
  color: #ff5f57;
}
.form-status.loading {
  color: var(--text-muted);
}
.settings-panel {
  position: fixed;
  top: 72px;
  right: 60px;
  width: 340px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 99999;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.settings-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 1px;
}
.panel-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.panel-close:hover {
  color: var(--accent);
  border-color: var(--border-accent);
}
.section-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 18px 0 10px;
}
.section-label:first-of-type { margin-top: 0; }
.options-grid {
  display: grid;
  gap: 8px;
}
.options-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  font-family: inherit;
}
.opt:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}
.opt.active {
  background: linear-gradient(135deg, var(--accent), #ffaa00);
  color: #14161f;
  border-color: transparent;
  font-weight: 700;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 20px; }

.cursor-1-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px; background: var(--accent);
  border-radius: 50%; pointer-events: none; z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 12px rgba(255,140,0,0.6);
}
.cursor-1-ring {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px; border: 2px solid var(--accent);
  border-radius: 50%; pointer-events: none; z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.25s;
  opacity: 0.6;
}
.cursor-1-dot.hover { width: 16px; height: 16px; background: #ff0000; }
.cursor-1-ring.hover { width: 60px; height: 60px; border-color: #ff0000; opacity: 0.4; }

.cursor-2-arrow {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px; pointer-events: none; z-index: 999999;
  transform: translate(-2px, -2px);
  transition: transform 0.15s;
  filter: drop-shadow(0 0 6px rgba(255,140,0,0.8));
}
.cursor-2-arrow.hover {
  transform: translate(-2px, -2px) scale(1.3);
  filter: drop-shadow(0 0 10px rgba(255,0,0,1));
}

.cursor-3-glow {
  position: fixed; top: 0; left: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  pointer-events: none; z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  filter: blur(2px);
}
.cursor-3-core {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; background: #ffd700;
  border-radius: 50%; pointer-events: none; z-index: 1000000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 15px #ffd700;
}
.cursor-3-glow.hover { width: 50px; height: 50px; background: radial-gradient(circle, #ff0000, transparent 70%); }
.cursor-3-core.hover { width: 10px; height: 10px; background: #fff; }

.cursor-4-cross {
  position: fixed; top: 0; left: 0;
  width: 30px; height: 30px; pointer-events: none; z-index: 999999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s;
}
.cursor-4-cross::before, .cursor-4-cross::after {
  content: ""; position: absolute;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,140,0,0.8);
}
.cursor-4-cross::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.cursor-4-cross::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.cursor-4-center {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; background: #ffd700;
  border-radius: 50%; pointer-events: none; z-index: 1000000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #ffd700;
}
.cursor-4-cross.hover { transform: translate(-50%, -50%) scale(1.4); }
.cursor-4-cross.hover::before, .cursor-4-cross.hover::after { background: #ff0000; }

body.cursor-active,
body.cursor-active a,
body.cursor-active button,
body.cursor-active .work,
body.cursor-active .story-card,
body.cursor-active .stat,
body.cursor-active .review,
body.cursor-active .gallery-item,
body.cursor-active .nav-item,
body.cursor-active .icon-btn,
body.cursor-active .card,
body.cursor-active .opt,
body.cursor-active .faq-q {
  cursor: none;
}

body.no-glow .card-glow,
body.no-glow [data-glow] {
  display: none !important;
}

@media (max-width: 900px) {
  .cursor-1-dot, .cursor-1-ring,
  .cursor-2-arrow,
  .cursor-3-glow, .cursor-3-core,
  .cursor-4-cross, .cursor-4-center {
    display: none;
  }
  body.cursor-active,
  body.cursor-active a,
  body.cursor-active button {
    cursor: auto;
  }
  .settings-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
  }
}
.hero-right img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  display: block;
}

.about-photo {
  aspect-ratio: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-thumb {
  width: 220px;
  height: 220px;
  background: var(--bg);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.work-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.story-img {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.story-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.story-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  display: block;
}

@media (max-width: 800px) {
  .work-thumb {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
  }
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.gallery-item:hover {
  border-color: var(--border-accent);
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  display: block;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--accent);
  object-fit: contain;
}
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255,140,0,0.5);
  animation: preloader-pulse 1.5s ease-in-out infinite;
}

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

@keyframes preloader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.98); }
}

.preloader-bar {
  width: 240px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255,140,0,0.6);
  transition: width 0.1s linear;
}

.preloader-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

@media (max-width: 800px) {
  .preloader-logo { font-size: 20px; }
  .preloader-bar { width: 180px; }
}
::-webkit-scrollbar {
  width: 20px;
  height: 20px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), #cc7000);
  border-radius: 10px;
  border: 3px solid var(--bg-2);
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

::-webkit-scrollbar-corner {
  background: var(--bg-2);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: 0.3s;
  cursor: default;
}

.tool-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.tool-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: rgba(255,140,0,0.1);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  transition: 0.3s;
}

.tool-card:hover .tool-icon {
  background: rgba(255,140,0,0.2);
  box-shadow: 0 0 20px rgba(255,140,0,0.4);
  transform: scale(1.05);
}

.tool-name {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.tool-desc {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .tools-grid { grid-template-columns: 1fr; }
}
.snake-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
}
.snake-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
  order: 2;
}


#snakeCanvas {
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  background: #14161f;
}

.snake-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  order: 1;
}

.snake-btn {
  padding: 8px 20px;
  background: var(--bg);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: 0.2s;
}

.snake-btn:hover {
  background: var(--accent);
  color: #14161f;
}

.snake-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  order: 3;
}
@media (max-width: 900px) {
  .terminal-snake-row {
    grid-template-columns: 1fr;
  }
}
.terminal-snake-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}