:root {
    --primary: #FFD93D;
    /* Sunshine Yellow */
    --secondary: #6BCB77;
    /* Grass Green */
    --accent: #FF6B6B;
    /* Crayola Red */
    --info: #4D96FF;
    /* Sky Blue */
    --text: #2c3e50;
    --bg: #fff9f0;
    /* Creamy paper */
    --font-heading: 'Bubblegum Sans', cursive;
    --font-body: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy transition */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 8rem;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Polka dot pattern */
}

/* Reusable Components */
section {
    padding: 5rem 9%;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    color: var(--text);
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.heading span {
    color: var(--accent);
}

.btn-primary,
.btn-secondary,
.btn-sm {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--info);
    transform: translateY(-5px) scale(1.05);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--text);
    margin-right: 1rem;
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) rotate(-3deg);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid var(--primary);
}

header .logo {
    font-size: 2.5rem;
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: bold;
}

header .logo i {
    color: var(--accent);
}

header .navbar a {
    font-size: 1.7rem;
    margin: 0 1.5rem;
    color: var(--text);
    font-weight: 600;
}

header .navbar a:hover {
    color: var(--accent);
}

#menu-btn {
    font-size: 2.5rem;
    color: var(--text);
    cursor: pointer;
    display: none;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10rem;
    gap: 4rem;
}

.hero .hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 7rem;
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--info);
    margin-bottom: 2rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #666;
}

.hero .hero-image {
    flex: 1;
    position: relative;
    text-align: center;
}

.hero .hero-image img {
    width: 90%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Organic shape */
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    animation: morph 5s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
}

/* Teacher */
.teacher {
    background: white;
}

.teacher .row {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.teacher .image-container {
    flex: 1 1 35rem;
    text-align: center;
}

.teacher .image-container img {
    width: 80%;
    border-radius: 50%;
    border: 8px solid var(--primary);
    padding: 1rem;
    background: white;
}

.teacher .content {
    flex: 1 1 45rem;
}

.teacher .content .subtitle {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.teacher .content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #666;
}

.teacher .stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.teacher .stats .stat-box {
    text-align: center;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 1rem;
    flex: 1;
    border: 2px dashed #ddd;
}

.teacher .stats .stat-box i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.teacher .stats .stat-box span {
    font-size: 1.4rem;
    font-weight: bold;
}

/* Classes */
.classes .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 3rem;
}

.classes .box {
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid transparent;
}

.classes .box i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.classes .box h3 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.classes .box p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.5;
}

.classes .box .btn-sm {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
}

/* Color variations for boxes */
.classes .box-1 {
    border-color: var(--primary);
}

.classes .box-1 i {
    color: var(--primary);
}

.classes .box-1 .btn-sm:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.classes .box-2 {
    border-color: var(--accent);
}

.classes .box-2 i {
    color: var(--accent);
}

.classes .box-2 .btn-sm:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.classes .box-3 {
    border-color: var(--info);
}

.classes .box-3 i {
    color: var(--info);
}

.classes .box-3 .btn-sm:hover {
    background: var(--info);
    color: white;
    border-color: var(--info);
}

.classes .box:hover {
    transform: translateY(-10px);
}

/* Gallery */
.gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.gallery .gallery-item {
    height: 30rem;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery .gallery-item:hover {
    transform: rotate(2deg) scale(1.02);
    z-index: 10;
}

.gallery .gallery-item:nth-child(even):hover {
    transform: rotate(-2deg) scale(1.02);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem;
    background: white;
    border-top: 5px solid var(--secondary);
    margin-top: 5rem;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer .socials a {
    font-size: 2rem;
    color: var(--text);
    margin: 0 1rem;
    display: inline-block;
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    background: var(--bg);
    border-radius: 50%;
}

.footer .socials a:hover {
    background: var(--accent);
    color: white;
    transform: rotate(360deg);
}

.footer .credit {
    margin-top: 2rem;
    font-size: 1.4rem;
    color: #888;
}

.footer .credit i {
    color: var(--accent);
}

/* Media Queries */
@media (max-width: 768px) {
    #menu-btn {
        display: block;
    }

    header .navbar {
        position: absolute;
        top: 99%;
        left: 0;
        right: 0;
        background: white;
        border-top: 2px solid #eee;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    header .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    header .navbar a {
        display: block;
        margin: 2rem;
        font-size: 2rem;
        text-align: center;
    }

    .hero {
        flex-direction: column-reverse;
        padding-top: 12rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 5rem;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    backdrop-filter: blur(5px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    width: 90%;
    max-width: 50rem;
    border-radius: 2rem;
    z-index: 1002;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 5px solid white;
}

.modal.active {
    display: block;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.modal-overlay.active {
    display: block;
}

@keyframes popIn {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    padding: 2rem;
    text-align: center;
    position: relative;
    color: white;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
}

.modal-header i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-header .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    line-height: 3.5rem;
}

.modal-header .close-btn:hover {
    background: white;
    color: var(--text);
    transform: rotate(90deg);
}

/* Modal Header Colors */
.header-1 {
    background: var(--primary);
}

.header-2 {
    background: var(--accent);
}

.header-3 {
    background: var(--info);
}

.modal-body {
    padding: 2.5rem;
}

.modal-body p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 2rem;
}

.modal-body ul li {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.modal-body ul li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary);
}

/* Form Styling */
.enquire-form .form-group {
    margin-bottom: 1.5rem;
}

.enquire-form label {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 600;
}

.enquire-form input,
.enquire-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #eee;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-body);
    background: #f9f9f9;
}

.enquire-form input:focus,
.enquire-form textarea:focus {
    border-color: var(--primary);
    background: white;
}

.enquire-form button {
    cursor: pointer;
}