/* ============================================
   ROOT & VARIABLES
   ============================================ */
:root {
  --green-neon: #39ff14;
  --green-mid: #00c853;
  --green-deep: #1b5e20;
  --green-muted: #4caf50;
  --green-glow: rgba(57, 255, 20, 0.18);
  --green-glow-strong: rgba(57, 255, 20, 0.35);
  --bg-dark: #050f07;
  --bg-mid: #0a1a0c;
  --bg-card: #0d1f10;
  --bg-card-alt: #111e13;
  --text-primary: #d4f5da;
  --text-muted: #7da882;
  --text-dim: #4a7050;
  --border-glow: 1px solid rgba(57, 255, 20, 0.2);
  --border-bright: 1px solid rgba(57, 255, 20, 0.5);
  --font-head: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --radius: 4px;
  --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green-neon); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-mid); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 0.5rem;
  color: var(--green-neon);
}

p { margin-bottom: 1rem; color: var(--text-primary); }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 15, 7, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-glow);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.nav-logo:hover { color: var(--green-neon); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition), text-shadow var(--transition);
}

.nav-links a:hover {
  color: var(--green-neon);
  text-shadow: 0 0 8px var(--green-neon);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--green-deep);
  color: var(--green-neon);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* ============================================
   ACCENT & UTILITY
   ============================================ */
.accent { color: var(--green-neon); }

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--green-neon);
  color: var(--green-neon);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-neon);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--green-glow-strong);
}

.btn-primary:hover::before { transform: translateX(0); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green-muted);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-tag.center { text-align: center; }

.center { text-align: center; }

.section-intro {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.edit-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border-left: 2px solid var(--green-deep);
  padding-left: 0.75rem;
  margin-top: 1rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: saturate(1.3) brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 15, 7, 0.75) 0%,
    rgba(0, 40, 10, 0.6) 50%,
    rgba(5, 15, 7, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-neon);
  letter-spacing: 4px;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 10px var(--green-neon);
  animation: blink 2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.4), 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 0.6rem;
  letter-spacing: 3px;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  color: var(--green-muted);
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-neon), transparent);
  z-index: 3;
  animation: scan 4s linear infinite;
  opacity: 0.4;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 6rem 1.5rem;
}

.section-dark {
  background: var(--bg-mid);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* SPLIT LAYOUT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-image {
  position: relative;
}

.img-rounded {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
  border: var(--border-glow);
  filter: saturate(1.1);
  transition: filter var(--transition);
}

.img-rounded:hover { filter: saturate(1.4) brightness(1.05); }

.img-border-glow {
  position: absolute;
  inset: -4px;
  border-radius: 6px;
  border: 1px solid var(--green-neon);
  pointer-events: none;
  opacity: 0.2;
  box-shadow: 0 0 20px var(--green-glow);
}

/* ============================================
   ABOUT
   ============================================ */
.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.bio-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green-neon);
  border: 1px solid var(--green-neon);
  padding: 0.2rem 0.6rem;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: all var(--transition);
}

.bio-tag:hover {
  background: var(--green-glow);
  opacity: 1;
}

/* ============================================
   PROJECTS
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: var(--green-neon);
  box-shadow: 0 0 20px var(--green-glow);
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) brightness(0.9);
  transition: transform var(--transition);
}

.project-card:hover .project-img-wrap img { transform: scale(1.04); }

.project-status {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.project-status.live {
  background: var(--green-neon);
  color: var(--bg-dark);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px var(--green-neon); }
  50% { box-shadow: 0 0 15px var(--green-neon); }
}

.project-body {
  padding: 2rem;
}

.project-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  margin: 1.2rem 0;
  padding: 1rem;
  background: rgba(57, 255, 20, 0.04);
  border: var(--border-glow);
  border-radius: var(--radius);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green-neon);
}

.project-tags, .recipe-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.ptag, .rtag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
}

.ptag {
  background: rgba(57, 255, 20, 0.08);
  color: var(--green-muted);
  border: 1px solid var(--green-deep);
}

.rtag {
  background: rgba(0, 200, 83, 0.1);
  color: var(--green-mid);
  border: 1px solid rgba(0, 200, 83, 0.25);
}

/* ============================================
   WARDROBE
   ============================================ */
.wardrobe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wardrobe-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.wardrobe-item:hover { border-color: var(--green-muted); }

.wardrobe-icon {
  color: var(--green-neon);
  font-size: 0.7rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.wardrobe-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green-neon);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.wardrobe-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   RECIPES
   ============================================ */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.recipe-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.recipe-card:hover {
  border-color: var(--green-muted);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

.recipe-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(1.2);
}

.recipe-body {
  padding: 1.5rem;
}

.recipe-body.no-img {
  padding-top: 1.5rem;
}

.recipe-body h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.recipe-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.recipe-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ============================================
   GAMES
   ============================================ */
.games-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.games-img-col {
  position: relative;
  top: 0;
}

.games-img-col img {
  height: 500px;
  object-fit: cover;
}

.games-list-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.game-item {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.game-item:hover {
  border-color: var(--green-muted);
  transform: translateX(4px);
}

.game-platform {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: var(--green-mid);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.game-item h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.game-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.game-rating { display: flex; gap: 0.1rem; }

.star {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.star.filled { color: var(--green-neon); text-shadow: 0 0 4px var(--green-neon); }

/* ============================================
   HYPERFIXATION
   ============================================ */
.hyper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hyper-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hyper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-neon), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.hyper-card:hover {
  border-color: var(--green-neon);
  box-shadow: 0 0 20px var(--green-glow);
}

.hyper-card:hover::before { opacity: 1; }

.hyper-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(57, 255, 20, 0.08);
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  line-height: 1;
  pointer-events: none;
}

.hyper-card h3 {
  font-size: 1rem;
  color: var(--green-neon);
  margin-bottom: 0.6rem;
}

.hyper-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hyper-intensity {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.intensity-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  white-space: nowrap;
}

.intensity-bar {
  flex: 1;
  height: 3px;
  background: rgba(57, 255, 20, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.intensity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--green-neon));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--green-glow-strong);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-inner {
  max-width: 700px;
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-neon);
  box-shadow: 0 0 12px var(--green-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  border-top: var(--border-glow);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green-neon); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .split, .split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .img-rounded { height: 320px; }

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-img-wrap img { height: 220px; }

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

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

  .games-layout {
    grid-template-columns: 1fr;
  }

  .games-img-col img { height: 280px; }

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

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

@media (max-width: 680px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(5, 15, 7, 0.98);
    border-bottom: var(--border-glow);
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .section { padding: 4rem 1rem; }

  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-sub { font-size: 0.7rem; letter-spacing: 2px; }
  .hero-desc { font-size: 0.95rem; }

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

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

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

  .footer-links { gap: 1rem; }
}
