/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for easy theming */
:root {
    --primary-color: #00ffea;
    --primary-hover: #00d6c1;
    --accent-color: #7db6f3;
    --text-color: #ffffff;
    --dark-text: #000000;
    --bg-blur-light: rgba(255, 255, 255, 0.1);
    --bg-blur-dark: rgba(0, 0, 0, 0.5);
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background-color: #0a0a0a; /* Fallback background */
    position: relative; /* For overlay and scroll-to-top button */
}

body.overlay-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: background 0.3s ease;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-blur-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader-logo {
    width: 150px; /* Adjust size as needed */
    height: auto;
    animation: pulse 1.5s infinite alternate; /* Simple animation */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Background Video */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9) contrast(1.1) saturate(1.1) hue-rotate(6deg);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: transparent; /* Always transparent */
    backdrop-filter: none; /* Always no blur */
    -webkit-backdrop-filter: none; /* Always no blur */
    transition: none; /* Remove transition for background/blur changes */
}

/* REMOVED .navbar.scrolled here to keep it transparent */

.logo img {
    height: 90px;
    cursor: pointer;
    transition: height 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 300;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Profile Button - Reverted to original transparent with border */
.profile-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.profile-btn:hover {
    background: var(--bg-blur-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.profile-btn p {
    margin: 0;
    padding: 0;
}

/* Profile Button Mobile - Reverted to original transparent with border */
.profile-btn-mobile {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.profile-btn-mobile:hover {
    background: var(--bg-blur-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}


/* Hero Section */
.content {
    opacity: 0;
    transition: opacity 1s ease;
}

.content-visible {
    opacity: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 500;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin-bottom: 30px;
    font-family: var(--font-primary);
    font-weight: 300;
}

.cta-btn {
    padding: 18px 50px;
    font-size: 1.4em;
    border: 2px solid var(--accent-color);
    background: var(--bg-blur-light);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    letter-spacing: 1px;
    text-decoration: none;
    font-family: var(--font-primary);
}

.cta-btn:hover {
    background: rgba(125, 182, 243, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 25px rgba(125, 182, 243, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 25px;
    right: 30px;
    transition: transform 0.3s ease;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.4s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Initially off-screen */
    width: 70%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav.open {
    right: 0; /* Slide in */
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 50px;
}

.mobile-nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 400;
    font-family: var(--font-primary);
    transition: color 0.3s ease;
}

.mobile-nav-links li a:hover {
    color: var(--primary-color);
}

.mobile-profile {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* Login Popup */
.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1); /* Darken bg slightly for focus */
    display: none; /* Crucial: Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0; /* Initially invisible */
    pointer-events: none; /* Cannot interact when hidden */
    transition: opacity 0.4s ease, display 0.4s; /* Transition display property as well */
}

.login-popup.active {
    display: flex; /* Crucial: Becomes flex when active */
    opacity: 1; /* Fade in */
    pointer-events: all;
}

.login-content {
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid var(--primary-color);
    padding: 30px 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    color: var(--text-color);
    backdrop-filter: blur(25px);
    transform: scale(0.95); /* Initial state for transition */
    transition: transform 0.4s ease;
}

.login-popup.active .login-content {
    transform: scale(1); /* Scale up to normal size */
}

.login-content h2 {
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 500;
}

.login-content input {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    outline: none;
    background: var(--bg-blur-light);
    color: var(--text-color);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.login-content input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-content input:focus {
    border-color: var(--primary-color);
}

.login-content button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--primary-color);
    color: var(--dark-text);
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: var(--font-primary);
}

.login-content button:hover {
    background: var(--primary-hover);
}

.switch-option {
    margin-top: 15px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.switch-option a {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.close-login {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-login:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* OTP Timer Styling */
.otp-timer {
    font-size: 0.9em;
    color: var(--primary-color);
    margin-top: 5px;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

/* Error Message Styling */
.error-message {
    font-size: 0.8em;
    color: red;
    margin-top: -8px;
    margin-bottom: 5px;
    text-align: left;
}

/* Resend OTP button specific style */
.switch-option #signupResendOtpBtn,
.switch-option #resetResendOtpBtn {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.9em; /* Match surrounding text */
    font-weight: 500;
    color: var(--primary-color); /* Match link color */
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: inline; /* To fit alongside other text */
    width: auto; /* Override button full width */
    margin-top: 0;
    opacity: 0.7;
}

.switch-option #signupResendOtpBtn:hover,
.switch-option #resetResendOtpBtn:hover {
    color: var(--primary-hover);
    opacity: 1;
}

.switch-option #signupResendOtpBtn:disabled,
.switch-option #resetResendOtpBtn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
}

/* Custom Message Box Styles */
.message-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: none; /* Hidden by default */
    z-index: 10000;
    font-size: 0.95em;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    pointer-events: none;
}

.message-box.show {
    display: flex;
    opacity: 1;
    bottom: 30px;
    pointer-events: all;
}

.message-box.success {
    background-color: rgba(40, 167, 69, 0.9);
    border: 1px solid var(--primary-color);
}

.message-box.error {
    background-color: rgba(220, 53, 69, 0.9);
    border: 1px solid red;
}

.message-box.info {
    background-color: rgba(23, 162, 184, 0.9);
    border: 1px solid var(--accent-color);
}

.message-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s ease;
    position: relative;
    right: unset;
    top: unset;
    transform: none;
}

.message-close-btn:hover {
    color: var(--primary-hover);
}


/* --- About Section Styles --- */
.about-section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 255, 234, 0.1);
    border-bottom: 1px solid rgba(0, 255, 234, 0.1);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.about-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 15px;
    background: rgba(20, 20, 30, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
    position: relative;
    z-index: 2;
}

.about-section h2, .projects-section h2, .play-learn-home-section h2 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.about-section p, .projects-section p, .play-learn-home-section p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
    color: #e0e0e0;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* --- Animations for About Section --- */
.rocket-anim, .satellite-anim {
    position: absolute;
    width: clamp(50px, 10vw, 80px);
    height: clamp(50px, 10vw, 80px);
    z-index: 0;
}

.rocket-anim svg, .satellite-anim svg {
    width: 100%;
    height: 100%;
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(125, 182, 243, 0.5));
}

/* Specific positioning for rocket */
.rocket-anim {
    bottom: 10%;
    left: 5%;
    animation: floatRocket 15s ease-in-out infinite alternate;
}

/* Specific positioning for satellite */
.satellite-anim {
    top: 15%;
    right: 5%;
    animation: floatSatellite 18s ease-in-out infinite alternate-reverse;
}

/* Keyframes for Rocket floating animation */
@keyframes floatRocket {
    0% { transform: translate(0, 0) rotate(5deg); }
    50% { transform: translate(20px, -30px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(5deg); }
}

/* Keyframes for Satellite floating animation */
@keyframes floatSatellite {
    0% { transform: translate(0, 0) rotate(-8deg); }
    50% { transform: translate(-25px, 35px) rotate(8deg); }
    100% { transform: translate(0, 0) rotate(-8deg); }
}


/* Projects Section Specific Styles (now includes VSBS-001) */
.projects-section {
    padding: 120px 50px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(0, 255, 234, 0.2);
    border-bottom: 1px solid rgba(0, 255, 234, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 255, 234, 0.1);
    position: relative;
    z-index: 1;
}

.projects-section.light-bg {
    background: rgba(15, 15, 25, 0.75);
}

.projects-section h2 {
    margin-bottom: 40px;
}

.project-vsbs-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.project-vsbs-content h3 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 255, 234, 0.4);
}

.project-vsbs-content p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 30px;
}

