* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blood-red: #8b0000;
  --crimson: #dc143c;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --gray-dark: #1a1a1a;
  --gray-mid: #2a2a2a;
  --gray-light: #888;
  --white: #ffffff;
  --orange-accent: #ff6b00;
  --purple-accent: #6b00ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--dark-bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Blood Drops Animation */
.blood-drops {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.blood-drop {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blood-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  opacity: 0.8;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(45deg);
    opacity: 0;
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--crimson);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--crimson);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(139, 0, 0, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gray-mid);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid var(--blood-red);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-title-break {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--gray-light);
}

.glitch {
  position: relative;
  color: var(--crimson);
  animation: glitch 3s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--orange-accent);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--purple-accent);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 31px, 0);
  }
  20% {
    clip: rect(70px, 9999px, 71px, 0);
  }
  40% {
    clip: rect(30px, 9999px, 130px, 0);
  }
  60% {
    clip: rect(90px, 9999px, 140px, 0);
  }
  80% {
    clip: rect(50px, 9999px, 20px, 0);
  }
  100% {
    clip: rect(60px, 9999px, 80px, 0);
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--blood-red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: var(--crimson);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
}

.cta-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pumpkin-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

.pumpkin-3d {
  width: 400px;
  height: 400px;
  filter: drop-shadow(0 0 40px rgba(255, 107, 0, 0.6));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 40px rgba(255, 107, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 60px rgba(255, 107, 0, 0.9));
  }
}

.pumpkin-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.3), transparent 70%);
  border-radius: 50%;
  animation: glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Scroll Indicator Styles */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--crimson);
  text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.scroll-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.2);
  border: 2px solid var(--blood-red);
  border-radius: 50%;
  color: var(--crimson);
  transition: all 0.3s;
}

.scroll-indicator:hover .scroll-icon {
  background: var(--blood-red);
  color: var(--white);
  transform: translateY(5px);
}

.scroll-blood-drip {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--blood-red), transparent);
  animation: drip 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes drip {
  0%,
  100% {
    opacity: 0;
    height: 0;
  }
  50% {
    opacity: 1;
    height: 30px;
  }
}

/* Heroes Section */
.heroes {
  padding: 6rem 3rem;
  background: var(--darker-bg);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 2px;
}

.accent {
  color: var(--crimson);
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-card {
  background: var(--gray-dark);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
  border: 2px solid transparent;
}

.hero-card:hover {
  transform: translateY(-10px);
  border-color: var(--blood-red);
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.4);
}

.hero-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hero-card:hover .hero-image img {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero-card:hover .hero-overlay {
  opacity: 1;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 1px;
}

.hero-name {
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-desc {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Chaos Theater */
.chaos-theater {
  padding: 6rem 3rem;
  background: var(--dark-bg);
}

.theater-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.theater-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--blood-red);
}

.theater-bg {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: all 0.5s;
}

.theater-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.theater-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(10, 10, 10, 0.9);
  color: var(--white);
  border: 2px solid var(--blood-red);
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.theater-btn:hover {
  background: var(--blood-red);
  transform: translateY(-2px);
}

.theater-info {
  padding: 2rem;
}

.theater-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--crimson);
}

.theater-desc {
  color: var(--gray-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.theater-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.theater-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-dark);
  border-radius: 15px;
  border: 2px solid var(--gray-mid);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-light);
  letter-spacing: 1px;
  font-weight: 600;
}

/* Gore Section */
.gore-section {
  padding: 6rem 3rem;
  background: var(--darker-bg);
}

.gore-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.gore-canvas-wrapper {
  position: relative;
  margin: 3rem auto;
  max-width: 900px;
}

.gore-canvas {
  width: 100%;
  height: 500px;
  background: var(--gray-dark);
  border-radius: 20px;
  border: 3px solid var(--blood-red);
  cursor: crosshair;
}

.gore-instructions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-light);
  pointer-events: none;
  opacity: 0.5;
}

.gore-reset {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: var(--gray-mid);
  color: var(--white);
  border: 2px solid var(--blood-red);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.gore-reset:hover {
  background: var(--blood-red);
  transform: translateY(-2px);
}

/* Join Section */
.join-section {
  padding: 6rem 3rem;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  gap: 4rem;
}

.join-content {
  flex: 1;
}

.join-subtitle {
  font-size: 1.25rem;
  color: var(--gray-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.join-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.join-image {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  filter: drop-shadow(0 0 30px rgba(139, 0, 0, 0.5));
}

/* Footer */
.footer {
  background: var(--darker-bg);
  padding: 4rem 3rem 2rem;
  border-top: 2px solid var(--gray-mid);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--crimson);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-text {
  color: var(--gray-light);
  line-height: 1.6;
}

.footer-link {
  display: block;
  color: var(--gray-light);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--crimson);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-mid);
  color: var(--gray-light);
}

/* Dialog */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.dialog-overlay.active {
  display: flex;
}

.dialog {
  background: var(--gray-dark);
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  border: 3px solid var(--blood-red);
  animation: dialogAppear 0.3s ease-out;
}

@keyframes dialogAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--gray-mid);
  border: 2px solid var(--blood-red);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.dialog-close:hover {
  background: var(--blood-red);
  transform: rotate(90deg);
}

.dialog-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--crimson);
}

.dialog-content p {
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dialog-input {
  padding: 1rem;
  background: var(--gray-mid);
  border: 2px solid var(--gray-mid);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.dialog-input:focus {
  outline: none;
  border-color: var(--blood-red);
}

.dialog-submit {
  padding: 1rem 2rem;
  background: var(--blood-red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.dialog-submit:hover {
  background: var(--crimson);
  transform: translateY(-2px);
}

/* Cursor Canvas */
.cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* Responsive */
@media (max-width: 1024px) {
  .theater-container {
    grid-template-columns: 1fr;
  }

  .join-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    flex-direction: column;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
  }

  .pumpkin-3d {
    width: 300px;
    height: 300px;
  }

  .heroes,
  .chaos-theater,
  .gore-section,
  .join-section {
    padding: 4rem 1.5rem;
  }

  .heroes-grid {
    grid-template-columns: 1fr;
  }

  .theater-stats {
    grid-template-columns: 1fr;
  }

  /* Adjust scroll indicator for mobile */
  .scroll-indicator {
    bottom: 2rem;
  }

  .scroll-text {
    font-size: 0.75rem;
  }

  .scroll-icon {
    width: 35px;
    height: 35px;
  }
}
