:root {
  --bg-primary: #050505;
  --bg-secondary: #0f0f12;
  --bg-card: rgba(255, 0, 0, 0.06);
  --accent-primary: #b30000;
  --accent-secondary: #ff1a1a;
  --glow-highlight: rgba(255, 0, 0, 0.4);
  --gradient-accent: linear-gradient(135deg, #b30000, #ff1a1a);
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 100px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 18px;
  background: var(--gradient-accent);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow-highlight);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(179, 0, 0, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 10px rgba(179, 0, 0, 0.2);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--glow-highlight);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 60px;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/images/dracula-gothic-castle-night-fog.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,1) 100%);
  z-index: 2;
}

.fog-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('images/images/subtle-fog-layer.webp') repeat-x bottom;
  background-size: 50% auto;
  opacity: 0.15;
  z-index: 3;
  animation: moveFog 60s linear infinite;
}

@keyframes moveFog {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(179, 0, 0, 0.4);
}

.hero-content p.subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin-bottom: 0;
}

.legal-disclaimer {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(179, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ccc;
  margin: 20px 0;
  backdrop-filter: blur(4px);
}

.legal-disclaimer strong {
  color: var(--accent-secondary);
}

/* Game Section (The Main Attraction) */
.game-section {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}

.game-wrapper {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 22px;
  border: 1px solid rgba(179, 0, 0, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(179, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: pulseGlow 4s infinite alternate;
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(179, 0, 0, 0.3);
}

@keyframes pulseGlow {
  0% { border-color: rgba(179, 0, 0, 0.2); }
  100% { border-color: rgba(255, 26, 26, 0.5); }
}

.game-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 22px;
}

/* Glass Cards System */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid rgba(179, 0, 0, 0.15);
  border-radius: 18px;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(179, 0, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(179, 0, 0, 0.1);
}

.glass-card h3 {
  color: var(--accent-secondary);
  font-size: 1.5rem;
}

/* Content Pages */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid rgba(179, 0, 0, 0.1);
}

.page-header h1 {
  font-size: 3.5rem;
}

.content-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-wrapper h2 {
  color: var(--accent-secondary);
  margin-top: 2rem;
}

.content-wrapper ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(179, 0, 0, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(179, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(179, 0, 0, 0.2);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 400px;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 8px rgba(179, 0, 0, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Media Queries */
@media (max-width: 1024px) {
  .container {
    padding: 0 70px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .game-wrapper {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 50px;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 100px 50px 50px;
    border-bottom: 1px solid rgba(179, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: top 0.4s ease;
  }

  .menu-toggle:checked ~ .nav-links {
    top: 0;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 20px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .game-wrapper {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .game-container iframe {
    border-radius: 12px;
  }

  .glass-card {
    padding: 25px;
  }
}