/* Enhanced Kid-Friendly Animations and Interactions */

/* Navigation Header Contrast Fixes */
.header-enhanced {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 2px solid rgba(255, 110, 199, 0.2);
    transition: all 0.3s ease;
}

.header-enhanced.header-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.logo-text h1 {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Fredoka One', cursive;
}

.logo-text h1 a {
    color: #2c3e50 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-text h1 a:hover {
    color: #FF6EC7 !important;
    text-shadow: 0 2px 10px rgba(255, 110, 199, 0.3);
}

.logo-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666 !important;
    font-weight: 500;
}

/* Enhanced Navigation Menu */
.nav-menu ul li a {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu ul li a:hover,
.nav-menu ul li.active a {
    color: #ffffff !important;
    background: linear-gradient(135deg, #FF6EC7, #4AA3F0) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 110, 199, 0.3);
}

.nav-menu ul li a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-menu ul li a:hover:before {
    left: 100%;
}

.nav-menu .get-started a {
    background: linear-gradient(135deg, #4AD59F, #4AA3F0) !important;
    color: #ffffff !important;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(74, 213, 159, 0.3);
}

.nav-menu .get-started a:hover {
    background: linear-gradient(135deg, #FFD93D, #FF6EC7) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 217, 61, 0.4);
}

/* Feature Cards Contrast Fixes */
.features.section-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative;
}

.features.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><polygon fill="rgba(255,110,199,0.05)" points="0,0 1000,50 1000,200 0,150"/></svg>') no-repeat center;
    background-size: cover;
}

.features .container {
    position: relative;
    z-index: 1;
}

.features .section-title h2 {
    color: #2c3e50 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 2.5rem;
}

.features .section-title p {
    color: #555 !important;
    font-size: 1.2rem;
    font-weight: 500;
}

.feature-card-enhanced {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 110, 199, 0.1) !important;
    border-radius: 20px !important;
    padding: 35px 25px !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FF6EC7, #4AA3F0, #4AD59F, #FFD93D);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-enhanced:hover::before {
    opacity: 1;
}

.feature-card-enhanced:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.feature-card-enhanced h4 {
    color: #2c3e50 !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
    line-height: 1.3;
}

.feature-card-enhanced p {
    color: #555 !important;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0;
}

.feature-card-enhanced i {
    font-size: 3rem !important;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FF6EC7, #4AA3F0) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    transition: all 0.3s ease;
}

.feature-card-enhanced:hover i {
    background: linear-gradient(135deg, #4AD59F, #FFD93D) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    transform: scale(1.2) rotate(5deg);
}

/* Enhanced Magic Sparkles */
.magic-sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #FFD93D, #FF6EC7);
    border-radius: 50%;
    opacity: 0;
    animation: enhancedSparkle 3s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.sparkle-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.sparkle-3 {
    bottom: 20%;
    left: 25%;
    animation-delay: 2s;
}

@keyframes enhancedSparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

/* Feature Image Enhancement */
.features .image {
    position: relative;
}

.features .image img {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.features .image:hover img {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Hero Section Text Readability Fixes */
.hero-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #2c3e50 !important;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    color: #34495e !important;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: none;
}

/* Enhanced Footer Styling */
.footer-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><polygon fill="rgba(255,255,255,0.05)" points="0,200 1000,200 1000,50 0,150"/></svg>') no-repeat center;
    background-size: cover;
}

.footer-top {
    padding: 60px 0 40px 0;
    position: relative;
    z-index: 1;
}

.footer-info h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Fredoka One', cursive;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo img {
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.footer-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #FFD93D;
    font-family: 'Fredoka One', cursive;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-family: 'Fredoka One', cursive;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FFD93D, #FF6EC7);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(10px);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-links ul li a:hover {
    color: #FFD93D;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.footer-links ul li i {
    color: #FF6EC7;
    margin-right: 8px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    color: #4AD59F;
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item a {
    color: #FFD93D;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6EC7, #4AA3F0);
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFD93D, #4AD59F);
}

.newsletter-signup {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.newsletter-signup h5 {
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.newsletter-input {
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

.newsletter-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #FFD93D, #FF6EC7);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
}

.footer-badge {
    text-align: center;
}

.badge-text {
    background: linear-gradient(135deg, #FFD93D, #FF6EC7);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contact Section Improvements */
.contact {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,50 1000,200 0,150"/></svg>') no-repeat center;
    background-size: cover;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-title h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact .section-title p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
}

.contact .info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact .info:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.contact .info i {
    color: #f5576c !important;
    text-shadow: 0 2px 10px rgba(245, 87, 108, 0.3);
}

.contact .info h4 {
    color: #2c3e50 !important;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 15px;
}

.contact .info a {
    color: #f5576c !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact .info a:hover {
    color: #2c3e50 !important;
    text-shadow: 0 2px 10px rgba(44, 62, 80, 0.3);
}

.contact-form-enhanced {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

.contact-form-enhanced input,
.contact-form-enhanced textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(245, 87, 108, 0.2) !important;
    color: #2c3e50 !important;
    font-weight: 500;
}

.contact-form-enhanced input:focus,
.contact-form-enhanced textarea:focus {
    border-color: #f5576c !important;
    background: #ffffff !important;
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.2) !important;
}

.contact-form-enhanced button {
    background: linear-gradient(135deg, #f5576c, #f093fb) !important;
    border: none !important;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
}

.contact-form-enhanced button:hover {
    background: linear-gradient(135deg, #f093fb, #FFD93D) !important;
    transform: translateY(-3px) scale(1.05);
}

/* Loading Screen Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD93D, #FF6EC7, #4AA3F0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1s ease-in-out 2s forwards;
}

.loading-character {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    animation: bounce 1.5s infinite;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* Enhanced Educational Floating Elements */

/* Smart positioning system to avoid button conflicts */
.floating-safe-zone {
    pointer-events: none;
    z-index: 1;
}

/* Letter floating elements - Spread across left and right edges */
.floating-letter {
    position: fixed;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: letterFloat 8s ease-in-out infinite;
    z-index: 10;
    pointer-events: auto;
}

.floating-letter:hover {
    transform: scale(1.3) rotate(10deg);
    animation-play-state: paused;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
}

.letter-a {
    top: 12%;
    left: 3%;
    animation-delay: 0s;
}

.letter-b {
    top: 50%;
    right: 4%;
    animation-delay: 2s;
}

.letter-c {
    bottom: 35%;
    left: 6%;
    animation-delay: 4s;
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
    75% { transform: translateY(-20px) rotate(5deg); }
}

/* Number floating elements - Positioned in corners and middle areas */
.floating-number {
    position: fixed;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: numberBounce 6s ease-in-out infinite;
    z-index: 11;
    pointer-events: auto;
}

.floating-number:hover {
    transform: scale(1.4) rotate(-10deg);
    animation-play-state: paused;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));
}

.number-1 {
    top: 18%;
    right: 20%;
    animation-delay: 1s;
}

.number-2 {
    top: 70%;
    left: 25%;
    animation-delay: 3s;
}

.number-3 {
    bottom: 10%;
    right: 25%;
    animation-delay: 5s;
}

@keyframes numberBounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    30% { transform: translateY(-12px) scale(1.05); }
    60% { transform: translateY(-6px) scale(0.98); }
}

/* Animal floating elements - Spread across different screen areas */
.floating-animal {
    position: fixed;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: animalWiggle 10s ease-in-out infinite;
    z-index: 12;
    pointer-events: auto;
}

.floating-animal:hover {
    transform: scale(1.2) rotate(8deg);
    animation-play-state: paused;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.animal-cat {
    top: 30%;
    left: 1%;
    animation-delay: 0.5s;
}

.animal-dog {
    top: 60%;
    right: 2%;
    animation-delay: 3.5s;
}

.animal-bird {
    bottom: 45%;
    left: 20%;
    animation-delay: 6.5s;
}

@keyframes animalWiggle {
    0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg); }
    25% { transform: translateX(8px) translateY(-10px) rotate(2deg); }
    50% { transform: translateX(-5px) translateY(-5px) rotate(-1deg); }
    75% { transform: translateX(12px) translateY(-15px) rotate(3deg); }
}

/* Educational bubbles - Positioned in central areas to avoid edge conflicts */
.educational-bubble {
    position: fixed;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bubbleDrift 12s linear infinite;
    z-index: 8;
    pointer-events: auto;
    opacity: 0.8;
}

.educational-bubble:hover {
    transform: scale(1.3);
    opacity: 1;
    animation-play-state: paused;
}

.bubble-star {
    top: 22%;
    left: 30%;
    animation-delay: 1s;
}

.bubble-heart {
    top: 75%;
    right: 35%;
    animation-delay: 4s;
}

.bubble-diamond {
    bottom: 25%;
    left: 35%;
    animation-delay: 7s;
}

@keyframes bubbleDrift {
    0% { transform: translateX(0px) translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateX(15px) translateY(-20px) rotate(180deg); }
    90% { opacity: 0.8; }
    100% { transform: translateX(30px) translateY(-40px) rotate(360deg); opacity: 0; }
}

/* Learning symbols - Corner positions as decorative elements */
.floating-symbol {
    position: fixed;
    animation: symbolRotate 15s linear infinite;
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
}

.symbol-book {
    top: 8%;
    right: 15%;
    animation-delay: 2s;
}

.symbol-pencil {
    bottom: 15%;
    right: 5%;
    animation-delay: 8s;
}

@keyframes symbolRotate {
    0% { transform: rotate(0deg) translateY(0px); }
    25% { transform: rotate(90deg) translateY(-10px); }
    50% { transform: rotate(180deg) translateY(-5px); }
    75% { transform: rotate(270deg) translateY(-15px); }
    100% { transform: rotate(360deg) translateY(0px); }
}

/* SVG animations */
.letter-svg {
    animation: svgGlow 3s ease-in-out infinite;
}

.number-svg {
    animation: svgPulse 2s ease-in-out infinite;
}

.animal-svg {
    animation: svgBreathe 4s ease-in-out infinite;
}

@keyframes svgGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 107, 107, 0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6)); }
}

