/* ================================================================
   NO SIGNAL — Site Styles
   ================================================================ */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #111115;
  --bg-card: #16161b;
  --surface: #1e1e24;
  --border: #2a2a33;
  --text: #e8e6e3;
  --text-dim: #8a8a95;
  --text-muted: #55555f;
  --accent: #b7d86a;
  --accent-dim: #3ba876;
  --accent-glow: rgba(93, 228, 167, 0.15);
  --red: #ff6b6b;
  --yellow: #ffd93d;
  --blue: #6ec1e4;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── Grid background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.08;
  pointer-events: none;
}


/* ================================================================
   NAVIGATION
   ================================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-icon {  width: 36px;  height: 36px;  border-radius: 50%;  object-fit: cover;  border: none;}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-links a::before {
  content: '>';
  opacity: 0;
  margin-right: 0;
  transition: all 0.3s;
  color: var(--accent);
}

.nav-links a:hover::before {
  opacity: 1;
  margin-right: 0.4rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }


/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { position: relative; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-title .accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '_';
  animation: blink 1.2s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.8s;
}


/* ================================================================
   BUTTONS
   ================================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #7aecbd;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ================================================================
   HERO TERMINAL
   ================================================================ */

.hero-terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.6s;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.r { background: var(--red); }
.terminal-dot.y { background: var(--yellow); }
.terminal-dot.g { background: var(--accent); }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  color: var(--text-dim);
}

.terminal-body .prompt   { color: var(--accent); }
.terminal-body .cmd      { color: var(--text); }
.terminal-body .output   { color: var(--text-muted); }
.terminal-body .highlight { color: var(--yellow); }
.terminal-body .info     { color: var(--blue); }


/* ================================================================
   STATS BAR
   ================================================================ */

.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 3rem;
}

.stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.stat { text-align: center; flex: 1; }

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}


/* ================================================================
   SECTIONS (common)
   ================================================================ */

section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header { margin-bottom: 4rem; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 1rem;
}


/* ================================================================
   FEATURED VIDEO
   ================================================================ */

.featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.featured-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}

.featured-video:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(93, 228, 167, 0.08);
}

.featured-video img,
.featured-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 50%, #162029 100%);
}

.featured-video .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.featured-video:hover .play-overlay { opacity: 1; }

.play-btn {
  width: 70px;
  height: 70px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg { width: 24px; height: 24px; margin-left: 4px; }

.featured-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.featured-info .meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.5rem;
}

.featured-info p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(93, 228, 167, 0.2);
}


/* ================================================================
   VIDEO GRID
   ================================================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.video-card:hover .video-card-thumb img { transform: scale(1.05); }

.video-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b2838 0%, #0f1923 100%);
}

.video-card-thumb .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 10, 12, 0.85);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
  border-radius: 3px;
}

.video-card-body { padding: 1.25rem; }

.video-card-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.video-card-body .card-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}



/* ================================================================
   TOPIC CARDS
   ================================================================ */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.topic-card:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s;
}

.topic-card:hover::before { height: 100%; }

.topic-icon { margin-bottom: 1rem; display: block; color: var(--accent); } .topic-icon svg { width: 32px; height: 32px; stroke: var(--accent); }
.topic-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.topic-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.topic-card .ep-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}


/* ================================================================
   ABOUT
   ================================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-portrait-frame {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  opacity: 0.15;
  pointer-events: none;
}

.about-text h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }

.about-text p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-badge {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: all 0.3s;
}

.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ================================================================
   FOOTER
   ================================================================ */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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


/* ================================================================
   DECORATIONS
   ================================================================ */

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb.green {
  width: 400px;
  height: 400px;
  background: var(--accent);
  opacity: 0.04;
}

.glow-orb.blue {
  width: 300px;
  height: 300px;
  background: var(--blue);
  opacity: 0.03;
}


/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


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

@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 3rem; }
  .featured      { grid-template-columns: 1fr; }
  .topics-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; }
  nav            { padding: 1rem 1.5rem; }
  .hero          { padding: 7rem 1.5rem 3rem; }
  section        { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
  .video-grid    { grid-template-columns: 1fr; }
  .nav-links     { display: none; }
  .nav-toggle    { display: block; }
  .stats-inner   { flex-wrap: wrap; gap: 1.5rem; }
  .stat          { flex-basis: 40%; }
  .hero-title    { font-size: 2.8rem; }
  .stats-bar     { padding: 2rem 1.5rem; }
  footer         { padding: 2rem 1.5rem; }
  .footer-inner  { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .topics-grid   { grid-template-columns: 1fr; }
  .hero-actions  { flex-direction: column; }
}


/* Contact Form */
.footer-contact { margin-bottom: 2rem; max-width: 500px; }
.footer-contact h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); margin-bottom: 1rem; }
.footer-contact .form-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-contact input, .footer-contact textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.footer-contact input:focus, .footer-contact textarea:focus { border-color: var(--accent); }
.footer-contact textarea { margin-bottom: 0.75rem; resize: vertical; }
.footer-contact button { cursor: pointer; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 640px) { .footer-contact .form-row { flex-direction: column; } }
