/* Base Styles */
:root {
  --primary-color: #6a1b9a;
  --secondary-color: #9c27b0;
  --accent-color: #ff00ff;
  --text-color: #e0e0e0;
  --dark-bg: #121212;
  --card-bg: rgba(22, 22, 28, 0.8);
  --glow-color: #ff00ff;
  --ghost-color: rgba(255, 255, 255, 0.5);
  --mist-color: rgba(156, 39, 176, 0.3);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Ghost Particles Background */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: var(--dark-bg);
}

.mist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 0%, var(--dark-bg) 100%);
  opacity: 0.8;
  z-index: -1;
}

/* Header Styles */
.header {
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-family: 'Creepster', cursive;
  font-size: 24px;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--glow-color);
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--glow-color);
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('https://images.pexels.com/photos/1165991/pexels-photo-1165991.jpeg') no-repeat center center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Creepster', cursive;
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.glowing-text {
  text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
  animation: pulse 2s infinite;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px var(--glow-color);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--glow-color);
}

/* Floating Ghosts */
.floating-ghosts {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.ghost {
  position: absolute;
  background: var(--ghost-color);
  width: 60px;
  height: 80px;
  border-radius: 50% 50% 0 0;
}

.ghost::before {
  content: '👻';
  position: absolute;
  font-size: 30px;
  top: 10px;
  left: 15px;
}

.ghost-1 {
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.ghost-2 {
  top: 40%;
  right: 15%;
  animation: float 12s ease-in-out infinite 2s;
}

.ghost-3 {
  bottom: 20%;
  left: 30%;
  animation: float 10s ease-in-out infinite 1s;
}

/* Games Section */
.games {
  padding: 80px 0;
  background-color: rgba(22, 22, 28, 0.9);
  position: relative;
}

.section-title {
  font-family: 'Creepster', cursive;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 10px var(--glow-color);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.game-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px var(--glow-color);
}

.game-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-image img {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.game-info {
  padding: 20px;
}

.game-info h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.play-button {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.play-button:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  box-shadow: 0 0 10px var(--glow-color);
}

/* About Section */
.about {
  padding: 80px 0;
  background: url('https://images.pexels.com/photos/414144/pexels-photo-414144.jpeg') no-repeat center center/cover;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
}

.about .container {
  position: relative;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
  background-color: rgba(22, 22, 28, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
}

.ghost-float {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 30px;
  animation: float 4s ease-in-out infinite;
}

.ghost-float::before {
  content: '👻';
}

/* Disclaimer Section */
.disclaimer {
  padding: 80px 0;
  background-color: var(--dark-bg);
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
  background-color: rgba(22, 22, 28, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disclaimer-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.candle {
  width: 30px;
  height: 60px;
  margin: 0 30px;
  position: relative;
}

.candle::before {
  content: '🕯️';
  font-size: 40px;
  position: absolute;
  animation: flicker 2s infinite alternate;
}

/* Footer */
.footer {
  padding: 40px 0;
  background-color: rgba(10, 10, 15, 0.95);
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.footer-logo span {
  font-family: 'Creepster', cursive;
  font-size: 18px;
  color: var(--accent-color);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-nav li {
  margin-right: 20px;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.floating-ghost {
  position: absolute;
  bottom: 50px;
  right: 50px;
  font-size: 40px;
  animation: float 6s ease-in-out infinite;
}

.floating-ghost::before {
  content: '👻';
}

/* Contact Form Styles */
.contact-section {
  padding: 80px 0;
  min-height: calc(100vh - 300px);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.form-group label {
  color: var(--text-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--glow-color);
}

.submit-button {
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: center;
}

.submit-button:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  box-shadow: 0 0 15px var(--glow-color);
  transform: translateY(-3px);
}

/* Privacy and Terms Page Styles */
.privacy-section,
.terms-section {
  padding: 80px 0;
  min-height: calc(100vh - 300px);
}

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.policy-section,
.terms-section {
  margin-bottom: 30px;
}

.policy-section h2,
.terms-section h2 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.policy-section p,
.terms-section p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.policy-section a,
.terms-section a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: var(--transition);
}

.policy-section a:hover,
.terms-section a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--glow-color);
}