/* ================== VARIABLES ================== */
:root {
    --primary: #99CDD8;
    --secondary: #FDE803;
    --accent: #F3C3B2;
    --bg: #DAEBE8;
    --green: #27ae60;
    --white: #ffffff;
    --dark: #2D3436;
}

/* ================== RESET ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Baloo 2', cursive;
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ================== CONTAINER ================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================== NAVBAR ================== */
.navbar {
    background: var(--primary);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  gap: 10px; 
}

.logo span {
  color: var(--secondary);
}

.logo-img img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px; 
  transition: transform 0.3s;
}

.logo-img img:hover {
  transform: scale(1.1) rotate(-5deg);
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    position: relative;
    transition: 0.3s;
}
.nav-links a::after {
    content: '';
    height: 3px;
    width: 0;
    background: var(--secondary);
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.score-pill {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 900;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}
.score-pill:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}
/* ==================  Hamburger style ================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s;
}
.hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================== HERO ================== */
.hero-section {
    padding: 180px 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
}
.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero-text h1 span { 
    color: var(--primary); 
}
.hero-text p { 
    font-size: 1.3rem; 
    margin-bottom: 20px; 
}
.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* ================== Floating stars ================== */
.floating-stars span {
    position: absolute;
    animation: floatStar linear infinite;
}
@keyframes floatStar {
    0% { transform: translate(0,0) rotate(0deg); opacity:1; }
    50% { transform: translate(20px,-30px) rotate(180deg); opacity:0.7; }
    100% { transform: translate(0,0) rotate(360deg); opacity:1; }
}
.floating-stars span:nth-child(1){animation-duration:6s;}
.floating-stars span:nth-child(2){animation-duration:5s; animation-delay:1s;}
.floating-stars span:nth-child(3){animation-duration:7s; animation-delay:0.5s;}
.floating-stars span:nth-child(4){animation-duration:4.5s; animation-delay:1.2s;}
.floating-stars span:nth-child(5){animation-duration:5.5s; animation-delay:0.8s;}
.hero-image-box img {
    width: 100%;
    max-width: 250px;
    border-radius: 50px;
    border: 5px solid var(--bg);
    transition: transform 0.3s;
}
.hero-image-box img:hover { 
    transform: translateY(-10px) rotate(-3deg) scale(1.05);
 }

/* ================== SECTIONS ================== */
.section-padding { padding: 100px 0; }
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
}

/* ================== SUBJECTS GRID ================== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 25px;
}
.card {
    background: var(--white);
    border-radius: 35px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s, box-shadow 0.4s, background 0.3s;
    cursor: pointer;
}
.card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 15px 0;
    border-radius: 20px;
    transition: transform 0.3s;
}
.card:hover {
    transform: scale(1.1) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.card:hover img { transform: scale(1.15); }
.card:hover h3 { color: var(--secondary); transform: translateY(-5px); }
.btn-card {
    background: var(--secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s, background 0.3s;
}
.btn-card:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: var(--white);
}

/* ================== GAMES GRID ================== */
.bg-dark-gaming { background: var(--dark); border-radius: 40px; color:white; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 30px; }
.game-card { border-radius: 30px; overflow: hidden; position: relative; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.game-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.game-card:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.game-card:hover img { transform: scale(1.15); }
.game-overlay { position: absolute; bottom: 0; width: 100%; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; transition: background 0.3s; }
.game-card:hover .game-overlay { background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.game-overlay h3 { margin-bottom: 5px; }
.btn-play-game {
    background: var(--secondary);
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.3s, background 0.3s;
}
.btn-play-game:hover { background: var(--primary); transform: scale(1.05); }

/* ================== STUDY & PARENTS ================== */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.split-grid img { width: 100%; max-width: 400px; height: auto; border-radius: 25px; object-fit: cover; display: block; margin: auto; transition: transform 0.3s, box-shadow 0.3s; }
.split-grid img:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.study-stats { display: flex; gap: 15px; font-weight: bold; margin: 15px 0; }
.study-bg-green { background: var(--accent); border-radius: 40px; padding: 50px 0; }
.btn-secondary { background: var(--primary); color: var(--white); padding: 12px 25px; border-radius: 50px; border: none; font-weight: bold; font-size: 1.05rem; cursor: pointer; transition: transform 0.3s, background 0.3s, box-shadow 0.3s; }
.btn-secondary:hover { transform: scale(1.05) translateY(-3px); background: var(--secondary); color: var(--dark); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* ================== Progress Bar ================== */
.progress-wrapper {
  max-width: 600px;
  margin: auto;
}

.progress-label {
  font-weight: bold;
  margin: 10px 0;
}

.progress {
  background: #eee;
  border-radius: 50px;
  overflow: hidden;
  height: 28px;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  animation: grow 2s ease;
}

.progress-fill.green {
  background: var(--green);
}

@keyframes grow {
  from { width: 0; }
}
/* ================== Animated Bubbles Background ================== */
.bubbles-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bubbles-bg span {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: bubble 15s infinite linear;
}

.bubbles-bg span:nth-child(odd) {
  background: rgba(255,255,255,0.6);
}

.bubbles-bg span:nth-child(1){ left:10%; animation-duration:12s; width:30px; height:30px;}
.bubbles-bg span:nth-child(2){ left:20%; animation-duration:18s;}
.bubbles-bg span:nth-child(3){ left:35%; animation-duration:14s; width:25px; height:25px;}
.bubbles-bg span:nth-child(4){ left:50%; animation-duration:20s;}
.bubbles-bg span:nth-child(5){ left:65%; animation-duration:16s;}
.bubbles-bg span:nth-child(6){ left:75%; animation-duration:22s; width:20px; height:20px;}
.bubbles-bg span:nth-child(7){ left:85%; animation-duration:19s;}
.bubbles-bg span:nth-child(8){ left:95%; animation-duration:13s;}

@keyframes bubble {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-120vh) scale(1.3); opacity: 0; }
}
/* ================== Leaderboard ================== */
.leaderboard {
  list-style: none;
  max-width: 400px;
  margin: auto;
  padding: 0;
}

.leaderboard li {
  background: white;
  margin: 12px 0;
  padding: 15px 20px;
  border-radius: 30px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s;
  color: var(--dark);
}

.leaderboard li span {
  color: var(--primary); 
}

.leaderboard li:hover {
  transform: scale(1.05);
}

.leaderboard li:nth-child(1){border-left:8px solid gold;}
.leaderboard li:nth-child(2){border-left:8px solid silver;}
.leaderboard li:nth-child(3){border-left:8px solid #cd7f32;}
.leaderboard li:nth-child(4){border-left:8px solid #9b2fa8;}

/* ================== FOOTER ================== */
.footer { padding: 40px; text-align: center; font-weight: bold; font-size: 1.1rem; background: var(--primary); color: var(--white); border-radius: 40px 40px 0 0; }

/* ================== Mascot ================== */
.mascot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 3.5rem;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.mascot-msg {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
html, body {
    overflow-x: hidden; 
    width: 100%;
}

