/* 1. CONFIGURATION & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@400;700&family=Inter:wght@300;400;700&display=swap');

:root {
  --primary-red: #8b0000;      /* Blood Red */
  --accent-red: #c62828;       /* Brighter Red for CTAs */
  --void-black: #050505;       /* Deepest Black */
  --dark-grey: #121212;        /* Section background */
  --text-bone: #e0e0e0;        /* Off-white text */
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. BASE RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--void-black);
  color: var(--text-bone);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, .ritual-font {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.serif-font {
  font-family: 'Cinzel', serif;
}

/* 4. LAYOUT COMPONENTS */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  transition: var(--transition-smooth);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--accent-red);
  text-decoration: none;
}

/* 5. HERO SECTIONS */
.hero, .hero2 {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  background-size: cover;
  background-position: center;
  /* Dark vignette overlay */
  box-shadow: inset 0 0 200px rgba(0,0,0,0.9);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Darkens the image */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 { font-size: clamp(3rem, 10vw, 6rem); line-height: 1; }
.hero2 h1 { font-size: clamp(2.5rem, 8vw, 5rem); color: var(--accent-red); }

/* Imagem específica para o primeiro Hero (Entrada) */
.hero {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), /* Overlay para o texto ler-se bem */
    url('../images/hero.png'); 
}

/* Imagem específica para o segundo Hero (Heart Eyes) */
.hero2 {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2.jpg');
}

.hero2sanatorio {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_sanatorio.jpg');
}

.hero2hearteyes {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_heart_eyes.jpg');
}

.hero2fabricaassombrada {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_fabrica_assombrada.png');
}

.hero2blairwitch {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_blair_witch.png');
}

.hero2casa {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_casa.png');
}

.hero2sexta {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_sexta.png');
}

.hero2exorcismo {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_exorcismo.png');
}

.hero2zombie {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_zombie.png');
}

.hero2purga {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_purga.png');
}

.hero2viruz {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/hero2_viruz.png');
}


/* 6. BUTTONS */
.primary-button, .slice-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary-red);
  color: white;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-button:hover {
  background-color: transparent;
  border-color: var(--accent-red);
  box-shadow: 0 0 15px var(--primary-red);
}

/* 7. HOME SECTIONS (SLICES) */
.home-slice {
  padding: 100px 10%;
  background-color: var(--dark-grey);
  border-bottom: 1px solid #222;
}

.home-slice-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* 8. ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
  52% { opacity: 1; }
  54% { opacity: 0.4; }
  56% { opacity: 1; }
}

.flicker {
  animation: flicker 4s infinite;
}

/* Noise Texture Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png"); /* Static grain effect */
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}



/* ===========================
   HOME SLICE LAYOUT FIXES
=========================== */

.home-slice {
  padding: 120px 10%;
  display: flex;
  align-items: center;
  justify-content: center;

}

.home-slice-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

/* About Section Specifics */
.about-hero-text {
  flex: 1;
}

.about-hero-text h2 {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.about-hero-text p {
  font-size: 1.2rem;
  color: var(--text-bone);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ===========================
   PHOTO CARD DECK (The "Fan" Effect)
=========================== */

.photo-card-deck {
  position: relative;
  flex: 1;
  height: 400px; /* Fixed height for the fan effect */
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-card {
  position: absolute;
  width: 280px;
  height: 350px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
  transform-origin: bottom center;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) sepia(20%);
  transition: 0.5s;
}

/* The "Fanning" Rotations */
.photo-card:nth-child(1) { transform: rotate(-15deg) translateX(-60px); }
.photo-card:nth-child(2) { transform: rotate(-5deg) translateX(-20px); z-index: 2; }
.photo-card:nth-child(3) { transform: rotate(5deg) translateX(20px); z-index: 3; }
.photo-card:nth-child(4) { transform: rotate(15deg) translateX(60px); z-index: 4; }

/* Interaction: Bring card to front */
.photo-card:hover {
  transform: rotate(0deg) translateY(-20px) scale(1.1);
  z-index: 100;
  border-color: var(--accent-red);
}

.photo-card:hover img {
  filter: grayscale(0%);
}

/* ===========================
   RESPONSIVE FIXES
=========================== */

@media (max-width: 992px) {
  .home-slice-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-hero-text p {
    margin: 0 auto 2rem;
  }
  
  .photo-card-deck {
    height: 450px;
    width: 100%;
    transform: scale(0.8); /* Shrink deck for mobile */
  }
}



/* NAVBAR STYLES */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  z-index: 1000;
  /* Glassmorphism: Subtle blur so content scrolls behind it */
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text-bone);
  text-decoration: none;
  letter-spacing: 2px;
  transition: var(--transition-smooth);
}

