/* Child-Friendly Font Styles - Similar to Educational Websites */
body {
    font-family: 'Nunito', 'Quicksand', sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
}

/* Headings with playful fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', 'Bubblegum Sans', cursive !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main title/logo font */
.navbar-brand h1 {
    font-family: 'Bubblegum Sans', cursive !important;
    font-weight: 400 !important;
}

/* Button text */
.btn {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Navigation links */
.navbar-nav .nav-link {
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Video titles and descriptions */
.video-item h5 {
    font-family: 'Fredoka', cursive !important;
    font-weight: 600;
}

/* Game section fonts */
.memory-game h2, .memory-game h3 {
    font-family: 'Bubblegum Sans', cursive !important;
}

/* Paragraph text */
p {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Smooth scrolling for navigation links */
html {
    scroll-behavior: smooth;
}

/* Meet Wishy Section Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

/* Button hover effect for Meet Wishy section */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5) !important;
}

/* Client Section Styles */
.client-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.client-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    border-color: #667eea;
}

.client-item img {
    transition: all 0.3s ease;
    border: 3px solid #f8f9fa;
}

.client-item:hover img {
    transform: scale(1.1);
    border-color: #667eea;
}

.client-item h6 {
    transition: color 0.3s ease;
}

.client-item:hover h6 {
    color: #667eea;
}

/* Floating animation for client items */
@keyframes clientFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.client-item {
    animation: clientFloat 3s ease-in-out infinite;
}

.client-item:nth-child(2n) {
    animation-delay: 0.5s;
}

.client-item:nth-child(3n) {
    animation-delay: 1s;
}

.client-item:nth-child(4n) {
    animation-delay: 1.5s;
}

.client-item:nth-child(5n) {
    animation-delay: 2s;
}

.client-item:nth-child(6n) {
    animation-delay: 2.5s;
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.client-item::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    animation: sparkle 2s infinite;
    opacity: 0;
}

.client-item:hover::before {
    opacity: 1;
}

/* End Client Section Styles */

/********** Template CSS **********/
:root {
    --primary: #FE5D37;
    --light: #FFF5F3;
    --dark: #103741;
}

/* Remove all margins and padding for full width */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
}

/* Blue background for entire website */
body {
    background-color: #4A90E2 !important;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #1E5F99 100%) !important;
    min-height: 100vh;
}

/* Ensure all containers take full width */
.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/* YouTube Video Section Enhancements */
.video-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.video-item:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    z-index: 10;
}

.video-item iframe {
    transition: all 0.3s ease;
}

.video-item:hover iframe {
    transform: scale(1.02);
}

/* Floating animation for badges */
.video-item .badge {
    animation: float 3s ease-in-out infinite;
}

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

/* Pulse animation for new video indicator */
.video-item:first-child .badge {
    animation: pulse 2s infinite;
}

/* Memory Game Styles */
.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.memory-card:hover {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-card.matched {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.8);
    border-color: #28a745;
    animation: matchedPulse 1s ease-in-out;
}

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

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.card-front {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #fff;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-back {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    transform: rotateY(180deg);
    font-family: 'Fredoka', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.card-back.word-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-back.emoji-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    font-size: 2.5rem;
}

/* Game disabled state */
.game-board.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .card-face {
        font-size: 1rem;
    }
    
    .card-front {
        font-size: 2rem;
    }
    
    .card-back.emoji-card {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .game-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    
    .card-face {
        font-size: 0.9rem;
    }
    
    .card-front {
        font-size: 1.5rem;
    }
    
    .card-back.emoji-card {
        font-size: 1.8rem;
    }
}

/* Game button animations */
#startGame, #resetGame {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#startGame:hover, #resetGame:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#startGame:active, #resetGame:active {
    transform: translateY(0);
}

/* Success animation */
@keyframes celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

#successMessage .alert {
    animation: celebration 0.8s ease-in-out;
    border: 3px solid #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

/* End Memory Game Styles */

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

/* Sparkle effect for section title */
.youtube-title {
    position: relative;
    overflow: hidden;
}

.youtube-title::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: -10px;
    animation: sparkle 4s linear infinite;
    font-size: 1.5rem;
}

.youtube-title::after {
    content: '⭐';
    position: absolute;
    bottom: -10px;
    right: -10px;
    animation: sparkle 4s linear infinite reverse;
    font-size: 1.2rem;
}

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

/* Bouncing animation for emojis in descriptions */
.video-item p {
    position: relative;
}

/* Add some playful hover effects for the entire section */
.youtube-section {
    position: relative;
    overflow: hidden;
}

.youtube-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Make the video cards more responsive and kid-friendly */
@media (max-width: 768px) {
    .video-item {
        transform: none !important;
        margin-bottom: 2rem;
    }
    
    .video-item:hover {
        transform: scale(1.02) !important;
    }
}

/* Add some fun loading animation */
.video-item iframe {
    position: relative;
}

.video-item iframe::before {
    content: '🎬 Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Fredoka', cursive;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}



.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}


/*** About ***/
.about-img img {
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
