/* Custom Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

html {
    scroll-behavior: smooth;
}
/* ===== ANIMATED SUPERHERO BACKGROUND ===== */
.superhero-background {
    background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
    position: relative;
    overflow: hidden;
}
.superhero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}


.superhero-background::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    animation: rotate 15s linear infinite;
    z-index: 0;
}

.superhero-background::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 75% 80%, rgba(255, 209, 102, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 25% 20%, rgba(102, 255, 209, 0.15) 0%, transparent 25%);
    animation: pulse 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Ensure content stays above background effects */
.superhero-background > * {
    position: relative;
    z-index: 1;
}

.hero-main-content {
    margin-top: 80px; /* Prevents navbar overlap */
    padding: 2rem 0;
}
.hero-character {
    animation: float 3s ease-in-out infinite;
}

.course-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.course-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    text-align: left;
}

.course-card.active .course-details {
    max-height: 500px;
    margin-top: 1rem;
}

.download-btn {
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Age Filter */
.age-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.age-option {
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.2);
    font-weight: 500;
}

.age-option.active {
    background: #3b82f6;
    color: white;
}

.course-recommendation {
    display: none;
}

.course-recommendation.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Progress Bars */
.progress-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 800px;
}

.progress-bar {
    height: 24px;
    background: #e0f2fe;
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    transition: width 0.5s;
}

.badge {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-left: 8px;
}

/* Age filter */
.age-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.age-option {
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.2);
    font-weight: 500;
}

.age-option.active {
    background: #3b82f6;
    color: white;
}

.course-recommendation {
    display: none;
}

.course-recommendation.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

/* About Us Section */
.about-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    overflow: hidden;
}

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

/* Why Choose Us */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Student Progress */
.student-progress {
    display: none;
}

.student-progress.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Search box styles */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

#student-name {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

#student-name:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f3f4f6;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #6b7280;
}

/* Navbar styles */
.nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #fcd34d;
    transform: translateY(-2px);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Footer styles */
.footer-logo {
    transition: transform 0.3s;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* Contact Form Styles */
.contact-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Demo Form Styles */
.demo-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.demo-form input,
.demo-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s;
}

.demo-form input:focus,
.demo-form select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Send Options Modal */
.send-options {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.send-options.active {
    display: flex;
}

.send-options-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.success-message.active {
    display: flex;
}

.success-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

/* Testimonials Section */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #F59E0B;
}

.testimonial-text {
    font-style: italic;
    color: #4B5563;
    line-height: 1.6;
}

.testimonial-author img {
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-author img {
    border-color: #3B82F6;
    transform: scale(1.1);
}




/* Footer with Animated Background */
.footer-gradient {
    background: linear-gradient(135deg, #002998 0%, #554b93 100%);
    position: relative;
    overflow: hidden;
}

.footer-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.math-symbol, .learning-icon {
    position: absolute;
    color: rgba(172, 186, 255, 0.15);
    font-size: 1.5rem;
    animation: float 6s infinite linear;
}

.math-symbol:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.math-symbol:nth-child(2) {
    top: 25%;
    left: 80%;
    animation-delay: 1s;
}
.math-symbol:nth-child(3) {
    top: 50%;
    left: 15%;
    animation-delay: 2s;
}
.math-symbol:nth-child(4) {
    top: 65%;
    left: 70%;
    animation-delay: 3s;
}
.math-symbol:nth-child(5) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.learning-icon:nth-child(6) {
    top: 15%;
    left: 30%;
    animation-delay: 0.5s;
}
.learning-icon:nth-child(7) {
    top: 40%;
    left: 85%;
    animation-delay: 1.5s;
}
.learning-icon:nth-child(8) {
    top: 60%;
    left: 20%;
    animation-delay: 2.5s;
}
.learning-icon:nth-child(9) {
    top: 75%;
    left: 60%;
    animation-delay: 3.5s;
}

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

.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}



/* Popup Specific Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 350px; /* Make it simple and short */
    width: 90%; /* Responsive width */
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.popup.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.close-button:hover {
    color: #555;
}

.gift-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    animation: bounce 2s infinite; /* Keep the bounce animation */
}

.popup-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.popup-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* Countdown Styles */
.countdown-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 20px auto;
}

.progress-ring {
    transform: rotate(-90deg); /* Start from top */
    position: absolute;
    top: 0;
    left: 0;
}

.progress-ring-track {
    stroke: #e0e0e0;
    fill: none;
}

.progress-ring-bar {
    stroke: #ffcc00; /* Yellow stroke for countdown */
    fill: none;
    transition: stroke-dashoffset 1s linear; /* Smooth animation */
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
    color: #ffcc00; /* Yellow number */
}

.countdown-text {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

/* CTA Button (original style) */
.cta-button {
  display: inline-block;
  background: #ffcc00; /* Yellow */
  color: #1f2937;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px; /* Fully rounded */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.cta-button:hover {
  background: #ffdb4d; /* Lighter yellow on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Thank You Message styles */
.thank-you-message {
    padding-top: 20px; /* Add some space if the gift icon is there */
}

.thank-you-message h2 {
    color: #28a745; /* Green for success */
}

.thank-you-message p {
    color: #333;
}


/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f00; /* Default color */
    top: -20px;
    z-index: 10000;
    animation: fall 5s ease-out forwards;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Custom Animations - Ensure these are present for gift icon bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}


/* BROCHURE DOWNLOAD BUTTON */

/* Floating Button */
#floatingBrochure {
  transition: all 0.3s ease;
}

#floatingBrochure:hover {
  transform: scale(1.1);
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}