/* =========================================
   EDU FOCUS - PLAYFUL LEARNING THEME
   ========================================= */
:root {
    /* Primary Colors */
    --primary-blue: #3A86FF;
    /* Sky/Royal Blue */
    --primary-yellow: #FFC300;
    /* School Bus Yellow */
    --pure-white: #ffffff;

    /* Secondary/Accent Colors */
    --accent-red: #EF233C;
    /* Crimson/Red */
    --navy-blue: #001D3D;
    /* Dark Navy for Text/Footer */

    /* Backgrounds */
    --soft-blue-bg: #E0F2FE;
    /* Very light blue for sections */

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy transition */
    --shadow-soft: 0 10px 30px rgba(58, 134, 255, 0.15);
    --shadow-hover: 0 15px 35px rgba(58, 134, 255, 0.25);
    --glow-yellow: 0 0 15px rgba(255, 195, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--pure-white);
    color: var(--navy-blue);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

/* Color Utilities */
.text-blue {
    color: var(--primary-blue);
}

.text-yellow {
    color: var(--primary-yellow);
}

.text-red {
    color: var(--accent-red);
}

.text-navy {
    color: var(--navy-blue);
}

.bg-soft-blue {
    background-color: var(--soft-blue-bg);
}

/* Buttons */
.btn-edu {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-yellow);
    color: var(--navy-blue);
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 0 rgba(204, 153, 0, 1);
    /* 3D effect */
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    top: 0;
}

.btn-edu:hover {
    background: #FFD60A;
    box-shadow: 0 0 20px rgba(255, 195, 0, 0.8), 0 8px 0 rgba(204, 153, 0, 1);
    transform: translateY(-3px);
}

.btn-edu:active {
    top: 5px;
    box-shadow: 0 3px 0 rgba(204, 153, 0, 1);
}

.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-red);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    margin-left: 15px;
    border: none;
    box-shadow: 0 8px 0 #D90429;
    position: relative;
    top: 0;
}

.btn-outline:hover {
    background: #FF0A54;
    transform: translateY(-3px);
}

.btn-outline:active {
    top: 5px;
    box-shadow: 0 3px 0 #D90429;
}

/* Animations */
.bounce-up {
    animation: bounceInUp 1s both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px);
    }

    80% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 15px 0;
    z-index: 1000;
    background: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--pure-white);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.edu-badge {
    background: var(--primary-yellow);
    color: var(--navy-blue);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transform: rotate(-3deg);
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--pure-white);
    opacity: 0.9;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile Nav */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 4px;
    background: white;
    margin: 6px 0;
    border-radius: 4px;
    transition: 0.3s;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), #4361EE);
    overflow: hidden;
    padding-top: 80px;
}

/* Fun Background Shapes */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
}

.hero::after {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: 10%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--pure-white);
    font-weight: 800;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.3rem;
    color: #E0F2FE;
    margin-bottom: 40px;
    max-width: 650px;
    font-weight: 500;
}

.hero span.highlight {
    color: var(--primary-yellow);
}

/* =========================================
   CARDS GRID
   ========================================= */
.feature-card {
    background: var(--pure-white);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 2px solid #E0E7FF;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-blue);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.f-icon {
    width: 70px;
    height: 70px;
    background: var(--soft-blue-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-blue);
    font-size: 1.8rem;
    transition: 0.3s;
}

.feature-card:hover .f-icon {
    background: var(--primary-blue);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--navy-blue);
}

/* =========================================
   FORMS & PAGES
   ========================================= */
.page-header {
    height: 50vh;
    background: linear-gradient(135deg, var(--primary-blue), #4895ef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.form-container {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 29, 61, 0.08);
    max-width: 700px;
    margin: 0 auto;
    border: 3px solid #E0F2FE;
}

.input-box {
    margin-bottom: 25px;
}

.input-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy-blue);
}

.input-box input,
.input-box select,
.input-box textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E0E7FF;
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
    background: #F8FAFC;
}

.input-box input:focus,
.input-box select:focus {
    border-color: var(--primary-blue);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.1);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.g-item {
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 4px solid white;
}

.g-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s;
}

.g-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* Footer */
.footer {
    background: var(--navy-blue);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 80px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.footer h2 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5rem;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-yellow);
    transform: scale(1.2) rotate(10deg);
}

/* Fix for Contact Page white background - Official Colors */
.contact-wrapper .social-icons a:nth-child(1) {
    color: #1877F2;
    /* Facebook */
}

.contact-wrapper .social-icons a:nth-child(2) {
    color: #E1306C;
    /* Instagram */
}

.contact-wrapper .social-icons a:nth-child(3) {
    color: #25D366;
    /* WhatsApp */
}

.contact-wrapper .social-icons a:hover {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .btn-edu,
    .btn-outline {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
}

/* =========================================
   SUCCESS MODAL (PLAYFUL THEME)
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 29, 61, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 4px solid var(--primary-yellow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    background: var(--soft-blue-bg);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    display: inline-block;
    animation: bounceIcon 2s infinite;
}

@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.modal-content h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--navy-blue);
}

.modal-content p {
    margin-bottom: 30px;
    color: #64748b;
    font-size: 1.05rem;
}

.modal-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-yellow);
    color: var(--navy-blue);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 0 rgba(204, 153, 0, 1);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(204, 153, 0, 1);
}