.logo:hover {
  color: var(--accent-red);
  text-shadow: 0 0 10px var(--primary-red);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-bone);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  opacity: 0.7;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent-red);
}

/* THE PULSING CALL TO ACTION */
.cta-button {
  font-family: 'Bebas Neue', sans-serif;
  background-color: var(--primary-red);
  color: white;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border: 1px solid var(--primary-red);
  transition: var(--transition-smooth);
  animation: pulse-red 3s infinite;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--primary-red);
}

/* Subtle pulse to draw attention to the current game */
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(139, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
}


/* Hamburguer escondido em desktop */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
    padding: 10px; /* Área de clique maior */
    margin-right: 20px; /* Compensa o padding para alinhar visualmente à direita */
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ff0000; /* Vermelho do teu site */
  transition: 0.4s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Escondido fora do ecrã */
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98); /* Preto quase opaco */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    gap: 30px;
    z-index: 1000;
  }

  .nav-menu.active { right: 0; }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* Animação do X */
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* FOOTER STYLES */
.footer {
  background-color: #000; /* Pure black for the floor of the site */
  padding: 4rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: #555; /* Muted bone color */
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

.footer-links {
    padding: 10px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-bone);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-red);
}

/* SPECIAL LINK: ENIGMA */
.footer-links li:nth-child(4) a {
  color: var(--accent-red);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  opacity: 0.8;
  position: relative;
}

.footer-links li:nth-child(4) a:hover {
  text-shadow: 0 0 8px var(--primary-red);
  letter-spacing: 3px; /* Expands slightly on hover */
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 1.2rem;
  }
}



/* ABOUT PAGE SPECIFICS */
.about-page {
    padding-top: 120px; /* Space for fixed navbar */
}

/* Hero Section */
.about-hero {
    padding: 60px 10%;
    background: linear-gradient(to bottom, var(--void-black), var(--dark-grey));
}

.about-hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero-text h1 {
    color: var(--accent-red);
    margin-bottom: 2rem;
    font-size: 3.5rem;
}

.about-hero-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
}

.about-hero-image img {
    max-width: 300px;
    filter: drop-shadow(0 0 15px rgba(198, 40, 40, 0.3));
}

/* Cast Section - "The Suspects" look */
.about-cast {
    padding: 100px 10%;
    background: var(--dark-grey);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.cast-member {
    text-align: center;
    transition: var(--transition-smooth);
}

.cast-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%; /* Or keep square for a 'mugshot' feel */
    overflow: hidden;
    border: 2px solid #222;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition-smooth);
}

.cast-member:hover .cast-photo {
    filter: grayscale(0%) contrast(1);
    border-color: var(--accent-red);
    box-shadow: 0 0 20px var(--primary-red);
    transform: scale(1.05);
}