@keyframes svgPulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(116, 185, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 10px rgba(116, 185, 255, 0.7)); }
}

@keyframes svgBreathe {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 183, 77, 0.3)); }
    50% { filter: drop-shadow(0 0 6px rgba(255, 183, 77, 0.5)); }
}

/* Debug mode to visualize positioning (remove after testing) */
.debug-floating .floating-letter,
.debug-floating .floating-number,
.debug-floating .floating-animal,
.debug-floating .educational-bubble {
    border: 2px dashed rgba(255, 0, 0, 0.5);
    background: rgba(255, 255, 0, 0.1);
}

.debug-floating .floating-letter::before,
.debug-floating .floating-number::before,
.debug-floating .floating-animal::before,
.debug-floating .educational-bubble::before {
    content: attr(class);
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 10px;
    color: red;
    background: white;
    padding: 2px;
    border-radius: 2px;
    white-space: nowrap;
}

/* Enhanced positioning with viewport calculations */
.floating-letter,
.floating-number,
.floating-animal,
.educational-bubble {
    /* Ensure minimum distances from viewport edges */
    min-width: 50px;
    min-height: 50px;
}

/* Position matrix for better distribution */
.letter-a {
    top: 12vh;  /* 12% of viewport height */
    left: 3vw;  /* 3% of viewport width */
    animation-delay: 0s;
}

