@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@800;900&family=Quicksand:wght@500;700&display=swap');

:root {
    --primary: #99CDD8;
    --bg: #DAEBE8;
    --yellow: #FDE803;
    --pink: #F3C3B2;
    --dark: #2D3436;
    --white: #ffffff;
}

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

body {
    background: var(--bg);
    color: var(--dark);
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

.navbar {
    background: var(--primary);
    padding: 15px 0;
    position: fixed; width:100%; top:0; z-index:1000;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

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

.logo { font-family:'Outfit', sans-serif; font-size:1.8rem; font-weight:900; color: var(--white); }
.logo span { color: var(--yellow); }

.nav-links { display:flex; list-style:none; gap:20px; }
.nav-links a { text-decoration:none; color: var(--white); font-weight:700; transition:0.3s; }
.nav-links a:hover { color: var(--yellow); transform: scale(1.1); }

.score-pill { 
    background: var(--white); 
    padding:10px 20px; 
    border-radius:50px; 
    color: var(--primary); 
    font-weight: 900;
    cursor: pointer;
}

.section-padding { padding: 80px 0; }

.section-title {
    font-family:'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 60px;
    text-align: center;
}

.hero-section { padding:180px 0 80px; background: var(--white); border-radius:0 0 50px 50px; }

.hero-grid { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; }
.hero-text h1 span { color: var(--primary); background: linear-gradient(transparent 70%, #fff2ac 30%); }
.hero-text p { font-size: 1.5rem; margin-bottom: 30px; color: #555; }

.hero-image-box { flex: 1; text-align: right; }
.hero-image-box img { width: 100%; max-width: 280px; border-radius: 30px; box-shadow: 15px 15px 0 var(--primary); }

.subjects-grid, .games-grid, .video-grid, .challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card, .leader-card, .video-item, .game-card, .challenge-card {
    background: var(--white);
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover { transform: translateY(-10px); }

.btn-primary, .btn-card, .btn-play-game, .btn-secondary {
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 20px;
    display: inline-block;
    transition: 0.3s;
    text-decoration: none;
}

.btn-primary { background: #FF4757; color: white; box-shadow: 0 6px 0 #cc3a46; }
.btn-card { background: #2ED573; color: white; box-shadow: 0 6px 0 #24a85b; }
.btn-play-game { background: #1E90FF; color: white; box-shadow: 0 6px 0 #1873cc; }
.btn-secondary { background: #FFA502; color: white; box-shadow: 0 6px 0 #cc8402; }

button:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.2); }

.leaderboard-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.leader-card img { width: 100px; height: 100px; object-fit: cover; border: 4px solid var(--primary); border-radius: 50%; }

.challenge-card { position: relative; overflow: hidden; height: 350px; padding: 0; }
.challenge-card img { width: 100%; height: 100%; object-fit: cover; }
.challenge-overlay { position: absolute; bottom: 0; background: rgba(255, 255, 255, 0.9); width: 100%; padding: 20px; }

.challenge-input {
    width: 100%; max-width: 500px; display: block; margin: 0 auto 30px;
    padding: 15px 25px; border-radius: 50px; border: 3px solid var(--primary);
    font-family: 'Quicksand', sans-serif; outline: none;
}

.footer { padding:40px; text-align:center; background: var(--dark); color: white; margin-top: 50px; border-radius: 40px 40px 0 0; }
#new-skills {
    padding: 80px 0;
    font-family: 'Quicksand', sans-serif;
    font-style: italic;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-style: italic;
    font-weight: 900;
}

.section-title span {
    color: #99CDD8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.skill-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-15px) rotate(2deg);
    border-color: #FDE803;
}

.video-container {
    width: 100%;
    height: 220px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FDE803;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2D3436;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.skill-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #2D3436;
}

.skill-card p {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 25px;
}

.btn-primary {
    background: #FDE803;
    color: #2D3436;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 900;
    border: none;
    padding: 15px 45px;
    border-radius: 25px;
    box-shadow: 0 6px 0 #d4c202;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.2rem;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #64b9ca;
}

@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
}
.navbar {
    background: #99CDD8;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    font-family: 'Quicksand', sans-serif;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
}

.logo span { color: #FDE803; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 15px;
    transition: 0.3s;
}

.nav-links li a:hover:not(.btn-yellow) {
    background: rgba(255,255,255,0.2);
}

.btn-yellow {
    background: #FDE803;
    color: #2D3436 !important;
    box-shadow: 0 4px 0 #d4c202;
}

/* Dropdown Logic */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 10px;
    z-index: 1;
    border: 3px solid #FDE803;
    transform: rotate(-2deg); */
    margin-top: 10px;
}

.dropdown-content a {
    color: #2D3436 !important;
    padding: 12px 16px;
    display: block;
    border-radius: 12px;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    transform: translateX(5px);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) rotate(-2deg); }
    to { opacity: 1; transform: translateY(0) rotate(-2deg); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    font-style: italic;
    cursor: pointer;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

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

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

@media (max-width: 768px) {
    .logo {
        font-size: 1.4rem;
    }
    .logo-img {
        width: 40px;
        height: 40px;
    }
}