/* Import fun font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

body {
    font-family: 'Fredoka One', sans-serif;
    background-color: #f4f9ff;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #FFB6C1;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo a {
    font-size: 2em;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    margin-right: 20px;
}



/* Language Translator Styling */
#google_translate_element {
    margin-left: auto;
    margin-right: 20px;
    padding: 5px 10px;
    background: linear-gradient(to right, #FFB6C1, #FFD700);
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    font-size: 1em;
}

/* Google Translate Dropdown */
.goog-te-combo {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1em;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid white;
    background-color: white;
    color: #FF6347;
    cursor: pointer;
}

/* NAVIGATION */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    transition: transform 0.3s;
}

nav a:hover {
    transform: scale(1.1);
    color: #ffeb3b;
}

.logo a:hover{
    color: white;
}

/* Navigation Icons */
nav li:nth-child(1) a::before { content: "📚 "; }
nav li:nth-child(2) a::before { content: "👨‍🏫 "; }
nav li:nth-child(3) a::before { content: "📞 "; }
nav li:nth-child(4) a::before { content: "🔑 "; }

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #FFB6C1, #FFD700);
    color: #333;
}

.hero h1 {
    font-size: 3em;
    text-shadow: 2px 2px #ffd700;
    animation: bounce 1.5s infinite alternate ease-in-out;
}

.hero p {
    font-size: 1.4em;
    max-width: 800px;
    margin: auto;
}

.hero button {
    background-color: #ff6347;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 30px; /* Moves the button down */
}

.hero button:hover {
    background-color: #ff4500;
    transform: scale(1.1);
}


/* FEATURES SECTION */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 60px 20px;
}

.feature {
    text-align: center;
    width: 30%;
    background: #ffeb3b;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.feature:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Feature Icons */
.feature:nth-child(1) h2::before { content: "📖 "; }
.feature:nth-child(2) h2::before { content: "🎮 "; }
.feature:nth-child(3) h2::before { content: "🎵 "; }

/* Images inside features */
.feature img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #ff6347;
    transition: transform 0.3s ease-in-out;
}

.feature img:hover {
    transform: rotate(5deg);
}

/* TESTIMONIALS */
.testimonials {
    text-align: center;
    padding: 60px 20px;
    background-color: #b3e5fc;
}

.testimonial {
    margin: 20px auto;
    max-width: 600px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-style: italic;
}

/* Custom Pop-up */
.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffcc00;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.2em;
    z-index: 2000;
}

.custom-popup button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}

/* FOOTER */
/* FOOTER */
/* FOOTER */
footer {
    background: linear-gradient(to right, #ff6b81, #ffcc00);
    padding: 40px 20px;
    color: white;
    text-align: center;
    font-size: 1.2em;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
}

/* Footer container layout */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Footer left side */
.footer-left h2 {
    font-size: 2em;
    margin-bottom: 5px;
    text-shadow: 2px 2px #ffeb3b;
}

.footer-left p {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Social media icons */
.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    
}

.social-icon {
    font-size: 30px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.social-icon:hover {
    background: white;
    color: #ff6b81;
    transform: scale(1.2) rotate(10deg);
}

/* Copyright text */
.footer-copyright {
    font-size: 1em;
    margin-top: 20px;
    opacity: 0.8;
}


/* Default Menu Icon (Hidden on Large Screens) */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
}


/* Bouncing animation */
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* 📌 RESPONSIVE DESIGN */

/* Tablets and small laptops */
@media screen and (max-width: 1024px) {
    .features {
        flex-wrap: wrap;
    }

    .feature {
        width: 45%;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
   

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 90%;
    }

    .testimonial {
        width: 90%;
    }
}




@media screen and (max-width: 768px) {
    /* Hide menu by default */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -250px; /* Hide off-screen */
        width: 250px;
        height: 100vh;
        background: rgba(255, 111, 97, 0.95); /* Semi-transparent background */
        box-shadow: -5px 0px 10px rgba(0, 0, 0, 0.2);
        padding-top: 60px;
        text-align: left;
        transition: right 0.4s ease-in-out;
        
    }

    .nav-menu li {
        display: block;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-menu a {
        font-size: 20px;
        color: white;
        display: block;
    }

    /* Show menu when active */
    .show-menu {
        right: 0;
    }

    /* Style for the menu icon */
    .menu-icon {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: white;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 1000;
    }
}






/* Small phones */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero button {
        font-size: 1.1em;
        padding: 12px 30px;
    }

    .features {
        padding: 40px 10px;
    }

    .feature {
        width: 100%;
    }

    .testimonial {
        width: 100%;
    }
}


/* Small phones (better spacing & sizing) */
@media screen and (max-width: 480px) {
    /* Reduce header padding */

    nav{
        width: auto;
    }
    
    header {
        padding: 15px;
        
    }

    /* Adjust hero section */
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
        padding: 0 10px;
    }

    .hero button {
        font-size: 1em;
        padding: 10px 25px;
    }

    /* Fix navigation for small screens */
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    nav a {
        font-size: 1em;
        padding: 10px;
    }

    /* Ensure images fit properly */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Features & Testimonials section */
    .features {
        flex-direction: column;
        align-items: center;
        padding: 30px 10px;
    }

    .feature {
        width: 90%;
        padding: 15px;
    }

    .testimonial {
        width: 90%;
        padding: 15px;
    }

    /* Footer adjustments */
    footer {
        padding: 30px 10px;
    }

    .footer-left h2 {
        font-size: 1.5em;
    }

    .footer-left p {
        font-size: 1em;
    }

    .footer-social {
        gap: 10px;
    }

    .social-icon {
        font-size: 25px;
        padding: 10px;
    }
}







