:root {
  --bg: #050505;
  --text: #e0e0e0;
  --neon-green: #00ff41;
  --neon-red: #ff003c;
  --neon-orange: #ff5e00;
  --terminal-bg: #111;
  --font-body: 'Share Tech Mono', monospace;
  --font-heading: 'Orbitron', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: url('assets/stars_bg.png') repeat fixed;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.scene {
  min-height: auto; /* Remove forced gaps */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 5rem 2rem; /* Standard predictable spacing */
}

/* HEADER (ASTROBUZZ TERMINAL VIBE) */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 2px dashed var(--neon-orange);
  z-index: 1000;
  font-family: var(--font-body);
}

.header-logo {
  font-size: 1.5rem; font-weight: bold; color: var(--neon-red); 
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading);
  text-shadow: 0 0 10px var(--neon-red);
}
.solana-badge {
  background: transparent; border: 1px solid var(--neon-green);
  color: var(--neon-green); padding: 0.1rem 0.4rem; font-size: 0.9rem; font-family: var(--font-body);
}

.header-nav { display: flex; gap: 2rem; }
.header-nav a { 
  text-decoration: none; color: var(--neon-green); font-size: 1.1rem; transition: color 0.3s;
}
.header-nav a::before {
  content: '>'; margin-right: 5px; opacity: 0.5;
}
.header-nav a:hover { color: #fff; text-shadow: 0 0 10px #fff; }
.header-nav a:hover::before { opacity: 1; color: var(--neon-orange); }

.header-actions { display: flex; gap: 1rem; align-items: center; }
.ca-box {
  background: var(--terminal-bg); border: 1px solid #444; padding: 0.5rem 1rem; 
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer; 
  font-family: var(--font-body); transition: all 0.3s; color: var(--text);
}
.ca-box:hover { border-color: var(--neon-orange); background: #222; }
.ca-text { font-size: 0.9rem; color: #fff; margin-right: 0.5rem; }
.copy-icon { font-size: 0.9rem; color: var(--neon-green); font-weight: bold; }

.header-btn {
  background: transparent; border: 2px solid var(--neon-red); color: var(--neon-red); 
  padding: 0.5rem 1.5rem; font-size: 1rem; font-family: var(--font-heading);
  cursor: pointer; text-decoration: none; font-weight: bold; text-transform: uppercase;
  transition: all 0.2s;
  box-shadow: 0 0 5px var(--neon-red) inset, 0 0 5px var(--neon-red);
}
.header-btn:hover { background: var(--neon-red); color: #000; box-shadow: 0 0 20px var(--neon-red); transform: scale(1.05); }

/* HERO SECTION */
#hero {
  text-align: center;
  overflow: hidden;
  min-height: 100vh; /* Keep the hero full screen */
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('assets/hero_bg.png') center/cover no-repeat;
  z-index: -2;
  animation: shake 5s infinite linear;
}
.hero-character {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 45vw;
  max-width: 600px;
  min-width: 250px;
  mix-blend-mode: screen; /* Best for our native pure-black generation */
  -webkit-mask-image: radial-gradient(ellipse, black 50%, transparent 100%);
  mask-image: radial-gradient(ellipse, black 50%, transparent 100%);
  z-index: -1;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-52%) rotate(-2deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 50vw; /* Keeps strictly to the left half */
  max-width: 600px;
  padding-left: 5%;
}
@keyframes shake {
  0% { transform: translate(0, 0) scale(1.05); }
  25% { transform: translate(2px, -2px) scale(1.05); }
  50% { transform: translate(-2px, 2px) scale(1.05); }
  75% { transform: translate(2px, 2px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1.05); }
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-orange);
  margin-bottom: 1rem;
}
/* Glitch effect on h1 */
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
}
.glitch-text::before {
  left: 2px; text-shadow: -2px 0 var(--neon-green); animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-text::after {
  left: -2px; text-shadow: -2px 0 var(--neon-red); animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 50% 0); }
  80% { clip-path: inset(90% 0 5% 0); }
  100% { clip-path: inset(40% 0 30% 0); }
}

.mission-status {
  font-size: 1.5rem; margin-bottom: 2rem; background: rgba(0,0,0,0.6); padding: 1rem; border-left: 4px solid var(--neon-orange);
}
.warning { color: var(--neon-orange); font-weight: bold; }