.project-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    color: var(--accent-color);
    filter: drop-shadow(0 0 12px rgba(125, 182, 243, 0.6));
}

.project-icon svg {
    width: 100%;
    height: 100%;
}

/* Weather Balloon Animation */
.balloon-anim svg {
    animation: floatBalloon 6s ease-in-out infinite alternate;
}

@keyframes floatBalloon {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.vsbs-learn-more-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--dark-text);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 234, 0.3);
    border: none; /* Ensure no default button border */
    cursor: pointer;
}

.vsbs-learn-more-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 255, 234, 0.5);
}

/* New Animations for Projects Section */
.planet-anim, .nebula-anim {
    position: absolute;
    width: clamp(80px, 15vw, 150px);
    height: clamp(80px, 15vw, 150px);
    z-index: 0;
    color: var(--primary-color);
    opacity: 0.2;
    filter: drop-shadow(0 0 15px rgba(0, 255, 234, 0.4));
}

.planet-anim {
    top: 20%;
    left: 8%;
    animation: rotatePlanet 25s linear infinite;
}

.nebula-anim {
    bottom: 15%;
    right: 10%;
    animation: pulseNebula 20s ease-in-out infinite alternate;
}

@keyframes rotatePlanet {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseNebula {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.2; }
}


/* Placeholder Sections - for visual flow */
.placeholder-section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(125, 182, 243, 0.1);
    border-bottom: 1px solid rgba(125, 182, 243, 0.1);
    position: relative;
    z-index: 1;
    /* REMOVED: .section-height-placeholder was causing issues here */
}

