/* ═══════════════════════════════════════════════════════════════
   Super Rad Maker — styles.css
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:            #07090f;
  --bg-2:          #0d1117;
  --bg-3:          #131922;
  --surface:       #1a2332;
  --border:        rgba(0, 229, 255, 0.12);
  --border-hover:  rgba(0, 229, 255, 0.35);

  --cyan:          #00e5ff;
  --cyan-dim:      rgba(0, 229, 255, 0.12);
  --cyan-glow:     0 0 20px rgba(0, 229, 255, 0.35), 0 0 60px rgba(0, 229, 255, 0.12);
  --green:         #39ff14;
  --green-dim:     rgba(57, 255, 20, 0.12);

  --text:          #e8f4f8;
  --text-muted:    #7a9ab0;
  --text-dim:      #3a5a6e;

  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --font-sans:     'Inter', system-ui, sans-serif;

  --nav-h:         72px;
  --container:     1200px;
  --section-pad:   clamp(64px, 10vw, 120px);

  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   24px;
  --r-full: 999px;

  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-cyan:  0 4px 32px rgba(0, 229, 255, 0.18);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── Utilities ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-pad) 0;
}
.section-dark {
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 229, 255, 0.015) 0px, rgba(0, 229, 255, 0.015) 1px,
      transparent 1px, transparent 20px),
    var(--bg-2);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}
.accent-cyan  { color: var(--cyan); }
.accent-green { color: var(--green); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Circuit-node divider */
.circuit-divider {
  overflow: hidden;
  line-height: 0;
}
.circuit-divider svg { width: 100%; display: block; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cyan);
  color: #07090f;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #33edff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid var(--border-hover);
  color: var(--text);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.12);
  transform: translateY(-2px);
}
.btn-secondary svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(7, 9, 15, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45), 0 0 32px rgba(0, 229, 255, 0.12);
  object-fit: cover;
  transition: box-shadow 0.3s;
}
.nav-logo:hover .nav-logo-img {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.70), 0 0 50px rgba(0, 229, 255, 0.25);
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-nav-yt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid #ff0000;
  color: #ff0000;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-nav-yt:hover { background: #ff0000; color: #fff; }
.btn-nav-yt svg  { width: 16px; height: 16px; flex-shrink: 0; }
.btn-nav-discord {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid #5865f2;
  color: #5865f2;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-nav-discord:hover { background: #5865f2; color: #fff; }
.btn-nav-discord svg  { width: 16px; height: 16px; flex-shrink: 0; }
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.btn-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(7, 9, 15, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--cyan); }
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7,9,15,0.88) 0%, rgba(7,9,15,0.52) 55%, rgba(7,9,15,0.72) 100%),
    linear-gradient(to bottom, rgba(7,9,15,0.1) 0%, rgba(7,9,15,0.65) 80%, rgba(7,9,15,1) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px,
    transparent 1px, transparent 3px
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero-content { max-width: 680px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero-eyebrow::after {
  content: '_';
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 .accent-cyan {
  text-shadow: 0 0 30px rgba(0,229,255,0.6), 0 0 80px rgba(0,229,255,0.2);
}
.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-circuit-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%, var(--cyan) 25%, var(--green) 50%, var(--cyan) 75%, transparent 100%
  );
  animation: circuit-scan 3s ease-in-out infinite alternate;
}
@keyframes circuit-scan { from { opacity: 0.3; } to { opacity: 0.9; } }

/* ── About ───────────────────────────────────────────────────── */
.about-section {
  padding: var(--section-pad) 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}
.about-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about-inner > p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 52px;
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--cyan-glow);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── Projects ────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.project-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
}
.project-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.8) brightness(0.88);
}
.project-card:hover .project-img img {
  transform: scale(1.06);
  filter: saturate(1.0) brightness(1.0);
}
.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 229, 255, 0.07);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.project-card:hover .project-img-overlay { opacity: 1; }
.project-view-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  background: rgba(7, 9, 15, 0.82);
  padding: 8px 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--cyan);
}
.project-body { padding: 20px 22px; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.project-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.project-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Videos ──────────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.video-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.video-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.75);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: #ff0000;
}
.video-play-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  margin-left: 4px;
}
.video-info { padding: 14px 16px; }
.video-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.videos-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Community ───────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.community-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 52px) clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.community-card--discord:hover {
  border-color: #5865f2;
  transform: translateY(-4px);
  box-shadow: 0 4px 32px rgba(88, 101, 242, 0.15);
}
.community-card--youtube:hover {
  border-color: #ff0000;
  transform: translateY(-4px);
  box-shadow: 0 4px 32px rgba(255, 0, 0, 0.15);
}
.community-icon svg { width: 48px; height: 48px; }
.community-card h3 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.community-card > p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}
.btn-community {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-community svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-discord-big { background: #5865f2; color: #fff; }
.btn-discord-big:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.40);
}
.btn-yt-big { background: #ff0000; color: #fff; }
.btn-yt-big:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.35);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  object-fit: cover;
}
.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-brand > p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.footer-byline { color: var(--green) !important; opacity: 0.55; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .nav-actions .btn-nav-yt,
  .nav-actions .btn-nav-discord { display: none; }
}

@media (max-width: 640px) {
  .nav-links  { display: none; }
  .btn-hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .videos-grid   { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .stats-row { gap: 28px; }
  .stat-num  { font-size: 2.2rem; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-circuit-line  { animation: none; }
  .hero-eyebrow::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
