/* Global Styles */
:root {
  --bg-dark: #0f0b0b;
  --lava-orange: #ff3c00;
  --blood-red: #6b0000;
  --ember-glow: #ff6b3d;
  --fire-yellow: #ffaa00;
  --ash-gray: #333333;
  --smoke-light: #999999;
}

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

body {
  font-family: 'Orbitron', sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

.page-container {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--lava-orange);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blood-red);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 10;
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  position: relative;
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--lava-orange) 0%, transparent 70%);
  opacity: 0.7;
  filter: blur(5px);
  z-index: 1;
  animation: pulse 2s infinite alternate;
}

h1 {
  font-family: 'UnifrakturCook', cursive;
  color: var(--lava-orange);
  font-size: 2rem;
  text-shadow: 0 0 10px var(--ember-glow);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-size: 1rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--lava-orange);
  text-shadow: 0 0 8px var(--ember-glow);
}

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

.nav-links a:hover::after {
  width: 100%;
  box-shadow: 0 0 10px var(--lava-orange);
}

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

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.4s;
  border-radius: 3px;
}

/* Hero Section Styles */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}

.lava-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/lava-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h2 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--lava-orange);
  color: var(--lava-orange);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-family: 'Cinzel', serif;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--blood-red), var(--lava-orange));
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

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

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--lava-orange);
  border-color: var(--fire-yellow);
}

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

.torch {
  position: absolute;
  width: 100px;
  height: 150px;
  background: url('../assets/torch.png') no-repeat;
  background-size: contain;
  z-index: 1;
}

.left-torch {
  left: 5%;
  top: 30%;
}

.right-torch {
  right: 5%;
  top: 30%;
  transform: scaleX(-1);
}

/* Games Section Styles */
.games {
  padding: 80px 40px;
  text-align: center;
  position: relative;
  background-color: rgba(15, 11, 11, 0.9);
}

.games h2 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--lava-orange);
  text-shadow: 0 0 10px var(--ember-glow);
}

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

.game-card {
  perspective: 1000px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.game-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
}

.card-front {
  background-color: var(--ash-gray);
  overflow: hidden;
}

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

.game-card:hover .card-front img {
  transform: scale(1.1);
}

.game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  font-weight: 600;
  text-align: left;
}

.card-back {
  background: linear-gradient(135deg, var(--blood-red), var(--bg-dark));
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card-back h3 {
  font-family: 'UnifrakturCook', cursive;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card-back p {
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.play-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--lava-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--fire-yellow);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 60, 0, 0.4);
}

/* Disclaimer Section Styles */
.disclaimer {
  padding: 60px 40px;
  text-align: center;
  position: relative;
}

.disclaimer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  border: 2px solid var(--blood-red);
  border-radius: 10px;
  background-color: rgba(15, 11, 11, 0.8);
  position: relative;
}

.disclaimer-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--blood-red), var(--lava-orange), var(--blood-red), var(--lava-orange));
  z-index: -1;
  animation: glowingBorder 3s linear infinite;
  background-size: 400%;
}

.disclaimer h2 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--lava-orange);
}

.disclaimer p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer Styles */
footer {
  padding: 30px 40px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  position: relative;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--smoke-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--lava-orange);
  text-shadow: 0 0 8px var(--ember-glow);
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

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

.social-icon:hover {
  background-color: var(--lava-orange);
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--lava-orange);
}

footer p {
  color: var(--smoke-light);
  font-size: 0.9rem;
}

/* Floating Elements */
.floating-skull {
  position: absolute;
  width: 60px;
  height: 60px;
  background: url('../assets/skull.png') center/contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 5;
}

.skull-1 {
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite, rotate 15s linear infinite;
}

.skull-2 {
  top: 60%;
  right: 15%;
  animation: float 10s ease-in-out infinite, rotate 20s linear reverse infinite;
}

.skull-3 {
  bottom: 30%;
  left: 25%;
  animation: float 7s ease-in-out infinite, rotate 12s linear infinite;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  
  .hamburger-menu {
    display: flex;
    z-index: 15;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 11, 11, 0.95);
    transition: 0.5s;
    z-index: 10;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 20px 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .games h2,
  .disclaimer h2 {
    font-size: 1.8rem;
  }
  
  .torch {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 40px;
    height: 40px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .games h2,
  .disclaimer h2 {
    font-size: 1.5rem;
  }
  
  .disclaimer-container {
    padding: 20px;
  }
  
  .floating-skull {
    width: 40px;
    height: 40px;
  }
}