/* ===== BubbaJoe.org - Cyberpunk Theme ===== */
:root {
  --neon-green: #00ff88;
  --neon-green-dim: #00cc6a;
  --matrix-green: #00ff41;
  --dark-bg: #0a0e12;
  --darker-bg: #05080b;
  --panel-bg: rgba(10, 14, 18, 0.95);
  --purple-accent: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.4);
  --text-primary: #e4e4e7;
  --text-muted: #71717a;
  --border-glow: rgba(0, 255, 136, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: var(--dark-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: border-color 0.3s;
}

.navbar:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-decoration: none;
  transition: text-shadow 0.3s;
}

.logo:hover {
  text-shadow: 0 0 15px var(--neon-green);
}

.logo .accent {
  color: var(--neon-green);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
}

.nav-link .icon {
  font-size: 0.7rem;
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neon-green);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.headshot-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.headshot-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(40px);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.05); }
}

.headshot {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--neon-green);
  box-shadow: 
    0 0 30px rgba(0, 255, 136, 0.3),
    inset 0 0 30px rgba(0, 255, 136, 0.05);
  transition: all 0.4s;
}

.headshot:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--neon-green);
  text-shadow: 0 0 30px var(--neon-green);
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.terminal-prompt {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.prompt-symbol {
  color: var(--neon-green);
}

.cursor {
  color: var(--neon-green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Matrix rain background - fixed to viewport */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.matrix-rain .rain-column {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  z-index: 1;
}

.matrix-rain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--dark-bg) 80%);
  z-index: 0;
  pointer-events: none;
}

@keyframes matrix-fall {
  to { transform: translateY(100vh); }
}

/* ===== Links Section ===== */
.links-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon-green);
  margin-bottom: 2rem;
  text-shadow: 0 0 10px var(--neon-green);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(10, 14, 18, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.2);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  transition: all 0.3s;
}

.link-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
  transform: translateY(-4px);
}

.link-card .card-icon {
  font-size: 1.5rem;
  color: var(--neon-green);
}

/* ===== Downloads Section ===== */
.downloads-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 14, 18, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.download-item:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.dl-icon {
  color: var(--neon-green);
}

.dl-badge {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.download-placeholder {
  opacity: 0.8;
}

.download-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem;
}

/* ===== Email Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--darker-bg);
  border: 1px solid var(--border-glow);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--neon-green);
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--neon-green);
  margin-bottom: 1.5rem;
}

.email-form .form-group {
  margin-bottom: 1.25rem;
}

.email-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.email-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.email-form input:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.captcha-question {
  color: var(--neon-green);
  font-weight: 600;
}

.captcha-box input {
  flex: 1;
  max-width: 80px;
  text-align: center;
}

.captcha-box input.error {
  border-color: #ef4444;
  animation: shake 0.4s ease;
}

@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 280px;
    background: var(--panel-bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s;
    border-left: 1px solid var(--border-glow);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .hero-title {
    letter-spacing: 0.15em;
  }

  .link-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .link-cards {
    grid-template-columns: 1fr;
  }
}