.placeholder-section.light-bg {
    background: rgba(15, 15, 25, 0.75);
}

/* REMOVED: .placeholder-section h2, .placeholder-section p - These are now handled by specific section classes */
/* .placeholder-section h2 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(125, 182, 243, 0.5);
}

.placeholder-section p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
    color: #c0c0c0;
} */

.section-height-placeholder {
    /* This class is now only used for the Upload Zone, which is still a placeholder */
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 40px;
}

/* Scroll-to-Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 255, 234, 0.6);
}

.scroll-to-top-btn .material-symbols-outlined {
    font-size: 30px;
    color: var(--dark-text);
    line-height: 1;
}


/* --- Play & Learn Page Specific Styles --- */


.play-learn-content {
    padding-top: 100px; /* Space for fixed header */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.play-learn-section {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 50px;
    background: rgba(10, 10, 20, 0.85); /* Darker, more opaque background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 255, 234, 0.3);
    border: 1px solid var(--primary-color);
    position: relative; /* Crucial for absolute positioning of animations */
    overflow: hidden; /* Contains animations but allows them to extend out */
}

/* New inner wrapper for play-learn content */
.play-learn-inner-wrapper {
    position: relative; /* Ensure z-index works */
    z-index: 2; /* Keep content above animations */
    max-width: 800px; /* Constrain content width */
    margin: 0 auto; /* Center content */
    padding: 20px; /* Inner padding */
}


.play-learn-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 234, 0.6);
}

.play-learn-section .section-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.top-scores-container {
    background: rgba(20, 20, 30, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(125, 182, 243, 0.2);
    border: 1px solid var(--accent-color);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.top-scores-container h2 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(125, 182, 243, 0.4);
}

#topScoresList {
    list-style: none;
    padding: 0;
    font-size: 1.1em;
    color: #c0c0c0;
}

#topScoresList li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#topScoresList li:last-child {
    border-bottom: none;
}

#topScoresList li span:first-child {
    font-weight: 500;
    color: var(--text-color);
}

#topScoresList li span:last-child {
    color: var(--primary-color);
    font-weight: bold;
}

.game-selection {
    margin-bottom: 40px;
}

.game-selection h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 12px rgba(0, 255, 234, 0.5);
}

/* New: Container for game cards to enable flex layout */
.game-card-container {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    justify-content: center; /* Center cards horizontally */
    gap: 30px; /* Space between cards */
    max-width: 700px; /* Limit width to contain two cards + gap */
    margin: 0 auto; /* Center the container itself */
}

.game-card {
    background: rgba(20, 20, 30, 0.7);
    border-radius: 15px;
    padding: 30px;
    width: calc(50% - 15px); /* Two cards per row with gap */
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.2);
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px; /* Ensure consistent height for cards */
}

.game-card:hover:not(.coming-soon) {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 234, 0.4);
}

.game-card h3 {
    font-size: 1.6em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.game-card p {
    font-size: 0.95em;
    color: #c0c0c0;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

.play-game-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--dark-text);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 234, 0.3);
    border: none; /* Ensure no default button border */
    cursor: pointer;
}

.play-game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 234, 0.5);
}

.play-game-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.game-card.coming-soon {
    opacity: 0.7;
    filter: grayscale(80%);
    border-color: rgba(125, 182, 243, 0.3);
    cursor: not-allowed;
}

.study-materials-section {
    background: rgba(20, 20, 30, 0.7);
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(125, 182, 243, 0.2);
    border: 1px solid var(--accent-color);
}

.study-materials-section h2 {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(125, 182, 243, 0.4);
}

.study-materials-section p {
    font-size: 1.05em;
    color: #c0c0c0;
    margin-bottom: 30px;
}

.study-materials-btn {
    display: inline-block;
    background: #555;
    color: #ccc;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    cursor: not-allowed;
    opacity: 0.7;
    border: none;
    box-shadow: none;
}

