/* ============================================================
   DOUZ — dev & gamer  ·  pro redesign
   ============================================================ */
:root {
  --bg: #0a0a0f; --surface: #0f0f17; --surface2: #14141e;
  --border: rgba(255,255,255,0.05); --border2: rgba(255,255,255,0.08);
  --accent: #a3ff3c; --accent-dim: #5a8f1e; --accent-glow: rgba(163,255,60,0.12);
  --txt: #e2e4ed; --txt2: #8a8d9c; --txt3: #52556a;
  --neon: linear-gradient(118deg, #9ae600, #c7ff5a 45%, #4fd861);
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --orbit: "Orbitron", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: var(--font); font-size: 11px; background: var(--bg); color: var(--txt);
  line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(163,255,60,0.22); color: #0a0a0f; }
::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(163,255,60,0.1); border-radius: 10px; }
a { color: var(--accent); text-decoration: none; }
#bg { position: fixed; inset: 0; z-index: -1; opacity: .5; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; height: 44px;
  backdrop-filter: blur(16px); background: rgba(10,10,15,0.78);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; color: var(--txt); }
.logo-img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 16px; }
.nav-links a {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--txt3); transition: color .2s; padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--accent); border-color: var(--accent); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  color: var(--accent); padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(163,255,60,0.18); background: var(--accent-glow);
}
.blip {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 5px var(--accent); animation: blip 2s infinite;
}
@keyframes blip {
  0%   { box-shadow: 0 0 5px var(--accent), 0 0 0 0 rgba(163,255,60,.4); }
  70%  { box-shadow: 0 0 5px var(--accent), 0 0 0 5px rgba(163,255,60,0); }
  100% { box-shadow: 0 0 5px var(--accent), 0 0 0 0 rgba(163,255,60,0); }
}

/* ============ HERO ============ */
.hero { padding: 100px 24px 50px; max-width: 560px; margin: 0 auto; text-align: center; }

/* Terminal */
.terminal {
  background: #0c0c14; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; overflow: hidden; text-align: left;
  margin-bottom: 30px; box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.term-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px; background: #080810;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.term-dot { width: 7px; height: 7px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { font-family: var(--mono); font-size: 10px; color: var(--txt3); margin-left: 5px; }
.term-body { padding: 12px 14px 14px; }
.term-line { font-family: var(--mono); font-size: 10.5px; color: var(--txt2); margin-bottom: 2px; }
.prompt { color: var(--accent); margin-right: 5px; }
.term-out { font-family: var(--mono); font-size: 11px; color: var(--txt); margin-bottom: 9px; padding-left: 16px; }
.cursor { display: inline-block; color: var(--accent); animation: cursorBlink 1s step-end infinite; }
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Stats */
.hero-stats { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.stat {
  padding: 10px 18px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 80px;
}
.stat-num {
  font-family: var(--orbit); font-weight: 800; font-size: 1.025rem;
  background: var(--neon); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.stat span:last-child {
  font-family: var(--mono); font-size: 8px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--txt3);
}

/* ============ SECTIONS ============ */
.section { padding: 60px 24px; max-width: 800px; margin: 0 auto; }

.section-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.section-num {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent); opacity: .8;
}
.section-title {
  font-family: var(--orbit); font-weight: 700; font-size: .975rem;
  color: var(--txt); letter-spacing: .3px;
}
.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(163,255,60,0.2), transparent);
}

.section-desc {
  font-size: 11px; color: var(--txt2); line-height: 1.6;
  margin-bottom: 24px; max-width: 640px;
}
.section-desc strong { color: var(--accent); font-weight: 600; }

/* ============ GAMES ============ */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 8px; }
.game-card {
  padding: 14px 12px; border-radius: 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.game-card::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--accent); transition: width .3s;
}
.game-card:hover::after { width: 60%; }
.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(163,255,60,0.25);
  box-shadow: 0 8px 24px rgba(163,255,60,0.04);
}
.game-icon { font-size: 20px; display: block; margin-bottom: 6px; }
.game-name { font-family: var(--orbit); font-weight: 700; font-size: .775rem; margin-bottom: 2px; }
.game-full {
  display: block; font-family: var(--mono); font-size: 7.5px; font-weight: 500;
  color: var(--accent-dim); text-transform: uppercase; letter-spacing: .03em;
  margin-bottom: 5px;
}
.game-desc { color: var(--txt2); font-size: 10px; line-height: 1.4; }