.cast-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cast-role {
    color: var(--accent-red);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Media Grid - Cinematic Gallery */
.about-media {
    padding: 100px 10%;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.media-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.media-item:hover img, .media-item:hover video {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .about-hero-content {
        flex-direction: column;
        text-align: center;
    }
}



/* ===========================
   PÁGINA DE CONTACTO
=========================== */

.contact-page {
  padding-top: 120px; /* Compensa a Navbar fixa */
  background: radial-gradient(circle at top right, #1a0505, var(--void-black));
  min-height: 100vh;
}

.contact-section {
  padding: 60px 10%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Detalhes à esquerda, Form à direita */
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Detalhes de Contacto */
.contact-details h1 {
  font-size: 3.5rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.contact-details p {
  color: var(--text-bone);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  opacity: 0.8;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  font-family: 'Cinzel', serif;
  color: var(--accent-red);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.contact-item a {
  color: var(--text-bone);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.contact-item a:hover {
  color: var(--accent-red);
  padding-left: 5px;
}

/* Redes Sociais no Contacto */
.contact-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-socials img {
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(0.8); /* Faz os ícones pretos ficarem brancos */
  transition: var(--transition-smooth);
}

.contact-socials a:hover img {
  filter: invert(21%) sepia(87%) saturate(4970%) hue-rotate(354deg) brightness(81%) contrast(107%); /* Cor var(--accent-red) */
  transform: translateY(-5px);
}

/* Formulário "Fancy" */
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.contact-form input:focus, 
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  background: rgba(139, 0, 0, 0.05);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-red);
  color: white;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background: var(--accent-red);
  box-shadow: 0 0 20px rgba(198, 40, 40, 0.4);
}

/* Responsivo */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}



/* ===========================
   PÁGINA DE BILHETES
=========================== */

.tickets-page {
  padding-top: 120px;
  max-width: 1200px;
  margin: 0 auto 100px;
  padding-left: 5%;
  padding-right: 5%;
}

.tickets-page h1 {
  font-size: 4rem;
  color: var(--accent-red);
  text-align: center;
  margin-bottom: 3rem;
}

.tickets-options {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Form mais largo, Ticketline mais estreito */
  gap: 3rem;
  align-items: start;
}

.tickets-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 4px;
}

.tickets-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-bone);
}

.tickets-section p {
  color: #888;
  margin-bottom: 2rem;
}

/* Event Picker */
.event-picker {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.event-card {
  width: 150px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  background: #000;
  text-align: center;
  overflow: hidden;
}

.event-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  opacity: 0.5;
  transition: 0.3s;
}

.event-card span {
  display: block;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.event-card.active {
  border-color: var(--accent-red);
  box-shadow: 0 0 15px var(--primary-red);
}

.event-card.active img {
  opacity: 1;
}

/* Form Styling */
#whatsapp-form label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

#whatsapp-form select, 
#whatsapp-form input {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  color: white;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

#whatsapp-form button {
  width: 100%;
  padding: 1rem;
  background: var(--primary-red);
  color: white;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#whatsapp-form button:hover {
  background: #25d366; /* Cor do WhatsApp ao passar o rato */
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* Ticketline Section */
.ticketline-section {
  text-align: center;
  border: 1px dashed var(--accent-red);
}

.ticketline-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--accent-red);
  color: var(--accent-red);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.ticketline-button:hover {
  background: var(--accent-red);
  color: white;
}

@media (max-width: 900px) {
  .tickets-options {
    grid-template-columns: 1fr;
  }
}



/* ===========================
   PÁGINA DE EVENTOS & TIMELINE
=========================== */

.events-page {
    padding-top: 120px;
    margin: 0 auto 100px;
    padding-inline: 5%;
}

.events-header {
    text-align: center;
    margin-bottom: 4rem;
}

.events-header h1 {
    font-size: 4rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.events-header p {
    font-size: 1.1rem;
    color: var(--text-bone);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Accordion Styling */
.accordion-section {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header {
    width: 100%;
    padding: 2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-bone);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background: rgba(139, 0, 0, 0.1);
    color: var(--accent-red);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0, 1, 0, 1);
    padding: 0 2rem;
}

.accordion-section.active .accordion-content {
    max-height: 50000px; /* Grande o suficiente para o conteúdo */
    transition: max-height 1s ease-in-out;
    padding-bottom: 3rem;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.4s;
}

.accordion-section.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent-red);
}

/* Timeline Vertical */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-red), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
    opacity: 0.4;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--void-black);
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    background: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red);
}

.timeline-date {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--accent-red);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    filter: grayscale(100%) brightness(0.8);
    transition: 0.5s;
}

.timeline-item.active img {
    filter: grayscale(0%) brightness(1);
}

.timeline-cta {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-red);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    border: 1px solid var(--accent-red);
    padding: 0.5rem 1.5rem;
    transition: 0.3s;
}

.timeline-cta:hover {
    background: var(--accent-red);
    color: white;
}

/* Badges dos Jogos no Perfil do Elenco */
.cast-games {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.game-badge {
    background: rgba(139, 0, 0, 0.2);
    color: var(--accent-red);
    padding: 3px 10px;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(139, 0, 0, 0.3);
    text-transform: uppercase;
}

/* ===========================
   CAST & ACTOR SOCIALS
=========================== */

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.cast-member-actor {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.cast-member-actor:hover {
  border-color: var(--accent-red);
  background: rgba(139, 0, 0, 0.05);
}

/* Tamanho das fotos dos atores */
.cast-photo {
  width: 75px;
  height: 75px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #333;
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s;
}

.cast-member-actor:hover .cast-photo img {
  filter: grayscale(0%);
}

/* O FIX PARA OS ÍCONES SOCIAIS */
.cast-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.cast-socials a {
  display: inline-block;
  width: 20px;  /* Tamanho fixo para não ficarem gigantes */
  height: 20px;
  transition: var(--transition-smooth);
}

.cast-socials img {
  width: 100%;
  height: 100%;
  filter: invert(1) brightness(0.7); /* Torna os ícones brancos/cinza */
}

.cast-socials a:hover {
  transform: translateY(-3px);
}

.cast-socials a:hover img {
  filter: invert(21%) sepia(87%) saturate(4970%) hue-rotate(354deg) brightness(81%) contrast(107%); /* Vermelho Accent */
}

.cast-bio {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
  margin-top: 1rem;
}

.slice-link {
    text-decoration: none;
    color: var(--text-bone);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--accent-red);
    padding-bottom: 5px;
    transition: 0.3s;
}

.slice-link:hover {
    color: var(--accent-red);
    letter-spacing: 4px;
    text-shadow: 2px 0 #fff, -2px 0 #f00; /* Glitch shadow */
}

.bg-watermark {
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 15vw, 15rem);
    color: rgba(255, 255, 255, 0.02); /* Almost invisible */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.redacted {
    color: var(--accent-red);
    cursor: help;
    transition: all 0.3s ease;
    padding: 0 4px;
}

.redacted:hover {
    background-color: transparent;
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--primary-red);
}