.admin-panel-btn {
    margin-top: 40px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ee4c4c);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.admin-panel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

/* New Play & Learn Home Section Styles (for index.html) */
.play-learn-home-section {
    padding: 120px 50px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(125, 182, 243, 0.2); /* Accent color border */
    border-bottom: 1px solid rgba(125, 182, 243, 0.2); /* Accent color border */
    box-shadow: inset 0 0 20px rgba(125, 182, 243, 0.1); /* Accent color shadow */
    position: relative;
    z-index: 1;
    display: flex; /* To center the content wrapper */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Ensure it has enough height to contain content and animations */
    min-height: 100vh;
}

.play-learn-home-section.light-bg {
    background: rgba(15, 15, 25, 0.75);
}

.play-learn-home-content-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(125, 182, 243, 0.2); /* Accent color shadow */
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0; /* Remove top margin if section has padding */
}

.play-learn-home-section h2 {
    color: var(--accent-color); /* Use accent color for H2 */
    text-shadow: 0 0 8px rgba(125, 182, 243, 0.4); /* Accent color shadow */
}

.play-learn-home-section p {
    color: rgba(255, 255, 255, 0.85);
}

/* New Play & Learn Animations */
.shooting-star-anim, .comet-anim {
    position: absolute;
    width: clamp(80px, 15vw, 120px); /* Responsive size */
    height: clamp(80px, 15vw, 120px);
    z-index: 0; /* Behind content wrapper */
    color: var(--accent-color); /* Adjust color as needed */
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(125, 182, 243, 0.5));
}

.shooting-star-anim {
    top: 5%;
    left: -5%; /* Start slightly off-screen */
    animation: shootStar 20s linear infinite;
}

.comet-anim {
    bottom: 10%;
    right: -5%; /* Start slightly off-screen */
    animation: moveComet 25s linear infinite alternate-reverse;
}

@keyframes shootStar {
    0% { transform: translate(0, 0) rotate(20deg); opacity: 0.3; }
    25% { transform: translate(100vw, 50vh) rotate(20deg); opacity: 0.8; } /* Travels across screen */
    26% { opacity: 0; } /* Disappear quickly */
    100% { transform: translate(0, 0) rotate(20deg); opacity: 0.3; } /* Reset for next loop */
}

@keyframes moveComet {
    0% { transform: translate(0, 0) rotate(-15deg); opacity: 0.3; }
    50% { transform: translate(-50vw, 30vh) rotate(-15deg); opacity: 0.6; }
    100% { transform: translate(0, 0) rotate(-15deg); opacity: 0.3; }
}


/* New Animations for Play & Learn Home Section */
.star-cluster-anim, .galaxy-anim {
    position: absolute;
    width: clamp(80px, 15vw, 150px);
    height: clamp(80px, 15vw, 150px);
    z-index: 0;
    color: var(--primary-color); /* Primary color for these animations */
    opacity: 0.2;
    filter: drop-shadow(0 0 15px rgba(0, 255, 234, 0.4));
}

.star-cluster-anim {
    top: 10%; /* Opposite of planet-anim (top-left) */
    right: 8%; /* Opposite of planet-anim (top-left) */
    animation: twinkleStarCluster 20s linear infinite;
}

.galaxy-anim {
    bottom: 10%; /* Opposite of nebula-anim (bottom-right) */
    left: 8%; /* Opposite of nebula-anim (bottom-right) */
    animation: swirlGalaxy 25s ease-in-out infinite alternate;
}

@keyframes twinkleStarCluster {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    25% { transform: scale(1.05) rotate(10deg); opacity: 0.3; }
    50% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    75% { transform: scale(1.05) rotate(-10deg); opacity: 0.3; }
}

@keyframes swirlGalaxy {
    0% { transform: rotate(0deg); opacity: 0.2; }
    50% { transform: rotate(180deg); opacity: 0.3; }
    100% { transform: rotate(360deg); opacity: 0.2; }
}


/* Quiz Game Specific Styles */


.quiz-game-content {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quiz-section {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 50px;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 255, 234, 0.3);
    border: 1px solid var(--primary-color);
}

.quiz-section h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 255, 234, 0.6);
}

#questionText {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 30px;
    min-height: 50px; /* Ensure space for question */
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    background: var(--bg-blur-light);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.option-btn:hover:not(:disabled) {
    background: rgba(125, 182, 243, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.3);
}

