/* --- 1. THE PAINT BUCKETS (Variables) --- */
:root {
  --toxic-green: #39FF14;
  --smoky-acid: #228B22;
  --violet-acid: #BF00FF;
  --void-black: #050505;
  
  --font-header: 'Press Start 2P', cursive;
  --font-main: 'VT323', monospace;
}

/* --- The Structure --- */
body {
  cursor: url('https://img.icons8.com/color/32/octopus.png'), auto;
  color: #ffffff;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-main); /* Default font for the whole site */
}

/* Background */
.background-void {
  
  background: var(--void-black) url('images/smokegreen.gif') no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  
  /* This filter keeps the image subtle so it doesn't overwhelm content */
  filter: brightness(0.5) contrast(1.2); 
}

/* --- 3. THE ANIMATIONS (The "Electricity") --- */
/* --- 3. THE ANIMATIONS (The "Electricity") --- */
@keyframes smokyFlicker {
  /* This is the "ON" state */
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    color: var(--toxic-green); /* Keeps the letters green */
    
    /* This creates the Purple Aura */
    /* 0 0 5px is a tight purple glow, 0 0 20px is a wide purple haze */
    text-shadow: 
        0 0 5px var(--violet-acid), 
        0 0 15px var(--violet-acid), 
        0 0 30px #ff00ff; 
  }
  
  /* This is the "OFF" (glitch) state */
  20%, 24%, 55% {         
    text-shadow: none;
    color: #1a1a1a; /* The letters "go dark" during the flicker */
  }
}


/* --- 4. THE VISUAL ELEMENTS --- */

/* The flickering Title */
.title-flicker {
  font-family: var(--font-header);
  font-size: 2.5rem;
  text-align: center;
  margin-top: 50px;
  animation: smokyFlicker 5s infinite alternate;
}

/* The Main Stage (keeps things centered) */
.main-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* The Violet Content Box */
.content-box {
  max-width: 600px;
  padding: 30px;
  border: 2px solid var(--violet-acid);
  box-shadow: 0 0 15px var(--violet-acid);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  margin-top: 30px;
}

/* The text inside the box */
.content-box p {
  font-family: var(--font-main);
  font-size: 20px; /* VT323 looks better a bit larger */
  color: var(--toxic-green);
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
  line-height: 1.6;
}
/* The Button itself */
.toxic-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-family: var(--font-header); /* Back to the pixel font */
  font-size: 12px;
  color: var(--void-black);
  background-color: var(--toxic-green);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease; /* Makes the glow fade in/out smoothly */
}

/* What happens when you hover your mouse over it */
.toxic-button:hover {
  background-color: var(--violet-acid);
  color: white;
  box-shadow: 0 0 20px var(--violet-acid);
  transform: scale(1.1); /* Makes it pop out slightly */
}

.particle {
    position: fixed;
    pointer-events: none; /* So the glitter doesn't block your clicks */
    width: 4px;
    height: 4px;
    background: var(--toxic-green);
    box-shadow: 0 0 5px var(--toxic-green), 0 0 10px var(--violet-acid);
    border-radius: 50%;
    z-index: 999; /* Stay on the very top */
    animation: fadeOut 0.8s linear forwards;
}

@keyframes fadeOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

/* --- 5. THE SANCTUARY MODULE --- */

.sanctuary-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  background: rgba(5, 5, 5, 0.9); /* Your Void Black with a bit of transparency */
  border: 1px solid var(--violet-acid);
  box-shadow: 0 0 20px rgba(191, 0, 255, 0.2);
  padding: 40px;
  margin: 40px auto;
  border-radius: 15px;
  backdrop-filter: blur(5px); /* This gives that "Superionic Ice" frosted look */
}

.module-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px var(--violet-acid));
  border: 1px solid rgba(57, 255, 20, 0.3); /* Subtle toxic glow around the image */
}

.poem-text {
  text-align: center;
  font-family: var(--font-main);
  color: var(--toxic-green);
}

.poem-text p {
  margin: 10px 0;
  font-size: 1.4rem; /* Making it readable but atmospheric */
  letter-spacing: 1px;
}

/* --- 6. THE GRID SYSTEM --- */

.grid-container {
  display: grid;
  /* This creates 3 equal columns that adjust to the screen size */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 20px; /* Space between the "tiles" */
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

/* We reuse your content-box logic but make it a "grid item" */
.grid-item {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--violet-acid);
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--toxic-green);
  border-color: var(--toxic-green);
}

/* This targets the headings inside your grid items */
.grid-item h3 {
  font-family: var(--font-header);
  color: var(--violet-acid); /* Distinguish the title from the content */
  font-size: 14px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* This targets the paragraph text inside your grid items */
.grid-item p {
  font-family: var(--font-main);
  color: var(--toxic-green); /* Using your paint bucket color */
  font-size: 18px; /* VT323 needs to be a bit larger to stay sharp */
  line-height: 1.4;
  margin: 0;
  
  /* This 'text-shadow' acts like an outline to keep the letters crisp */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); 
  
  /* Adding a tiny bit of space between letters prevents the blur */
  letter-spacing: 0.5px; 
}

/* --- 7. THE COSMIC PIZZA --- */

.cosmic-pizza {
  position: top 10%; left 10%;
  width: 120px; /* Adjust size as needed */
  z-index: 5;
  filter: drop-shadow(0 0 15px var(--toxic-green));
  animation: pizzaOrbit 20s infinite linear;
  opacity: 0.8;
}

.cosmic-fairy {
  position: bottom 10%; right 10%;
  width: 120px; /* Adjust size as needed */
  z-index: 5;
  filter: drop-shadow(0 0 15px var(--violet-acid));
  animation: pizzaOrbit 15s infinite linear;
  opacity: 0.8;
}

@keyframes pizzaOrbit {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, 50px) rotate(90deg); }
  50% { transform: translate(50px, 150px) rotate(180deg); }
  75% { transform: translate(-100px, 50px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes fairyOrbit {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, 50px) rotate(90deg); }
  50% { transform: translate(50px, 150px) rotate(180deg); }
  75% { transform: translate(-100px, 50px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(-360deg); }
}

/* --- 8. THE TERMINAL FOOTER --- */

footer {
  margin-top: 100px;
  padding: 40px;
  background: rgba(5, 5, 5, 0.95);
  border-top: 2px solid var(--violet-acid);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-header);
  font-size: 12px;
  color: var(--toxic-green);
  text-decoration: none;
  transition: 0.3s;
}

.footer-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--toxic-green);
}

.latin-inscription {
  margin-top: 20px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--violet-acid);
  opacity: 0.7;
}