.letter-b {
    top: 50vh;
    right: 4vw;
    animation-delay: 2s;
}

.letter-c {
    bottom: 35vh;
    left: 6vw;
    animation-delay: 4s;
}

.number-1 {
    top: 18vh;
    right: 20vw;
    animation-delay: 1s;
}

.number-2 {
    top: 70vh;
    left: 25vw;
    animation-delay: 3s;
}

.number-3 {
    bottom: 10vh;
    right: 25vw;
    animation-delay: 5s;
}

.animal-cat {
    top: 30vh;
    left: 1vw;
    animation-delay: 0.5s;
}

.animal-dog {
    top: 60vh;
    right: 2vw;
    animation-delay: 3.5s;
}

.animal-bird {
    bottom: 45vh;
    left: 20vw;
    animation-delay: 6.5s;
}

.bubble-star {
    top: 22vh;
    left: 30vw;
    animation-delay: 1s;
}

.bubble-heart {
    top: 75vh;
    right: 35vw;
    animation-delay: 4s;
}

.bubble-diamond {
    bottom: 25vh;
    left: 35vw;
    animation-delay: 7s;
}

.symbol-book {
    top: 8vh;
    right: 15vw;
    animation-delay: 2s;
}

.symbol-pencil {
    bottom: 15vh;
    right: 5vw;
    animation-delay: 8s;
}

/* Hero section specific positioning */
#hero .floating-letter,
#hero .floating-number,
#hero .floating-animal {
    /* Avoid hero buttons area */
    filter: blur(0.5px);
    opacity: 0.7;
}

/* Header collision avoidance */
header ~ .floating-letter,
header ~ .floating-number,
header ~ .floating-animal {
    top: max(80px, var(--top, 15%));
}

/* Enhanced interaction feedback */
.floating-letter:active,
.floating-number:active,
.floating-animal:active,
.educational-bubble:active {
    transform: scale(0.9);
    filter: brightness(1.2);
}

/* Floating elements that avoid fixed buttons */
.btn-floating-safe {
    position: relative;
    z-index: 100;
}

/* Click ripple effect for educational elements */
.floating-letter::after,
.floating-number::after,
.floating-animal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s ease-out;
}