.option-btn.correct {
    background-color: rgba(40, 167, 69, 0.7); /* Green for correct */
    border-color: #28a745;
    pointer-events: none; /* Disable after selection */
}

.option-btn.incorrect {
    background-color: rgba(220, 53, 69, 0.7); /* Red for incorrect */
    border-color: #dc3545;
    pointer-events: none; /* Disable after selection */
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.quiz-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--dark-text);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 234, 0.3);
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.quiz-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 234, 0.5);
}

.quiz-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#finalScore {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .profile-btn {
        display: none;
    }

    .profile-btn-mobile {
        display: block;
    }

    .logo img {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 15px 30px;
        font-size: 1.2em;
    }

    /* About and Projects sections adjustments for mobile */
    .about-section, .projects-section, .play-learn-home-section {
        padding: 80px 15px;
    }
    /* Placeholder section still uses default padding */
    .placeholder-section {
        padding: 80px 15px;
    }


    .about-content-wrapper, .project-vsbs-content, .play-learn-home-content-wrapper {
        padding: 20px;
    }

    .about-section h2, .projects-section h2, .placeholder-section h2, .play-learn-home-section h2 {
        font-size: 2rem;
    }

    .about-section p, .projects-section .project-vsbs-content p, .placeholder-section p, .play-learn-home-section p {
        font-size: 0.95rem;
    }

    /* Hide animations on smaller screens to avoid clutter */
    .rocket-anim, .satellite-anim, .planet-anim, .nebula-anim {
        display: none;
    }
    /* Explicitly keep new Play & Learn Home animations visible on mobile */
    .star-cluster-anim, .galaxy-anim {
        display: block; /* Ensure they are not hidden */
        width: clamp(60px, 12vw, 100px); /* Adjust size for mobile */
        height: clamp(60px, 12vw, 100px);
        opacity: 0.3; /* Slightly more opaque for visibility */
    }

    .star-cluster-anim {
        top: 5%; /* Adjust position for mobile */
        right: 2%;
    }

    .galaxy-anim {
        bottom: 5%; /* Adjust position for mobile */
        left: 2%;
    }


    .project-vsbs-content h3 {
        font-size: 1.8em;
    }

    .project-icon {
        width: 80px;
        height: 80px;
    }

    .vsbs-learn-more-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Scroll-to-Top button on mobile */
    .scroll-to-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top-btn .material-symbols-outlined {
        font-size: 25px;
    }

    /* Play & Learn Mobile Styles */
    .play-learn-section {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .play-learn-section h1 {
        font-size: 2em;
    }

    .play-learn-section .section-description {
        font-size: 0.9em;
    }

    .top-scores-container {
        padding: 20px;
    }

    .top-scores-container h2 {
        font-size: 1.5em;
    }

    #topScoresList li {
        font-size: 1em;
    }

    .game-selection h2 {
        font-size: 1.8em;
    }

    .game-card {
        width: 100%; /* Full width on mobile */
        max-width: 280px; /* Constrain slightly */
        padding: 20px;
    }

    .play-game-btn, .study-materials-btn, .admin-panel-btn, .quiz-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Quiz Game Mobile Styles */
    .quiz-section {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .quiz-section h1 {
        font-size: 1.8em;
    }

    #questionText {
        font-size: 1.2em;
    }

    .option-btn {
        padding: 12px 15px;
        font-size: 1em;
    }

    #finalScore {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        height: 60px;
    }

    .hamburger {
        top: 20px;
        right: 20px;
    }

    .mobile-nav {
        width: 85%;
    }

    .login-content {
        padding: 25px 30px;
    }

    .login-content h2 {
        font-size: 1.8em;
    }

    .message-box {
        width: calc(100% - 40px);
        min-width: unset;
    }
}

/* --- Upload Zone Section Styles (from your original file) --- */
.upload-zone-section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 255, 234, 0.1);
    border-bottom: 1px solid rgba(0, 255, 234, 0.1);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.upload-zone-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    background: rgba(20, 20, 30, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
    position: relative;
    z-index: 2;
    width: 100%; /* Ensure it takes full width of its container */
}

.upload-zone-section h2 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.upload-zone-section p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
    color: #e0e0e0;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--dark-text);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 234, 0.3);
    border: none;
    cursor: pointer;
    margin-top: 30px;
    display: flex; /* For icon and text alignment */
    align-items: center;
    gap: 10px;
}

