:root {
  /* Colors */
  --pink-primary: #FFD6EC;
  --mint-accent: #00D9A5;
  --yellow-secondary: #FFF1C1;
  --text-color: #2B2B2B;
  --pink-highlight: #FF7DB6;
  --pink-light: #FFE5F4;
  --mint-light: #C4FFF0;
  --yellow-light: #FFF8DF;
  
  /* Fonts */
  --heading-font: 'Fredoka', sans-serif;
  --body-font: 'Nunito', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background: linear-gradient(135deg, var(--pink-light), var(--mint-light), var(--yellow-light));
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  line-height: 1.5;
  overflow-x: hidden;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Header Styles */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-sm) 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-text {
  background: linear-gradient(45deg, var(--pink-highlight), var(--mint-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-accent {
  margin-left: var(--spacing-xs);
  font-size: 1.5rem;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-md);
}

.main-nav a {
  font-weight: 600;
  padding: var(--spacing-xs);
  position: relative;
}

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

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

.nav-button {
  background-color: var(--mint-accent);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav-button:hover {
  background-color: var(--pink-highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 125, 182, 0.3);
}

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

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url("/images/mainbg.webp");
background-position: center;
background-size: cover;
background-repeat: no-repeat;

  min-height: 80vh;
  display: flex;
  align-items: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  color: white;
}

.cta-button {
  display: inline-block;
  background-color: var(--pink-highlight);
  color: white;
  font-family: var(--heading-font);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(255, 125, 182, 0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(255, 125, 182, 0.5);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.float-item {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0.8;
}

.float-item:nth-child(1) {
  top: 20%;
  left: 60%;
}

.float-item:nth-child(2) {
  top: 30%;
  left: 75%;
}

.float-item:nth-child(3) {
  top: 50%;
  left: 85%;
}

.float-item:nth-child(4) {
  top: 70%;
  left: 65%;
}

.float-item:nth-child(5) {
  top: 40%;
  left: 90%;
}

.float-item:nth-child(6) {
  top: 60%;
  left: 80%;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Section Styles */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xl);
  position: relative;
  color: var(--text-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--pink-highlight), var(--mint-accent));
  border-radius: var(--radius-full);
}

/* About Section */
.about {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  margin: 0 var(--spacing-md);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.glass-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

/* Games Section */
.games {
  background-color: var(--yellow-light);
  border-radius: var(--radius-lg);
  margin: var(--spacing-xl) var(--spacing-md);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px; /* space between cards */
}

.game-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.game-thumbnail {
  height: 350px;
  overflow: hidden;
}

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

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

.game-card h3 {
  padding: var(--spacing-sm);
  text-align: center;
  font-size: 1.2rem;
}

.play-now {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background-color: var(--mint-accent);
  color: white;
  text-align: center;
  padding: var(--spacing-xs);
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-card:hover .play-now {
  bottom: 0;
}

/* Leaderboard Section */
.leaderboard {
  background-color: var(--pink-light);
  border-radius: var(--radius-lg);
  margin: var(--spacing-xl) var(--spacing-md);
}

.leaderboard-cards {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.leaderboard-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  width: 220px;
  transition: all 0.3s ease;
}

.leaderboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.crown, .medal {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 1;
}

.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: var(--spacing-md) auto;
  border: 3px solid var(--pink-highlight);
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaderboard-card h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.2rem;
}

.score {
  font-weight: 700;
  color: var(--pink-highlight);
}

.confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(var(--pink-primary) 2px, transparent 2px),
    radial-gradient(var(--mint-accent) 2px, transparent 2px),
    radial-gradient(var(--yellow-secondary) 2px, transparent 2px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px, 15px 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leaderboard-card:hover .confetti {
  opacity: 0.5;
}

.view-more {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.secondary-button {
  display: inline-block;
  background-color: white;
  color: var(--pink-highlight);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid var(--pink-highlight);
}

.secondary-button:hover {
  background-color: var(--pink-highlight);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 125, 182, 0.3);
}

/* Bonuses Section */
.bonuses {
  background-color: var(--mint-light);
  border-radius: var(--radius-lg);
  margin: var(--spacing-xl) var(--spacing-md);
}

.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.bonus-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.bonus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.bonus-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.bonus-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

.badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background-color: var(--mint-accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Disclaimer Section */
.disclaimer {
  background-color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) var(--spacing-md) 0;
  border-radius: var(--radius-lg);
}

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

.disclaimer-content h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
  font-size: 1.2rem;
}

.disclaimer-content p {
  font-size: 0.9rem;
  color: rgba(43, 43, 43, 0.8);
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.footer-links ul {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--pink-highlight);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--pink-highlight);
  transform: translateY(-4px);
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .leaderboard-cards {
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .leaderboard-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}