.home-slice::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    box-shadow: 0 0 15px var(--primary-red);
}

/* Add a subtle scanline effect to the background */
.home-slice {
    position: relative;
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                      linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
}

/* Media Query para dispositivos móveis */
@media (max-width: 768px) {
    html {
        font-size: 16px; /* Garante uma base de leitura confortável */
    }

    /* Aumenta o texto dos parágrafos se necessário */
    p {
        font-size: 1.1rem !important; 
        line-height: 1.6;
    }

    /* Ajusta os títulos que podem estar gigantes e quebrar o layout */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Garante que as secções "hero" não fiquem com texto minúsculo */
    .hero-featured p, .featured-desc {
        font-size: 1.2rem !important;
        padding: 0 5%;
    }

    /* Ajusta o padding lateral para o texto não colar às bordas */
    .home-slice-content {
        padding: 2rem 1.5rem;
    }
}

/* ===========================
   ERROR PAGE (ADEUS DEDO)
=========================== */

.error-page {
    height: 100vh;
    width: 100%;
    background: radial-gradient(circle, #1a0000 0%, #050505 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    color: var(--text-bone);
    overflow: hidden;
    position: relative;
}

/* Efeito de vinheta para parecer que estamos numa cave */
.error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/noise.png'); /* Se tiveres uma textura de ruído */
    opacity: 0.05;
    pointer-events: none;
}

.error-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.error-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

#error-message {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}

.error-content p {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

.ritual-status {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    color: var(--accent-red);
    font-size: 1.1rem;
    margin-bottom: 3rem !important;
}

#ritual-counter {
    font-weight: bold;
    text-shadow: 0 0 5px var(--primary-red);
}

/* CTA de Erro */
.error-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--text-bone);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    border: 1px solid var(--accent-red);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.error-cta:hover {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 0 20px var(--primary-red);
    transform: scale(1.05);
}

/* Animação de Flicker específica para o erro */
.flicker {
    animation: error-flicker 3s infinite;
}

@keyframes error-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 10px var(--primary-red); }
    20%, 24%, 55% { opacity: 0.3; text-shadow: none; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .error-content h1 { font-size: 3.5rem; }
    .error-content h2 { font-size: 2rem; }
}


/* Adiciona isto ao styles.css */
.legal-container { padding: 150px 10% 50px; background: var(--void-black); min-height: 100vh; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.legal-box { border: 1px solid #222; padding: 25px; background: rgba(255,255,255,0.02); transition: 0.3s; }
.legal-box:hover { border-color: var(--primary-red); }
.warning-border { border: 1px solid var(--primary-red); }
.critical-text { color: var(--accent-red); font-weight: bold; text-transform: uppercase; margin-top: 15px; }

#cookie-overlay {
    position: fixed; bottom: 20px; left: 20px; right: 20px; 
    background: #000; border: 1px solid var(--primary-red);
    padding: 20px; display: flex; justify-content: space-between;
    align-items: center; z-index: 10000; font-family: 'Bebas Neue';
}
#cookie-overlay button { background: var(--primary-red); color: #fff; border: none; padding: 10px 20px; cursor: pointer; }

.links-page {
    background: radial-gradient(circle, #121212 0%, #050505 100%);
    text-align: center;
}

.links-container {
    padding: 120px 20px 60px;
    max-width: 600px;
    margin: auto;
}


.social-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
}

.social-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    padding: 20px;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-card span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--text-bone);
    display: block;
}

.social-card p {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.social-card:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--primary-red);
    transform: scale(1.02);
}

.merch-promo {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
}