.upload-btn i {
    font-size: 1.2em;
}

.upload-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 255, 234, 0.5);
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 255, 234, 0.1);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 20px;
}

.image-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.image-card .user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.image-card .user-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-text);
    font-weight: bold;
    font-size: 0.9em;
}

.image-card .user-avatar i {
    color: var(--dark-text);
    font-size: 1.2em;
}

.image-card .username {
    font-weight: 600;
    color: var(--primary-color);
}

.image-card .image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for image consistency */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Fallback background for image area */
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
}

.image-card .description {
    padding: 15px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1; /* Allows description to take available space */
    text-align: left;
}

.image-card .like-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.image-card .like-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.5em;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 5px; /* Increase clickable area */
}

.image-card .like-btn:hover:not(:disabled) {
    color: var(--primary-color);
    transform: scale(1.1);
}

.image-card .like-btn.liked {
    color: #ff4d4d; /* Red heart for liked */
}

.image-card .like-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.image-card .like-count {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Upload Modal Specific Styles */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1); /* Darken bg slightly for focus */
    display: none; /* Crucial: Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0; /* Initially invisible */
    pointer-events: none; /* Cannot interact when hidden */
    transition: opacity 0.4s ease, display 0.4s; /* Transition display property as well */
}

.upload-modal.active {
    display: flex; /* Crucial: Becomes flex when active */
    opacity: 1; /* Fade in */
    pointer-events: all;
}

.upload-modal-content {
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid var(--primary-color);
    padding: 30px 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    color: var(--text-color);
    backdrop-filter: blur(25px);
    transform: scale(0.95); /* Initial state for transition */
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-modal.active .upload-modal-content {
    transform: scale(1); /* Scale up to normal size */
}

.upload-modal-content h2 {
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
}

.upload-modal-content form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-modal-content input[type="file"] {
    display: none; /* Hide default file input */
}

.custom-file-upload {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 10px;
}

.custom-file-upload:hover {
    background-color: #6a9edb;
    transform: translateY(-2px);
}

.file-name-display {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -5px;
    margin-bottom: 10px;
}

.image-preview-container {
    width: 100%;
    max-width: 300px;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; /* Allow vertical resizing */
    min-height: 80px;
}

.upload-modal-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.upload-modal-content textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 255, 234, 0.5);
}

.upload-modal-content button[type="submit"] {
    background: var(--primary-color);
    color: var(--dark-text);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    width: 100%;
}

.upload-modal-content button[type="submit"]:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.upload-modal-content button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.close-upload-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-upload-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}


/* Admin Panel Section - NEW STYLES (Added to your existing CSS) */
.admin-panel-section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 255, 234, 0.1);
    border-bottom: 1px solid rgba(0, 255, 234, 0.1);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.admin-panel-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
    width: 100%;
}

.admin-panel-section h2 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.admin-panel-section .section-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
    color: #e0e0e0;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 20px;
}

.admin-image-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.admin-image-card .image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.admin-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-image-card .user-info,
.admin-image-card .description {
    padding: 15px;
    text-align: left;
}

.admin-image-card .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-image-card .user-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-text);
    font-weight: bold;
    font-size: 0.9em;
}

.admin-image-card .user-avatar i {
    color: var(--dark-text);
    font-size: 1.2em;
}

.admin-image-card .username {
    font-weight: 600;
    color: var(--primary-color);
}

.admin-image-card .description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}

.admin-image-card .approval-controls {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.admin-image-card .approve-btn,
.admin-image-card .reject-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1; /* Distribute space evenly */
}

.admin-image-card .approve-btn {
    background-color: #28a745; /* Green */
    color: white;
}

.admin-image-card .approve-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.admin-image-card .reject-btn {
    background-color: #dc3545; /* Red */
    color: white;
}

