@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1A1A40;
  --accent: #FFD700;
  --secondary: #444444;
  --text: #F5F5F5;
  --bg-gradient: linear-gradient(135deg, #1A1A40 0%, #2D2D70 50%, #1A1A40 100%);
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}
html{
  scroll-behavior:smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', cursive;
  font-weight: 600;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 64, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(26, 26, 64, 0.98);
  backdrop-filter: blur(15px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Fredoka', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--gold-gradient);
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Main Content */
.main-content {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-gradient);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

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

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
  animation: glow 3s ease-in-out infinite alternate;
}

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

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--primary);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

/* Glass Card Styles */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.game-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
  border-color: var(--accent);
}

.game-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent);
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.game-description {
  opacity: 0.8;
  line-height: 1.5;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.about-features {
  list-style: none;
  margin-top: 2rem;
}

.about-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.about-features li::before {
  content: '🎰';
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* How to Play */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gold-gradient);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Winners Section */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.winner-card {
  text-align: center;
  padding: 2rem;
}

.winner-avatar {
  width: 80px;
  height: 80px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.winner-name {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.winner-prize {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.winner-game {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 15px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.disclaimer h3 {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: rgba(26, 26, 64, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--card-border);
  opacity: 0.6;
}

/* Game Page Styles */
.game-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.game-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: #000;
}

.back-button {
  display: inline-block;
  background: var(--card-bg);
  color: var(--accent);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.back-button:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Success Message Styles */
.success-message {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  animation: slideInUp 0.5s ease-out;
}

.success-message.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-content h4 {
  color: #22c55e;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.error-message .success-content h4 {
  color: #ef4444;
}

.success-content p {
  opacity: 0.9;
  line-height: 1.5;
}

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

/* Policy Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.policy-content h3 {
  color: var(--accent);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.3rem;
}

.policy-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.policy-content ul {
  margin: 1rem 0 1rem 2rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(26, 26, 64, 0.98);
    backdrop-filter: blur(15px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-frame {
    height: 400px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .game-frame {
    height: 350px;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}