/* Base Styles */
:root {
  /* Halloween Color Palette */
  --color-black: #000000;
  --color-dark: #121212;
  --color-dark-gray: #1E1E1E;
  --color-gray: #333333;
  --color-light-gray: #666666;
  --color-orange: #FF7518;
  --color-orange-light: #FF9248;
  --color-orange-dark: #E05800;
  --color-purple: #8A2BE2;
  --color-green: #39FF14;
  --color-red: #B22222;
  --color-white: #FFFFFF;

  /* Spacing System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Typography */
  --font-heading: 'Creepster', cursive;
  --font-body: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: var(--color-dark);
  line-height: 1.6;
  background-image: url('../assets/images/halloween-bg.svg');
  background-size: 200px;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--space-4);
}

.section-title {
  text-align: center;
  color: var(--color-orange);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-5);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--color-orange);
  margin: var(--space-3) auto 0;
  box-shadow: 0 0 10px var(--color-orange);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-6);
  color: var(--color-white);
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-dark);
  box-shadow: 0 4px 12px rgba(255, 117, 24, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-orange-light);
  box-shadow: 0 6px 16px rgba(255, 117, 24, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-orange);
  border: 2px solid var(--color-orange);
  box-shadow: 0 4px 12px rgba(255, 117, 24, 0.2);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(255, 117, 24, 0.1);
  box-shadow: 0 6px 16px rgba(255, 117, 24, 0.3);
  transform: translateY(-2px);
}

.btn-play {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--color-orange-dark), var(--color-orange));
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4),
              0 8px 25px rgba(0, 0, 0, 0.3),
              inset 0 -2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-play::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
}

.btn-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.6),
              0 10px 30px rgba(0, 0, 0, 0.4),
              inset 0 -2px 5px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, var(--color-orange), var(--color-orange-light));
}

.btn-play:hover::before {
  transform: scale(1) rotate(45deg);
}

.btn-play:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 117, 24, 0.4);
}

/* Header */
.site-header {
  padding: var(--space-4) 0;
  position: relative;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

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

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-white);
}

.logo img {
  height: 50px;
  margin-right: var(--space-2);
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-orange);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-nav .nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-5);
}

.main-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: var(--space-2) 0;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--color-orange);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-8) 0;
  text-align: center;
  background-image: url('../assets/images/haunted-house.svg');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
  color: var(--color-orange);
  text-shadow: 0 0 10px rgba(255, 117, 24, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  animation: pulsate 3s infinite alternate;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  color: var(--color-white);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* Games Section */
.games-section {
  padding: var(--space-8) 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.game-card {
  background-color: var(--color-dark-gray);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 117, 24, 0.3), 0 0 15px rgba(255, 117, 24, 0.5);
}

.game-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.game-title {
  padding: var(--space-4) var(--space-4) var(--space-2);
  color: var(--color-orange);
  font-size: 1.5rem;
}

.game-description {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Features Section */
.features-section {
  padding: var(--space-8) 0;
  background-color: var(--color-gray);
  position: relative;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.feature {
  text-align: center;
  padding: var(--space-5);
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 117, 24, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.feature h3 {
  margin-bottom: var(--space-3);
  color: var(--color-orange);
}

.feature p {
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  padding: var(--space-8) 0;
  background-color: var(--color-dark);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pumpkins.svg');
  background-size: 300px;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding: var(--space-6);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: var(--space-4);
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-white);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3);
  border-radius: 6px;
  border: 1px solid var(--color-gray);
  background-color: rgba(30, 30, 30, 0.7);
  color: var(--color-white);
  font-family: var(--font-body);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 2px rgba(255, 117, 24, 0.3);
}

.contact-form button {
  width: 100%;
  margin-top: var(--space-2);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-4);
  background-color: rgba(57, 255, 20, 0.2);
  border-radius: 6px;
  margin-top: var(--space-4);
  animation: fadeIn 0.5s ease;
}

.form-success p {
  color: var(--color-green);
  font-weight: 500;
  margin: 0;
}

/* Disclaimer Section */
.disclaimer-section {
  padding: var(--space-7) 0;
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 1px solid var(--color-gray);
  border-bottom: 1px solid var(--color-gray);
}

.disclaimer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-white);
  opacity: 0.8;
}

.disclaimer-content p {
  margin-bottom: var(--space-3);
}

/* Footer */
.site-footer {
  background-color: var(--color-dark);
  padding: var(--space-7) 0 var(--space-4);
  color: var(--color-white);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer-logo img {
  height: 40px;
  margin-right: var(--space-2);
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-orange);
}

.footer-logo p {
  opacity: 0.8;
}

.footer-nav h3, 
.footer-games h3, 
.footer-social h3 {
  color: var(--color-orange);
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}

.footer-nav ul, 
.footer-games ul {
  list-style: none;
}

.footer-nav a, 
.footer-games a {
  color: var(--color-white);
  text-decoration: none;
  display: block;
  padding: var(--space-1) 0;
  transition: color 0.3s ease;
}

.footer-nav a:hover, 
.footer-games a:hover {
  color: var(--color-orange);
}

.social-icons {
  display: flex;
  gap: var(--space-3);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-gray);
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--color-orange);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-disclaimer {
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulsate {
  from { text-shadow: 0 0 10px rgba(255, 117, 24, 0.8), 0 0 20px rgba(0, 0, 0, 0.5); }
  to { text-shadow: 0 0 15px rgba(255, 117, 24, 1), 0 0 30px rgba(255, 117, 24, 0.5); }
}

@keyframes fly {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, 15px) rotate(5deg); }
  50% { transform: translate(-10px, 30px) rotate(-5deg); }
  75% { transform: translate(15px, -20px) rotate(10deg); }
  100% { transform: translate(-20px, 10px) rotate(-10deg); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(15px); }
  100% { transform: translateY(0); }
}