.admin-image-card .reject-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .profile-btn {
        display: none;
    }

    .profile-btn-mobile {
        display: block;
    }

    .logo img {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 15px 30px;
        font-size: 1.2em;
    }

    /* About and Projects sections adjustments for mobile */
    .about-section, .projects-section, .play-learn-home-section, .upload-zone-section, .admin-panel-section {
        padding: 80px 15px;
    }

    .about-content-wrapper, .project-vsbs-content, .play-learn-home-content-wrapper, .upload-zone-content-wrapper, .admin-panel-content-wrapper {
        padding: 20px;
    }

    .about-section h2, .projects-section h2, .play-learn-home-section h2, .upload-zone-section h2, .admin-panel-section h2 {
        font-size: 2rem;
    }

    .about-section p, .projects-section .project-vsbs-content p, .play-learn-home-section p, .upload-zone-section p, .admin-panel-section p {
        font-size: 0.95rem;
    }

    /* Hide animations on smaller screens to avoid clutter */
    .rocket-anim, .satellite-anim, .planet-anim, .nebula-anim {
        display: none;
    }
    /* Explicitly keep new Play & Learn Home animations visible on mobile */
    .star-cluster-anim, .galaxy-anim {
        display: block; /* Ensure they are not hidden */
        width: clamp(60px, 12vw, 100px); /* Adjust size for mobile */
        height: clamp(60px, 12vw, 100px);
        opacity: 0.3; /* Slightly more opaque for visibility */
    }

    .star-cluster-anim {
        top: 5%; /* Adjust position for mobile */
        right: 2%;
    }

    .galaxy-anim {
        bottom: 5%; /* Adjust position for mobile */
        left: 2%;
    }


    .project-vsbs-content h3 {
        font-size: 1.8em;
    }

    .project-icon {
        width: 80px;
        height: 80px;
    }

    .vsbs-learn-more-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Scroll-to-Top button on mobile */
    .scroll-to-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top-btn .material-symbols-outlined {
        font-size: 25px;
    }

    /* Play & Learn Mobile Styles */
    .play-learn-section {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .play-learn-section h1 {
        font-size: 2em;
    }

    .play-learn-section .section-description {
        font-size: 0.9em;
    }

    .top-scores-container {
        padding: 20px;
    }

    .top-scores-container h2 {
        font-size: 1.5em;
    }

    #topScoresList li {
        font-size: 1em;
    }

    .game-selection h2 {
        font-size: 1.8em;
    }

    .game-card {
        width: 100%; /* Full width on mobile */
        max-width: 280px; /* Constrain slightly */
        padding: 20px;
    }

    .play-game-btn, .study-materials-btn, .admin-panel-btn, .quiz-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Quiz Game Mobile Styles */
    .quiz-section {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .quiz-section h1 {
        font-size: 1.8em;
    }

    #questionText {
        font-size: 1.2em;
    }

    .option-btn {
        padding: 12px 15px;
        font-size: 1em;
    }

    #finalScore {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        height: 60px;
    }

    .hamburger {
        top: 20px;
        right: 20px;
    }

    .mobile-nav {
        width: 85%;
    }

    .login-content {
        padding: 25px 30px;
    }

    .login-content h2 {
        font-size: 1.8em;
    }

    .message-box {
        width: calc(100% - 40px);
        min-width: unset;
    }
}

/* --- Footer Styles --- */
.footer {
    background-color: rgba(10, 10, 15, 0.9); /* Darker, slightly transparent background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-color);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 234, 0.2);
    box-shadow: inset 0 0 15px rgba(0, 255, 234, 0.1);
    position: relative;
    z-index: 1; /* Ensure it's above the video background */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(0, 255, 234, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Policy and Terms Pages Styles --- */
.policy-page-container {
    padding: 120px 50px 60px; /* Adjust top padding for fixed header */
    background-color: rgba(0, 0, 0, 0.85); /* Darker background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1; /* Ensure it's above the video background */
}

.policy-content-wrapper {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    background-color: rgba(20, 20, 30, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
    text-align: left;
}

.policy-content-wrapper h1 {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.policy-content-wrapper h2 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.policy-content-wrapper h3 {
    font-size: 1.4em;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-content-wrapper p,
.policy-content-wrapper ul {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.policy-content-wrapper ul {
    list-style: disc;
    margin-left: 25px;
}

.policy-content-wrapper ul li {
    margin-bottom: 8px;
}

.policy-content-wrapper a {
    color: var(--primary-color);
    text-decoration: underline;
}

.policy-content-wrapper a:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .policy-page-container {
        padding: 100px 20px 40px;
    }

    .policy-content-wrapper {
        padding: 25px;
    }

    .policy-content-wrapper h1 {
        font-size: 2em;
    }

    .policy-content-wrapper h2 {
        font-size: 1.5em;
    }

    .policy-content-wrapper p,
    .policy-content-wrapper ul {
        font-size: 1em;
    }
}