.floating-letter:active::after,
.floating-number:active::after,
.floating-animal:active::after {
    width: 100px;
    height: 100px;
    opacity: 1;
}

/* Educational achievement animations */
@keyframes educationalSuccess {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.educational-success {
    animation: educationalSuccess 0.6s ease-in-out;
}

/* Smart z-index management */
.floating-letter { z-index: 10; }
.floating-number { z-index: 11; }
.floating-animal { z-index: 12; }
.educational-bubble { z-index: 8; }
.floating-symbol { z-index: 5; }

/* Button safe zones */
.hero-buttons,
.nav-menu,
.get-started {
    position: relative;
    z-index: 100;
}

/* Mobile responsive floating elements */
@media (max-width: 768px) {
    .floating-letter,
    .floating-number,
    .floating-animal {
        display: none; /* Hide on mobile to avoid interference */
    }

    .educational-bubble {
        width: 30px;
        height: 30px;
    }

    .floating-symbol {
        opacity: 0.3;
        animation-duration: 20s;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .floating-letter,
    .floating-number,
    .floating-animal {
        transform: scale(0.8);
    }

    .floating-letter:hover,
    .floating-number:hover,
    .floating-animal:hover {
        transform: scale(1.1) rotate(5deg);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .floating-letter svg,
    .floating-number svg,
    .floating-animal svg,
    .educational-bubble svg {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .floating-letter,
    .floating-number,
    .floating-animal,
    .educational-bubble,
    .floating-symbol {
        animation: none;
    }

    .floating-letter:hover,
    .floating-number:hover,
    .floating-animal:hover {
        transform: scale(1.1);
    }
}

/* Enhanced Floating Elements (keeping legacy support) */
.floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    animation: floatBubble 15s infinite linear;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.bubble-1 { width: 40px; height: 40px; left: 10%; animation-delay: 0s; }
.bubble-2 { width: 60px; height: 60px; left: 20%; animation-delay: 3s; }
.bubble-3 { width: 30px; height: 30px; left: 80%; animation-delay: 6s; }
.bubble-4 { width: 50px; height: 50px; left: 70%; animation-delay: 9s; }
.bubble-5 { width: 35px; height: 35px; left: 50%; animation-delay: 12s; }

@keyframes floatBubble {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Interactive Hero Characters */
.hero-character {
    position: absolute;
    font-size: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: characterFloat 4s ease-in-out infinite;
}

.hero-character:hover {
    transform: scale(1.2) rotate(15deg);
    animation-play-state: paused;
}

.character-1 { top: 20%; right: 15%; animation-delay: 0s; }
.character-2 { top: 60%; left: 10%; animation-delay: 1s; }
.character-3 { bottom: 20%; right: 25%; animation-delay: 2s; }

@keyframes characterFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Animated Call-to-Action Buttons */
.btn-animated {
    position: relative;
    overflow: hidden;
    border-radius: 50px !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-animated:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-animated:hover:before {
    left: 100%;
}

.btn-animated:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation-play-state: paused;
}

@keyframes pulse {
    0% { box-shadow: 0 10px 20px rgba(255,110,199,0.3); }
    50% { box-shadow: 0 15px 30px rgba(255,110,199,0.5); }
    100% { box-shadow: 0 10px 20px rgba(255,110,199,0.3); }
}

/* Enhanced Feature Cards */
.feature-card-enhanced {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    cursor: pointer;
}

.feature-card-enhanced:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(50px);
}

.feature-card-enhanced .card-front {
    backface-visibility: hidden;
}

.feature-card-enhanced .magic-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD93D;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s infinite;
}

.sparkle-1 { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle-2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.sparkle-3 { bottom: 15%; left: 30%; animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Interactive Navigation */
.nav-item-enhanced {
    position: relative;
}

.nav-item-enhanced::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6EC7, #FFD93D);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-item-enhanced:hover::after {
    width: 100%;
}

/* Animated Icons */
.animated-icon {
    transition: all 0.3s ease;
    animation: iconBreathe 3s ease-in-out infinite;
}

.animated-icon:hover {
    animation-play-state: paused;
    transform: scale(1.3) rotate(15deg);
}

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

/* Rainbow Text Effect */
.rainbow-text {
    background: linear-gradient(45deg, #FF6EC7, #FFD93D, #4AA3F0, #4AD59F, #8B5CF6);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Parallax Shapes */
.parallax-shape {
    position: absolute;
    opacity: 0.1;
    animation: parallaxFloat 20s linear infinite;
}

.parallax-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid #FF6EC7;
}

.parallax-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4AA3F0;
}

.parallax-square {
    width: 45px;
    height: 45px;
    background: #4AD59F;
    transform: rotate(45deg);
}

@keyframes parallaxFloat {
    0% { transform: translateX(-100px) translateY(0) rotate(0deg); }
    100% { transform: translateX(calc(100vw + 100px)) translateY(-50px) rotate(360deg); }
}

/* Testimonial Enhancements */
.testimonial-enhanced {
    position: relative;
    overflow: hidden;
}

.testimonial-enhanced::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 30px;
    animation: starTwinkle 2s infinite;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
}

/* FAQ Accordion Enhancements */
.faq-item-enhanced {
    position: relative;
}

.faq-item-enhanced::before {
    content: '🤔';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    transition: all 0.3s ease;
}

.faq-item-enhanced.active::before {
    content: '😊';
    animation: bounce 0.5s ease;
}

/* About Section Animation */
.about-content-animated {
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Contact Form Enhancements */
.contact-form-enhanced {
    position: relative;
}

.contact-form-enhanced::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD93D, transparent);
    border-radius: 50%;
    opacity: 0.3;
    animation: contactGlow 4s ease-in-out infinite;
}

@keyframes contactGlow {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

/* Scroll Triggered Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

    /* Contact card and form styling */
    .contact-card {
        background: rgba(255,255,255,0.95);
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.04);
    }

    .contact-card .form-control {
        border-radius: 10px;
        padding: 14px 16px;
        border: 1px solid rgba(34,34,34,0.08);
        box-shadow: none;
    }

    .contact-card .form-control:focus {
        box-shadow: 0 6px 20px rgba(50, 115, 220, 0.08);
        border-color: rgba(50,115,220,0.6);
    }

    .contact-card .btn-primary {
        background: linear-gradient(90deg,#3b82f6,#06b6d4);
        border: none;
        box-shadow: 0 8px 25px rgba(59,130,246,0.18);
        border-radius: 10px;
    }

    .icon-circle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

    /* Floating label groups */
    .floating-group { position: relative; }
    .floating-group .floating-input { background: #fff; }
    .floating-group label {
        position: absolute;
        top: 50%;
        left: 50px; /* account for icon */
        transform: translateY(-50%);
        color: #6b7280;
        font-size: 0.95rem;
        pointer-events: none;
        transition: all .18s ease;
        padding: 0 4px;
    }
    .floating-group.with-icon .input-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:20px; color:#64748b; transition:color .25s; }
    .floating-group .floating-input:focus + label,
    .floating-group .floating-input:not(:placeholder-shown) + label,
    .floating-group textarea.floating-input:focus + label,
    .floating-group textarea.floating-input:not(:placeholder-shown) + label {
        top: 6px;
        font-size: 0.7rem;
        letter-spacing: .5px;
        color: #2563eb;
    }
    .floating-group .floating-input { padding: 20px 16px 10px 50px; border-radius:12px; }
    .floating-group textarea.floating-input { min-height: 140px; resize: vertical; }
    .floating-group .floating-input:focus { border-color:#2563eb; box-shadow:0 4px 16px rgba(37,99,235,.15); }
    .floating-group .floating-input:focus ~ .input-icon { color:#2563eb; }
    .floating-group .textarea-icon { top:22px; transform:none; }

    /* Heading accent */
    .contact-heading-accent { position:relative; display:inline-block; font-weight:600; }
    .contact-heading-accent:after { content:""; position:absolute; left:0; bottom:-6px; width:60%; height:4px; background:linear-gradient(90deg,#3b82f6,#06b6d4); border-radius:4px; box-shadow:0 2px 6px -2px rgba(59,130,246,.6); }

    /* Card hover */
    .contact-card { transition:transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s; }
    .contact-card:hover { transform:translateY(-6px); box-shadow:0 20px 40px -18px rgba(0,0,0,.25); }
    .contact-card-form { border-top:3px solid #3b82f6; }
    .contact-card-info { border-top:3px solid #06b6d4; }

    /* Submit button glow */
    .submit-btn-glow { position:relative; overflow:hidden; }
    .submit-btn-glow:before { content:""; position:absolute; top:0; left:-40%; width:40%; height:100%; background:rgba(255,255,255,.35); transform:skewX(-25deg); filter:blur(4px); transition: left .65s cubic-bezier(.4,0,.2,1); }
    .submit-btn-glow:hover:before { left:140%; }
    .submit-btn-glow:hover { box-shadow:0 12px 30px -8px rgba(59,130,246,.55); }

    @media (max-width: 767px) {
        .floating-group .floating-input { padding-left:46px; }
        .contact-heading-accent:after { width:50%; }
    }

    @media (max-width: 767px) {
        .contact .section-title p { font-size: 1rem; }
        .contact-card { padding: 18px; }
    }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-character {
        font-size: 50px;
    }

    .floating-bubble {
        display: none;
    }

    .parallax-shape {
        display: none;
    }

    .loading-character {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .feature-card-enhanced {
        margin-bottom: 20px;
    }

    .feature-card-enhanced:hover {
        transform: translateY(-5px) scale(1.02);
    }

    .rainbow-text {
        font-size: 1.8rem;
    }

    .nav-item-enhanced {
        margin: 5px 0;
    }

    .btn-animated {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Reduce animations on mobile for better performance */
    .animated-icon {
        animation: none;
    }

    .magic-sparkle {
        display: none;
    }

    /* Mobile-friendly testimonials */
    .testimonial-enhanced {
        margin: 10px 0;
    }

    /* Smaller Lottie animations on mobile */
    lottie-player {
        width: 80px !important;
        height: 80px !important;
    }

    /* Mobile contact form */
    .contact-form-enhanced {
        padding: 20px;
    }

    .contact-form-enhanced input,
    .contact-form-enhanced textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Mobile Hero Section */
    .hero-content-wrapper {
        padding: 25px;
        margin: 20px 0;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    /* Mobile Navigation */
    .header-enhanced {
        padding: 10px 0;
    }

    .logo-wrapper {
        flex-direction: row;
        gap: 10px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    /* Mobile Feature Cards */
    .feature-card-enhanced {
        padding: 25px 20px !important;
        margin-bottom: 20px;
    }

    .feature-card-enhanced h4 {
        font-size: 1.2rem !important;
    }

    .feature-card-enhanced p {
        font-size: 0.95rem !important;
    }

    .feature-card-enhanced i {
        font-size: 2.5rem !important;
        margin-bottom: 15px;
    }

    /* Mobile Footer */
    .footer-stats {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-badge {
        margin-top: 15px;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-character {
        font-size: 60px;
    }

    .floating-bubble {
        width: 30px !important;
        height: 30px !important;
    }

    .feature-card-enhanced {
        margin-bottom: 15px;
    }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .floating-star,
    .hero-character {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-bubble,
    .parallax-shape,
    .hero-character {
        animation: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .feature-card-enhanced {
        background: #2d2d2d;
        color: #ffffff;
    }

    .testimonial-enhanced > div {
        background: #333 !important;
        color: #ffffff !important;
    }

    .contact-form-enhanced {
        background: #2d2d2d;
    }

    .faq-item-enhanced {
        background: #2d2d2d;
        color: #ffffff;
    }
}

/* Print styles */
@media print {
    .loading-screen,
    .floating-bubble,
    .parallax-shape,
    .hero-character,
    .floating-star,
    .floating-shape {
        display: none !important;
    }

    .btn-animated {
        background: #333 !important;
        color: #fff !important;
    }

    .rainbow-text {
        color: #333 !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        animation: fadeInUp 0.8s ease-out;
    }
}

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

/* Focus states for keyboard navigation */
.btn-animated:focus,
.hover-sound:focus,
.clickable-element:focus {
    outline: 3px solid #FFD93D;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .rainbow-text {
        background: linear-gradient(45deg, #000, #333, #666);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .btn-animated {
        border: 2px solid #000;
    }

    .feature-card-enhanced {
        border: 2px solid #000;
    }
}

/* Enhanced Interactive Elements Styles */

/* Loading Screen with Confetti */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loading-character {
    animation: float 2s ease-in-out infinite;
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Floating Characters */
.floating-character {
    position: fixed;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-character:hover {
    transform: scale(1.2) rotate(10deg);
}

.floating-character.char-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-character.char-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-character.char-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

/* Floating SVG Elements */
.floating-svg {
    position: fixed;
    z-index: 999;
    pointer-events: none;
}

.floating-svg.svg-1 {
    top: 15%;
    right: 20%;
    animation: float 4s ease-in-out infinite, rotate 8s linear infinite;
}

.floating-svg.svg-2 {
    top: 70%;
    left: 5%;
    animation: float 3.5s ease-in-out infinite reverse, pulse 2s ease-in-out infinite;
}

.floating-svg.svg-3 {
    bottom: 30%;
    right: 10%;
    animation: float 5s ease-in-out infinite, bounce 2s ease-in-out infinite;
}

.rotating-star {
    animation: rotate 6s linear infinite;
}

.bouncing-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.pulsing-circle {
    animation: pulse 2s ease-in-out infinite;
}

/* Interactive Bubbles */
.interactive-bubble {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg,
        rgba(255, 105, 180, 0.8),
        rgba(64, 224, 208, 0.8),
        rgba(255, 215, 0, 0.8)
    );
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 998;
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
}

.interactive-bubble:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.5);
}

.interactive-bubble.bubble-1 {
    top: 25%;
    left: 80%;
    animation-delay: 0s;
}

.interactive-bubble.bubble-2 {
    top: 45%;
    left: 5%;
    animation-delay: 1s;
}

.interactive-bubble.bubble-3 {
    top: 75%;
    right: 25%;
    animation-delay: 2s;
}

.interactive-bubble.bubble-4 {
    top: 35%;
    right: 5%;
    animation-delay: 3s;
}

.interactive-bubble.bubble-5 {
    bottom: 15%;
    left: 50%;
    animation-delay: 4s;
}

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    z-index: 10001;
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.achievement-popup.show {
    transform: translate(-50%, -50%) scale(1);
}

.achievement-content h3 {
    color: white;
    margin: 15px 0 10px;
    font-size: 1.5rem;
}

.achievement-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Enhanced Header Styles */
.enhanced-header {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.95) 0%,
        rgba(118, 75, 162, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.animated-logo .logo-text {
    position: relative;
    overflow: hidden;
}

.bounce-letter {
    display: inline-block;
    animation: bounceIn 0.6s ease-out;
    animation-fill-mode: both;
}

.bounce-letter:nth-child(1) { animation-delay: 0.1s; }
.bounce-letter:nth-child(2) { animation-delay: 0.2s; }
.bounce-letter:nth-child(3) { animation-delay: 0.3s; }
.bounce-letter:nth-child(4) { animation-delay: 0.4s; }
.bounce-letter:nth-child(5) { animation-delay: 0.5s; }
.bounce-letter:nth-child(6) { animation-delay: 0.6s; }
.bounce-letter:nth-child(7) { animation-delay: 0.7s; }
.bounce-letter:nth-child(8) { animation-delay: 0.8s; }
.bounce-letter:nth-child(9) { animation-delay: 0.9s; }
.bounce-letter:nth-child(10) { animation-delay: 1.0s; }
.bounce-letter:nth-child(11) { animation-delay: 1.1s; }
.bounce-letter:nth-child(12) { animation-delay: 1.2s; }
.bounce-letter:nth-child(13) { animation-delay: 1.3s; }

.logo-sparkle {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.tagline-text {
    position: relative;
}

.typing-text {
    border-right: 2px solid #FFD93D;
    animation: typing 3s steps(20) infinite, blink 1s infinite;
}

/* Enhanced Navigation */
.enhanced-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item-enhanced {
    position: relative;
    margin: 0 5px;
}

.nav-link-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link-enhanced:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 1.1rem;
    animation: bounce 2s ease-in-out infinite;
}

.nav-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.nav-link-enhanced:hover .nav-ripple {
    width: 100px;
    height: 100px;
}

/* Parent Login Button */
.btn-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #00A7AA, #4AD59F);
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 167, 170, 0.3);
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 167, 170, 0.4);
    background: linear-gradient(45deg, #4AD59F, #00A7AA);
}

.btn-icon {
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.btn-particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-enhanced:hover .btn-particles::before {
    width: 200px;
    height: 200px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu:hover span {
    background: #FFD93D;
}

/* Header Floating Elements */
.header-floating-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.header-floating-element.element-1 {
    top: 20px;
    right: 100px;
    animation: float 3s ease-in-out infinite;
}

.header-floating-element.element-2 {
    bottom: 20px;
    left: 100px;
    animation: float 4s ease-in-out infinite reverse;
}

.header-star {
    animation: rotate 8s linear infinite, pulse 2s ease-in-out infinite;
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3) translateY(-50px); opacity: 0; }
    50% { transform: scale(1.1) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.2) rotate(90deg); opacity: 0.8; }
    50% { transform: scale(0.8) rotate(180deg); opacity: 1; }
    75% { transform: scale(1.1) rotate(270deg); opacity: 0.9; }
}

@keyframes typing {
    0%, 50% { width: 0; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #FFD93D; }
}

/* Clickable Elements */
.clickable-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-element:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.clickable-element:active {
    transform: scale(0.95);
}

/* Responsive Design for Interactive Elements */
@media (max-width: 768px) {
    .floating-character,
    .floating-svg {
        transform: scale(0.7);
    }

    .interactive-bubble {
        width: 40px;
        height: 40px;
    }

    .nav-link-enhanced {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .btn-enhanced {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .loading-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .floating-character,
    .floating-svg {
        transform: scale(0.5);
    }

    .interactive-bubble {
        width: 30px;
        height: 30px;
    }

    .enhanced-header {
        padding: 10px 0;
    }

    .bounce-letter {
        font-size: 1.2rem;
    }
}

/* Enhanced Hero Section Styles */
.hero-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 100px 0 50px 0;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: heroFloat 15s ease-in-out infinite;
}

.hero-circle.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 80%;
    animation-delay: 0s;
}

.hero-circle.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 5s;
}

.hero-circle.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 5%;
    animation-delay: 10s;
}

.hero-character {
    position: absolute;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-character.character-1 {
    top: 15%;
    right: 20%;
    animation: characterFloat 4s ease-in-out infinite;
}

.hero-character.character-2 {
    bottom: 25%;
    left: 15%;
    animation: characterFloat 5s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.hero-character.character-3 {
    top: 60%;
    right: 10%;
    animation: characterFloat 6s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.hero-content-wrapper:hover {
    transform: translateY(0);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.hero-logo-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.hero-logo {
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.1) rotate(10deg);
}

.logo-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    animation: sparkleRotate 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 10px;
    right: 10px;
    animation-delay: 0s;
}

.sparkle-2 {
    bottom: 10px;
    left: 10px;
    animation-delay: 1s;
}

.sparkle-3 {
    top: 50%;
    right: -10px;
    animation-delay: 2s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Fredoka One', cursive;
}

.highlight-text {
    background: linear-gradient(45deg, #FF6EC7, #FFD93D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #FF6EC7, #FFD93D);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
}

.fun-emoji {
    font-size: 1.2em;
    animation: emojiDance 2s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn,
.explore-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.download-btn {
    background: linear-gradient(45deg, #4285f4, #34a853);
    color: white;
}

.explore-btn {
    background: linear-gradient(45deg, #FF6EC7, #FFD93D);
    color: white;
}

.download-btn:hover,
.explore-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-sparkle {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8em;
    animation: sparkleGlow 2s ease-in-out infinite;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 20px 0;
    border-top: 2px solid rgba(255, 110, 199, 0.2);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF6EC7;
    font-family: 'Fredoka One', cursive;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.stat-icon {
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
    animation: iconBounce 2s ease-in-out infinite;
}

.hero-image-container {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
}

.hero-main-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.educational-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD93D, #FF6EC7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: educationFloat 4s ease-in-out infinite;
}

.educational-icon:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.educational-icon.icon-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.educational-icon.icon-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.educational-icon.icon-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.educational-icon.icon-4 {
    top: 10%;
    right: 30%;
    animation-delay: 3s;
}

.icon-content {
    text-align: center;
    color: white;
}

.icon-emoji {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.icon-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-lottie {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-lottie.lottie-1 {
    top: 15%;
    left: 10%;
    animation: lottieFloat 5s ease-in-out infinite;
}

.hero-lottie.lottie-2 {
    bottom: 20%;
    right: 15%;
    animation: lottieFloat 6s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.hero-lottie.lottie-3 {
    top: 50%;
    left: 5%;
    animation: lottieFloat 4s ease-in-out infinite;
    animation-delay: 2s;
}

.cta-bubble {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #4AD59F, #4AA3F0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: bubblePulse 3s ease-in-out infinite;
}

.cta-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.bubble-content {
    text-align: center;
    color: white;
    position: relative;
}

.bubble-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bubble-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

/* Enhanced Hero Animations */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

@keyframes characterFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

@keyframes sparkleRotate {
    0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) rotate(360deg);
        opacity: 0.8;
    }
}

@keyframes underlineGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 110, 199, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 110, 199, 0.8);
    }
}

@keyframes emojiDance {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

@keyframes sparkleGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes educationFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes lottieFloat {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-25px);
        opacity: 1;
    }
}

@keyframes bubblePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Mobile Responsive Hero */
@media (max-width: 768px) {
    .hero-enhanced {
        padding: 80px 0 30px 0;
    }

    .hero-content-wrapper {
        padding: 25px;
        margin: 20px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn,
    .explore-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-character {
        transform: scale(0.7);
    }

    .educational-icon {
        width: 60px;
        height: 60px;
    }

    .cta-bubble {
        width: 80px;
        height: 80px;
        bottom: 20px;
        right: 20px;
    }

    .bubble-text {
        font-size: 0.7rem;
    }

    .hero-circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Interactive Elements */
.clickable-element {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.clickable-element:active {
    transform: scale(0.95);
}

/* Success Feedback Animation */
.success-feedback {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: #4AD59F; }
    100% { transform: scale(1); }
}
