/* Base Styles */
:root {
  --primary-bg: #0f172a;
  --secondary-bg: #1e293b;
  --accent-color: #22d3ee;
  --accent-hover: #06b6d4;
  --text-color: #f8fafc;
  --text-dark: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  --border-radius: 24px;
  --transition-speed: 0.3s;
  --gradient-1: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background: linear-gradient(to bottom, var(--secondary-bg), var(--primary-bg));
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: #FFE773;
}

button, .cta-button, .play-button {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

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

section {
  padding: 4rem 2rem;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
  background-image: url('/img/background_palace_1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  opacity: 0.7;
  animation: gradientShift 10s infinite alternate;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: rgb(255, 255, 255);
  text-align: center;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
  font-weight: 600;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: #000000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
  background: #ffffff;
  color: #000000;
}

.cta-button a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
}

/* About Section */
.about-section {
  padding: 5rem 2rem;
  background: var(--secondary-bg);
  text-align: center;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-1);
}

.about-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  top: -150px;
  right: -150px;
  animation: float 8s infinite alternate;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-right: 2rem;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  border-radius: var(--border-radius);
}

.about-image:hover::before {
  opacity: 0.1;
}

.about-image img {
  max-width: 90%;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  position: relative;
  z-index: 1;
}

.about-image:hover img {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.2);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
  line-height: 1.6;
}

/* Games Section */
.games-section {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--gradient-2);
  position: relative;
}

.games-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-1);
}

.games-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  position: relative;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  padding-bottom: 25px;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 1;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.3);
}

.game-card:hover::before {
  opacity: 0.1;
}

.game-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.5s ease;
}

.game-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-image::after {
  opacity: 1;
}

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

.game-card:hover .game-image img {
  transform: scale(1.1) rotate(2deg);
}

.game-card h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0;
  color: var(--accent-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.game-card:hover h3 {
  transform: translateY(-5px);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.play-button {
  background: var(--gradient-1);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
  transform: translateY(0);
}

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

.play-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
  background: var(--accent-color);
}

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

@keyframes cardHover {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(34, 211, 238, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(34, 211, 238, 0.2);
  }
}

/* Disclaimer Section */
.disclaimer-section {
  background: var(--gradient-2);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.disclaimer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-1);
}

.disclaimer-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  bottom: -200px;
  left: -200px;
  animation: float 10s infinite alternate-reverse;
}

.disclaimer-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
  animation: fadeInUp 1s ease-out;
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.1);
  transition: all var(--transition-speed) ease;
}

.disclaimer-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.2);
}

.disclaimer-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-1);
}

.disclaimer-content p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
  100% {
    transform: translate(-20px, -20px);
  }
}

/* Contact Section */
.contact-section {
  padding: 6rem 2rem;
  background: var(--gradient-2);
  position: relative;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-1);
}

.contact-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-align: center;
}

.contact-section p {
  text-align: center;
  margin-bottom: 2rem;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

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

/* Policy Section (Privacy & Terms) */
.policy-section {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, var(--secondary-bg), var(--primary-bg));
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.policy-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-align: center;
}

.policy-content {
  margin-top: 2rem;
}

.policy-content h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 1.5rem;
}

.policy-content ul {
  padding-left: 2rem;
}

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

.last-updated {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 2rem;
}

/* Favicon Animations */
link[rel="icon"] {
  transition: transform 0.3s ease;
}

link[rel="icon"]:hover {
  transform: scale(1.1);
}

/* Favicon SVG Animations */
.favicon-bg {
  transition: fill 0.3s ease;
}

.slot-symbol {
  animation: spin 3s infinite linear;
}

.symbol-bg {
  transition: fill 0.3s ease;
}

.symbol-inner {
  animation: pulse 2s infinite;
}

.symbol-cross {
  animation: glow 2s infinite;
}

.sparkle {
  animation: sparkle 2s infinite;
}

.sparkle:nth-child(2) { animation-delay: 0.5s; }
.sparkle:nth-child(3) { animation-delay: 1s; }

.animated-border {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawBorder 2s linear infinite;
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

@keyframes sparkle {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 0.5; }
  100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

@keyframes drawBorder {
  to { stroke-dashoffset: 0; }
}

/* Animations */
@keyframes gradientShift {
  0% { opacity: 0.1; }
  50% { opacity: 0.2; }
  100% { opacity: 0.1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}