.impact-btn {
  background: var(--neon-red); border: none; color: #fff;
  padding: 1rem 3rem; font-size: 1.5rem; font-family: var(--font-heading);
  cursor: pointer; text-transform: uppercase; letter-spacing: 2px;
  box-shadow: 0 0 15px var(--neon-red); transition: 0.2s;
}
.impact-btn:hover { background: #fff; color: var(--neon-red); box-shadow: 0 0 25px #fff; transform: scale(1.05); }

/* MISSION CONTROL */
#mission-control { background: rgba(0, 0, 0, 0.7); min-height: auto; }
.terminal-container {
  width: 90%; max-width: 600px; background: var(--terminal-bg); border: 2px solid #333;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.terminal-header { background: #333; padding: 0.5rem; font-size: 0.9rem; }
.terminal-body { padding: 2rem; font-size: 1.5rem; }
.green { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); }
.blink-red { color: var(--neon-red); font-weight: bold; animation: blink 0.5s infinite; text-shadow: 0 0 10px var(--neon-red); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.flashing-warning { background: var(--neon-red); color: #fff; padding: 1rem; text-align: center; text-transform: uppercase; animation: pulse 1s infinite alternate; }
.flashing-warning h2 { font-family: var(--font-heading); margin: 0; }
@keyframes pulse { from { background: #80001e; } to { background: var(--neon-red); } }

/* THE REALIZATION */
#realization { background: radial-gradient(circle, rgba(34,34,34,0.8) 0%, rgba(0,0,0,0.8) 80%); min-height: 50vh; }
.realization-content h2 { font-family: var(--font-heading); font-size: 3rem; opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1s; margin-bottom: 2rem; text-align: center; }
.realization-content h2.visible { opacity: 1; transform: translateY(0); }
.impact-text { color: var(--neon-orange); font-size: 4rem !important; text-shadow: 0 0 20px var(--neon-orange); }

/* TRAJECTORY */
#trajectory { background: rgba(5, 5, 5, 0.7); }
.chart-container { width: 90%; max-width: 800px; text-align: center; }
.chart-container h2 { font-family: var(--font-heading); color: var(--neon-orange); margin-bottom: 2rem; font-size: 2rem; }
.chart-box { position: relative; height: 300px; border-left: 2px solid #444; border-bottom: 2px solid #444; margin-bottom: 2rem; overflow: hidden; }
/* Fake rising line */
.line-chart {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top right, transparent 49%, var(--neon-red) 50%, var(--neon-red) 51%, transparent 52%);
  transform-origin: bottom left; transform: scaleX(0); transition: transform 2s ease-out;
}
.chart-box.active .line-chart { transform: scaleX(1); }
.pulsing-ship {
  font-size: 3rem; position: absolute; bottom: -20px; left: -20px;
  transition: all 2s ease-out; opacity: 0;
}
.chart-box.active .pulsing-ship {
  bottom: 80%; left: 90%; opacity: 1; animation: fireShake 0.1s infinite;
}
@keyframes fireShake { 0% { transform: translate(0,0); } 50% { transform: translate(3px,-3px); } 100% { transform: translate(0,0); } }

.telemetry { list-style: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.telemetry li { background: #111; padding: 1rem; border: 1px solid #333; flex: 1; min-width: 150px; font-size: 1.2rem; }
.critical { color: var(--neon-red); font-weight: bold; animation: blink 1s infinite; }

/* TOKENOMICS */
#tokenomics { background: rgba(10, 10, 10, 0.8); border-top: 2px dashed #222; border-bottom: 2px dashed #222; width: 100%; }
#tokenomics h2 { font-family: var(--font-heading); color: var(--neon-green); margin-bottom: 3rem; font-size: 2.5rem; text-shadow: 0 0 10px var(--neon-green); }
.stats-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; width: 90%; max-width: 900px; }
.stat-box { background: #000; border: 2px solid var(--neon-green); padding: 2rem; flex: 1; min-width: 250px; transition: transform 0.3s; text-align: center; }
.stat-box:hover { transform: translateY(-5px); border-color: #fff; box-shadow: 0 0 15px var(--neon-green); }
.stat-box h3 { font-family: var(--font-heading); color: #fff; margin-bottom: 1rem; letter-spacing: 2px; }
.stat-box p { font-size: 1.5rem; font-weight: bold; color: var(--neon-green); }
.subtext { font-size: 0.8rem; color: #666; display: block; margin-top: 0.5rem; }

/* MEMES */
#memes { background: rgba(10, 10, 10, 0.8); }
#memes h2 { font-family: var(--font-heading); font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: #fff; }
.meme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; width: 90%; max-width: 1000px; }
.meme-card { background: #1a1a1a; padding: 2rem; border-left: 4px solid var(--neon-green); box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: transform 0.3s; cursor: pointer; }
.meme-card:hover { transform: translateY(-10px); border-left-color: var(--neon-orange); }
.speaker { font-weight: bold; color: var(--neon-green); margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; }
.quote { font-size: 1.2rem; font-style: italic; }
.action { color: var(--neon-red); font-weight: bold; font-style: normal; display: block; margin-top: 0.5rem; }

/* GALLERY */
#gallery { background: rgba(0, 0, 0, 0.8); width: 100%; border-bottom: 2px dashed #222; }
#gallery h2 { font-family: var(--font-heading); font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: #fff; }
.gallery-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; width: 90%; max-width: 1000px; }
.gallery-item { position: relative; border: 2px solid #333; overflow: hidden; flex: 1; min-width: 300px; transition: border-color 0.3s; }
.gallery-item:hover { border-color: var(--neon-orange); }
.gallery-item img { width: 100%; height: auto; display: block; opacity: 0.7; transition: opacity 0.3s, transform 0.5s; }
.gallery-item:hover img { opacity: 1; transform: scale(1.05); }
.overlay-text { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.8); color: var(--neon-red); font-family: var(--font-body); padding: 0.5rem; text-align: center; font-weight: bold; border-top: 1px dashed var(--neon-red); }

/* LOGS */
#logs { background: rgba(0, 0, 0, 0.8); }
#logs h2 { font-family: var(--font-heading); color: #555; margin-bottom: 3rem; font-size: 2.5rem; }
.timeline { width: 90%; max-width: 600px; border-left: 2px solid #333; padding-left: 2rem; position: relative; }
.log-entry { margin-bottom: 2rem; position: relative; opacity: 0.5; transition: opacity 0.5s, transform 0.5s; transform: translateX(-20px); }
.log-entry.active { opacity: 1; transform: translateX(0); }
.log-entry::before {
  content: attr(data-point); position: absolute; left: -6rem; font-weight: bold; color: var(--neon-green); top: 0;
}
.log-entry::after {
  content: ''; position: absolute; left: -2.35rem; top: 0.3rem; width: 10px; height: 10px; background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 10px var(--neon-green);
}
.log-entry.final { color: var(--neon-red); font-weight: bold; font-size: 1.5rem; }
.log-entry.final::before { color: var(--neon-red); }
.log-entry.final::after { background: var(--neon-red); box-shadow: 0 0 15px var(--neon-red); }

/* FINAL CTA */
#final-cta { text-align: center; background: radial-gradient(circle, rgba(51,0,0,0.8) 0%, rgba(0,0,0,0.8) 100%); min-height: auto; }
.hazard-symbol { font-size: 5rem; color: var(--neon-orange); margin-bottom: 1rem; animation: spin 4s linear infinite; text-shadow: 0 0 20px var(--neon-orange); line-height: 1; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.brace-text { font-family: var(--font-heading); font-size: 4vw; color: var(--neon-red); margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 5px; text-shadow: 0 0 20px var(--neon-red); animation: shakeFast 0.1s infinite; }
@keyframes shakeFast { 0% { transform: translate(1px, 1px) rotate(0deg); } 100% { transform: translate(-1px, -1px) rotate(0deg); } }
.final-warning { font-size: 1.2rem; color: #fff; margin-bottom: 3rem; background: rgba(255,0,0,0.2); border: 1px dashed var(--neon-red); padding: 1rem; display: inline-block; max-width: 600px; text-shadow: 0 0 5px var(--neon-red); }

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  text-decoration: none; padding: 1rem 2rem; font-family: var(--font-heading); font-size: 1.5rem;
  border: 2px solid #fff; color: #fff; background: transparent; transition: all 0.3s;
}
.cta-btn.buy { background: var(--neon-red); border-color: var(--neon-red); box-shadow: 0 0 15px var(--neon-red); }
.cta-btn.buy:hover { background: #fff; color: var(--neon-red); box-shadow: 0 0 30px #fff; }
.cta-btn.chart { border-color: var(--neon-orange); color: var(--neon-orange); }
.cta-btn.chart:hover { background: var(--neon-orange); color: #000; box-shadow: 0 0 20px var(--neon-orange); }
.cta-btn.socials:hover { background: #fff; color: #000; }

/* FOOTER */
.site-footer {
  text-align: center; padding: 3rem 1rem; background: rgba(0, 0, 0, 0.9); border-top: 2px dashed #333; color: #666; font-size: 0.9rem; margin-top: auto;
}
.site-footer p { margin-bottom: 0.5rem; }
.site-footer .copyright { color: var(--neon-green); opacity: 0.5; margin-top: 1rem; font-family: var(--font-heading); }

@media (max-width: 768px) {
  .site-header { padding: 1rem; flex-direction: column; gap: 1rem; }
  .header-nav { display: none; } /* Hide on mobile to save space */
  .ca-text { font-size: 0.7rem; }
  .header-logo { margin-bottom: 0.5rem; }
  .scene { padding-top: 8rem; } /* more space for stacked header */
  
  .hero-content h1 { font-size: 3rem; }
  .realization-content h2 { font-size: 2rem; }
  .impact-text { font-size: 2.5rem !important; }
  .timeline { padding-left: 1rem; border-left: 1px solid #333; }
  .log-entry::before { display: none; }
  .log-entry { margin-bottom: 1.5rem; }
  .log-entry::after { left: -1.3rem; }
  .brace-text { font-size: 2.5rem; }
}
