/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: #000;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Video Background */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: #000; /* Black background as fallback */
}

.video-background-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  /* Force video to play inline on mobile (no fullscreen) */
  -webkit-playsinline: true;
  playsinline: true;
  /* Prevent poster from blocking video interaction on mobile */
  pointer-events: none;
  /* Ensure video is properly displayed */
  display: block;
  /* Prevent mobile browsers from showing controls */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  /* Ensure smooth rendering */
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Dark cinematic overlay with vignette effect */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Additional vignette effect */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.4);
  /* Subtle vignette - let videos show through */
  background-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-logo {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.9),
    3px 3px 0px rgba(0, 0, 0, 0.8),
    -1px -1px 0px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  font-family: 'Bungee', cursive;
  transform: rotate(-2deg);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
  display: inline-block;
}

.nav-logo:hover {
  transform: rotate(0deg) scale(1.05);
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 0.7),
    0 0 30px rgba(255, 255, 255, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.9),
    4px 4px 0px rgba(0, 0, 0, 0.8),
    -2px -2px 0px rgba(255, 255, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.95);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-links a::after {
  display: none;
}

/* Discord Link in Navigation */
.nav-links a.discord-link {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.3);
  color: rgba(255, 255, 255, 0.95);
}

.nav-links a.discord-link:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(88, 101, 242, 0.3);
  color: #ffffff;
}

/* Mod Credit Section - Inline with title */
.mod-credit-inline {
  text-align: center;
  margin: 20px 0 30px 0;
}

.mod-credit-inline .credit-text {
  font-family: 'Bungee', cursive;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 1px;
}

.mod-credit-inline .credit-link {
  font-family: 'Bungee', cursive;
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  transform: rotate(-2deg);
  transition: all 0.3s ease;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.9),
    3px 3px 0px rgba(0, 0, 0, 0.8),
    -1px -1px 0px rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  margin-left: 8px;
  cursor: pointer;
}

.mod-credit-inline .credit-link:hover {
  transform: rotate(0deg) scale(1.1);
  color: #ffffff;
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 0.7),
    0 0 30px rgba(255, 255, 255, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.9),
    4px 4px 0px rgba(0, 0, 0, 0.8),
    -2px -2px 0px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 32px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* Discord CTA Button */
.discord-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: rgba(88, 101, 242, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(88, 101, 242, 0.4);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(88, 101, 242, 0.2);
  margin-top: 24px;
}

.discord-cta-button:hover {
  background: rgba(88, 101, 242, 0.3);
  border-color: rgba(88, 101, 242, 0.6);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.discord-cta-button:active {
  transform: translateY(0);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
}

.content-section {
  padding: 60px 40px;
  position: relative;
}

.alt-section {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 32px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
}

.lead-text {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.lead-text em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.lead-text strong {
  font-weight: 600;
  color: #ffffff;
}

/* Rules Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.rule-card {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.rule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.75);
}

.rule-number {
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.rule-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.rule-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Goals Container */
.goals-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.goal-card {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.75);
}

.goal-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
}

.goal-description {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* Flow List */
.flow-list {
  max-width: 800px;
  margin: 24px auto 0;
}

.flow-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-item:last-child {
  border-bottom: none;
}

.flow-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  flex-shrink: 0;
}

.flow-content {
  flex: 1;
}

.flow-content p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Mechanics Grid */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.mechanic-item {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mechanic-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.75);
}

.mechanic-item h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.mechanic-item p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Note Card */
.note-card {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.note-text {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Footer */
.main-footer {
  padding: 40px 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    padding: 16px 0;
  }

  .nav-container {
    padding: 0 24px;
  }

  .nav-logo-wrapper {
    gap: 8px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .bloody-knife-decoration {
    width: 35px;
    opacity: 0.5;
  }

  .nav-links {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: 11px;
    padding: 8px 10px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }

  .discord-cta-button {
    font-size: 16px;
    padding: 14px 24px;
  }

  .discord-cta-button svg {
    width: 20px;
    height: 20px;
  }

  .mod-credit-inline {
    margin: 15px 0 25px 0;
  }

  .mod-credit-inline .credit-text {
    font-size: 18px;
  }

  .mod-credit-inline .credit-link {
    font-size: 20px;
  }

  .hero {
    padding: 80px 24px 40px;
  }

  .content-section {
    padding: 40px 24px;
  }

  /* Ensure videos play on mobile */
  .video-background-container video {
    /* Remove any mobile-specific restrictions */
    -webkit-playsinline: true;
    playsinline: true;
    /* Ensure video doesn't get hidden */
    visibility: visible;
    opacity: 1;
  }

  .rules-grid,
  .goals-container,
  .mechanics-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .goal-card {
    padding: 24px 20px;
  }
  
  .rules-grid,
  .goals-container,
  .mechanics-grid {
    gap: 16px;
  }

  .flow-item {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: 10px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .discord-cta-button {
    font-size: 14px;
    padding: 12px 20px;
  }

  .discord-cta-button svg {
    width: 18px;
    height: 18px;
  }

  .nav-logo-wrapper {
    gap: 6px;
  }

  .nav-logo {
    font-size: 18px;
  }

  .bloody-knife-decoration {
    width: 28px;
    opacity: 0.5;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .lead-text {
    font-size: 18px;
  }
}

/* ============================================
   MICHAEL MYERS THEMED DECORATIONS
   ============================================ */

/* Michael Myers Silhouette */
.myers-silhouette {
  position: fixed;
  bottom: 0;
  right: 5%;
  width: 280px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  transition: opacity 0.3s ease;
  animation: myersFloat 25s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(139, 0, 0, 0.6));
}

.myers-silhouette img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.8) contrast(1.2);
}

@keyframes myersFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.35;
  }
  25% {
    transform: translateY(-15px) translateX(-10px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-8px) translateX(5px);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) translateX(-5px);
    opacity: 0.38;
  }
}

/* Bloody Knife Decoration - Next to Logo */
.bloody-knife-decoration {
  width: 50px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  animation: knifeFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
  transform-origin: center center;
  flex-shrink: 0;
}

.bloody-knife-decoration img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.1) saturate(1.3);
}

@keyframes knifeFloat {
  0%, 100% {
    transform: translateY(0) rotate(-20deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-5px) rotate(-25deg);
    opacity: 0.7;
  }
}

/* Hover effects - subtle pulse when user is near */
.myers-silhouette:hover {
  animation: myersPulse 2s ease-in-out infinite;
}

@keyframes myersPulse {
  0%, 100% {
    opacity: 0.35;
    filter: drop-shadow(0 0 25px rgba(139, 0, 0, 0.6));
  }
  50% {
    opacity: 0.45;
    filter: drop-shadow(0 0 35px rgba(139, 0, 0, 0.8));
  }
}

/* Blood drip effect overlay */
body::before {
  background: 
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.9) 100%
    ),
    /* Blood tints */
    radial-gradient(
      circle at 25% 30%,
      rgba(139, 0, 0, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 75% 70%,
      rgba(139, 0, 0, 0.06) 0%,
      transparent 40%
    );
}

/* Mobile responsive */
@media (max-width: 768px) {
  .myers-silhouette {
    width: 180px;
    right: 2%;
    opacity: 0.25;
  }
}

@media (max-width: 480px) {
  .myers-silhouette {
    width: 140px;
    opacity: 0.2;
  }
}