/* ============ PROJECTS ============ */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.project-card {
  display: flex; flex-direction: column; padding: 16px;
  border-radius: 10px; text-decoration: none; color: var(--txt);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .4s;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(163,255,60,0.3);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), 0 0 0 1px rgba(163,255,60,0.06);
}
.project-card.is-soon { opacity: .45; pointer-events: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  font-size: 13px; background: var(--accent-glow); border: 1px solid rgba(163,255,60,0.1);
}
.card-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 8px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.card-badge.live {
  color: var(--accent); background: var(--accent-glow);
  border: 1px solid rgba(163,255,60,0.15);
}
.card-badge.soon {
  color: var(--txt3); background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
}
.card-name { font-family: var(--orbit); font-weight: 700; font-size: .825rem; margin-bottom: 2px; }
.card-tag {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  color: var(--accent-dim); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 7px;
}
.card-desc { color: var(--txt2); font-size: 11px; flex: 1; line-height: 1.5; }
.card-pills { display: flex; flex-wrap: wrap; gap: 3px; margin: 10px 0 12px; }
.card-pill {
  font-family: var(--mono); font-size: 9px; color: var(--txt3);
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.03);
  transition: border-color .2s, color .2s;
}
.project-card:hover .card-pill { border-color: rgba(163,255,60,0.12); color: var(--txt2); }
.card-link {
  font-family: var(--mono); font-weight: 700; font-size: 10.5px; color: var(--accent);
  align-self: flex-start; transition: gap .2s;
}
.card-link .arrow { display: inline-block; transition: transform .2s; }
.project-card:hover .card-link .arrow { transform: translateX(4px); }
.card-link.disabled { color: var(--txt3); }

/* ============ CONTACT ============ */
.contact-card {
  max-width: 360px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
}
.contact-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 7px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.03);
}
.discord-icon { width: 12px; height: 12px; color: #5865F2; flex-shrink: 0; }
.contact-label { font-family: var(--mono); font-size: 10px; color: var(--txt3); }
.contact-item code {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent);
  background: rgba(163,255,60,0.06); padding: 2px 6px; border-radius: 4px;
}
.btn-copy {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 8px; border-radius: 4px; cursor: pointer;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--accent); background: var(--accent-glow);
  border: 1px solid rgba(163,255,60,0.15);
  transition: background .2s, border-color .2s;
}
.btn-copy:hover { background: rgba(163,255,60,0.18); border-color: var(--accent); }
.contact-footnote {
  text-align: center; margin-top: 10px;
  font-family: var(--mono); font-size: 9.5px; color: var(--txt3);
}

/* ============ FOOTER ============ */
footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 800px; margin: 20px auto 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; color: var(--txt3);
}
footer a { color: var(--txt3); transition: color .2s; }
footer a:hover { color: var(--accent); }

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 768px) {
  .hero { padding: 90px 20px 40px; max-width: 100%; }
  .section { padding: 48px 20px; max-width: 100%; }
  .terminal { max-width: 100%; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .contact-card { max-width: 100%; }
  .section-desc { max-width: 100%; }
}

/* Mobile */
@media (max-width: 480px) {
  body { font-size: 13px; }
  .nav { padding: 0 14px; height: 40px; }
  .logo-img { height: 18px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 11px; }
  .badge { font-size: 10px; padding: 2px 8px; }
  .badge span:last-child { display: inline; }
  .blip { width: 5px; height: 5px; }

  .hero { padding: 80px 14px 36px; }
  .terminal { border-radius: 6px; margin-bottom: 24px; }
  .term-line { font-size: 12px; }
  .term-out { font-size: 13px; }
  .term-title { font-size: 11px; }
  .term-dot { width: 8px; height: 8px; }

  .stat { min-width: 70px; padding: 10px 14px; }
  .stat-num { font-size: 1.125rem; }
  .stat span:last-child { font-size: 9px; }

  .section { padding: 40px 14px; }
  .section-title { font-size: 1.075rem; }
  .section-num { font-size: 12px; }
  .section-desc { font-size: 12px; line-height: 1.6; }
  .section-header { margin-bottom: 16px; }

  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .game-card { padding: 14px 10px; }
  .game-icon { font-size: 22px; }
  .game-name { font-size: .825rem; }
  .game-full { font-size: 8px; }
  .game-desc { font-size: 11px; }

  .project-grid { grid-template-columns: 1fr; }
  .project-card { padding: 14px; }
  .card-name { font-size: .875rem; }
  .card-tag { font-size: 9.5px; }
  .card-desc { font-size: 12px; }
  .card-pill { font-size: 9.5px; }
  .card-link { font-size: 11px; }
  .card-badge { font-size: 9px; }

  .contact-card { padding: 16px; }
  .contact-item { flex-wrap: wrap; gap: 6px; padding: 10px; }
  .contact-label { font-size: 11px; }
  .contact-item code { font-size: 14px; }
  .btn-copy { font-size: 10px; padding: 4px 8px; }
  .contact-footnote { font-size: 10px; }
  .discord-icon { width: 14px; height: 14px; }

  footer { flex-direction: column; gap: 8px; text-align: center; padding: 14px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .01ms !important; }
}
