/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ecf0f1; /* Light Grey */
    color: #2c3e50; /* Dark Grey */
    overflow-x: hidden;
    height: 100vh;
}

/* Header with Logo */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #3498db; /* Blue */
}

.logo-container {
    display: flex;
    align-items: center;
}

.circular-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #ecf0f1; /* Light Grey */
}

.circular-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo {
    font-size: 24px;
    color: #ecf0f1; /* Light Grey */
    text-transform: uppercase;
    font-weight: bold;
}

/* Menu Button Styles */
.menu-btn {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-btn-burger {
    width: 35px;
    height: 4px;
    background-color: #2c3e50; /* Dark Grey */
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-btn-burger::before,
.menu-btn-burger::after {
    content: '';
    width: 100%;
    height: 4px;
    background-color: #2c3e50; /* Dark Grey */
    border-radius: 5px;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-btn-burger::before {
    transform: translateY(-10px);
}

.menu-btn-burger::after {
    transform: translateY(10px);
}

.menu-btn.active .menu-btn-burger {
    transform: rotate(45deg);
}

.menu-btn.active .menu-btn-burger::before {
    transform: rotate(90deg);
    opacity: 0;
}

.menu-btn.active .menu-btn-burger::after {
    transform: rotate(-90deg);
}

/* Navigation Menu Styling */
.menu {
    position: fixed;
    top: 0;
    right: -100%; /* Off-screen */
    width: 100%;
    height: 100vh;
    background-color: #000000aa; /* Green */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.6s ease;
    z-index: 1000;
}

.menu ul {
    list-style-type: none;
    text-align: center;
}

.menu ul li {
    margin: 20px 0;
}

.menu ul li a {
    font-size: 24px;
    color: #ecf0f1; /* Light Grey */
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.menu ul li a:hover {
    color: #e67e22; /* Orange */
}

/* When Menu is Active */
.menu.active {
    right: 0; /* Slide in the menu */
}

/* Page Content */
.content {
    padding: 100px 20px;
    text-align: center;
    transform: translateY(-50px);
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #3498db; /* Blue */
}

p {
    font-size: 20px;
    color: #2c3e50; /* Dark Grey */
}

/* Testimonials Section */
.testimonials {
    padding: 50px 20px;
    text-align: center;
}

.testimonial-carousel {
    margin-top: 20px;
}

.testimonial-carousel p {
    font-size: 18px;
    color: #2c3e50; /* Dark Grey */
    margin: 10px 0;
}

/* FAQ Section */
.faq {
    padding: 50px 20px;
}

.faq-item {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.faq-item h3 {
    font-size: 24px;
    color: #3498db; /* Blue */
}

.faq-item p {
    font-size: 18px;
    color: #2c3e50; /* Dark Grey */
}

/* Location Section Styling */
#location {
    margin-top: 20px;
    text-align: center;
}

#location h3 {
    font-size: 24px;
    color: #3498db; /* Blue */
}

#location p {
    font-size: 18px;
    color: #2c3e50; /* Dark Grey */
    margin: 5px 0;
}

/* Optional Google Maps iframe styling */
iframe {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 0;
    margin-top: 20px;
}

/* Contact Form */
.contact {
    padding: 50px 20px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #3498db; /* Blue */
    border-radius: 5px;
    background-color: #ecf0f1; /* Light Grey */
    color: #2c3e50; /* Dark Grey */
}

.contact button {
    padding: 10px 20px;
    border: none;
    background-color: #e74c3c; /* Red */
    color: #ecf0f1; /* Light Grey */
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contact button:hover {
    background-color: #e67e22; /* Orange */
}

/* Newsletter Signup Section */
.newsletter {
    padding: 50px 20px;
    text-align: center;
}

.newsletter form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    width: calc(100% - 120px);
    padding: 10px;
    border: 1px solid #3498db; /* Blue */
    border-radius: 5px;
    background-color: #ecf0f1; /* Light Grey */
    color: #2c3e50; /* Dark Grey */
}

.newsletter button {
    padding: 10px 20px;
    border: none;
    background-color: #3498db; /* Blue */
    color: #ecf0f1; /* Light Grey */
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-left: -4px;
}

.newsletter button:hover {
    background-color: #2980b9; /* Darker Blue */
}

/* Live Chat Support */
#live-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-btn {
    padding: 10px 20px;
    background-color: #25D366; /* WhatsApp Green */
    color: #ecf0f1; /* Light Grey */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#chat-btn:hover {
    background-color: #128C7E; /* Darker WhatsApp Green */
}

/* Footer */
.footer {
    background-color: #3498db; /* Blue */
    color: #ecf0f1; /* Light Grey */
    text-align: center;
    padding: 20px;
}

.social-links a {
    color: #ecf0f1; /* Light Grey */
    text-decoration: none;
    margin: 0 10px;
    font-size: 18px;
}

.social-links a:hover {
    color: #e67e22; /* Orange */
}

.footer-contact {
    margin-top: 20px;
    font-size: 16px;
}

.footer-contact p {
    margin: 5px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform:  translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Typewriter Animation */
#typewriter-text {
    font-size: 20px;
    color: #2c3e50; /* Dark Grey */
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #3498db; /* Blue */
    display: inline-block; /* Allow the text width to grow dynamically */
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

/* Gallery Styles */
.gallery {
    padding: 50px 20px;
    text-align: center;
}

.gallery h1, .gallery h2 {
    margin-bottom: 20px;
}

.gallery .teacher-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
}

.gallery .teacher-photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.gallery .teacher-photo.flipped .teacher-photo-inner {
    transform: rotateY(180deg);
}

.gallery .teacher-photo-front, .gallery .teacher-photo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.gallery .teacher-photo-back {
    transform: rotateY(180deg);
}

.gallery .children-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.gallery .child-photo {
    width: 100px;
    height: 100px;
    position: absolute;
    cursor: pointer;
}

.gallery .child-photo:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.gallery .child-photo:nth-child(2) {
    bottom: 0;
    left: 0;
}

.gallery .child-photo:nth-child(3) {
    bottom: 0;
    right: 0;
}

.gallery .child-details {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    box-sizing: border-box;
}

.gallery .child-photo:hover .child-details {
    display: block;
}