:root {
    --primary-color: #2196F3; /* Bright Sky Blue - Learning & Growth */
    --primary-light: #64B5F6;
    --secondary-color: #FFB300; /* Sunshine Yellow - Joy & Energy */
    --accent-cyan: #00BCD4;
    --accent-pink: #E91E63;
    --accent-green: #4CAF50;
    --accent-orange: #FF9800;
    --accent-purple: #9C27B0;
    --accent-red: #F44336;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-cream: #FFF9F0;
}

/* Bootstrap Overrides for Consistency */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

body {
    font-family: 'Balsamiq Sans', cursive, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Navbar */
.navbar {
    border-bottom: 3px solid rgba(0,0,0,0.05);
    z-index: 1050; /* Ensure it stays above scaled hero images */
}

.navbar-brand img {
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.navbar-brand:hover img {
    transform: rotate(10deg) scale(1.1);
}

.navbar-brand span {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.6rem;
    text-shadow: 2px 2px 0px rgba(33, 150, 243, 0.1);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s;
    border-radius: 10px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
    left: 10%;
}

.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-warning {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: #fff;
}

.btn-warning:hover {
    background-color: #fff;
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    min-height: 75vh; /* Reduced from 90vh to reduce empty space */
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section h1 {
    font-weight: 900;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.hero-img {
    --hero-scale: 1.5;
    max-height: 800px;
    margin-top: 50px;
    animation: float 6s ease-in-out infinite;
    /* Ensure no background color interferes */
    background-color: transparent;
    transform: scale(var(--hero-scale));
    transform-origin: bottom center;
}

@keyframes float {
    0% { transform: scale(var(--hero-scale)) translateY(0px); }
    50% { transform: scale(var(--hero-scale)) translateY(-20px); }
    100% { transform: scale(var(--hero-scale)) translateY(0px); }
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(136% + 1.3px);
    height: 120px;
}

/* Floating Sprinkled Graphics */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.12; /* Subtle visibility */
    animation: float-icon 8s ease-in-out infinite alternate;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes float-icon {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-20px) rotate(15deg) scale(1.1); }
}

/* Specific Shapes & Colors */
.shape-rainbow { top: 8%; left: 4%; color: var(--accent-cyan); font-size: 5rem; animation-delay: 0s; }
.shape-sun { top: 12%; right: 8%; color: var(--secondary-color); font-size: 6rem; animation-delay: 1.5s; opacity: 0.2; }
.shape-book { top: 35%; left: 10%; color: var(--primary-color); font-size: 3.5rem; animation-delay: 0.5s; }
.shape-pencil { bottom: 40%; right: 5%; color: var(--accent-orange); font-size: 4rem; transform: rotate(45deg); animation-delay: 2s; }
.shape-star { top: 55%; left: 45%; color: var(--accent-pink); font-size: 3rem; animation-delay: 1s; }
.shape-tree { bottom: 12%; left: 8%; color: var(--accent-green); font-size: 5rem; animation-delay: 2.5s; }
.shape-palette { bottom: 25%; right: 35%; color: var(--accent-purple); font-size: 3.5rem; animation-delay: 1.2s; }
.shape-cloud { top: 22%; right: 25%; color: var(--primary-light); font-size: 5rem; opacity: 0.15; animation-delay: 3s; }
.shape-music { bottom: 50%; left: 20%; color: var(--accent-red); font-size: 3rem; animation-delay: 0.8s; }
.shape-puzzle { top: 70%; right: 15%; color: var(--text-dark); font-size: 3.5rem; opacity: 0.1; animation-delay: 1.8s; }
.shape-smile { bottom: 5%; right: 50%; color: var(--secondary-color); font-size: 4rem; animation-delay: 4s; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    height: 220px;
    position: relative;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 900;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Founder Section */
.founder-img-container {
    position: relative;
    padding: 15px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.founder-img-container:hover {
    transform: rotate(0deg);
}

.founder-img {
    border-radius: 15px;
    width: 100%;
}

.founder-quote {
    background-color: var(--bg-cream);
    border-left: 5px solid var(--secondary-color);
    padding: 30px;
    border-radius: 0 20px 20px 0;
    position: relative;
}

.founder-quote i {
    color: var(--secondary-color);
    opacity: 0.3;
    font-size: 3rem;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.hover-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Curriculum Images */
.curriculum-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 5px solid rgba(0,0,0,0.05);
}

/* Colorful Cards - Unified to Home Page Scheme */
.row .col-md-4:nth-child(odd) .icon-box { background-color: var(--primary-color) !important; }
.row .col-md-4:nth-child(even) .icon-box { background-color: var(--secondary-color) !important; }

/* Gallery */
.gallery-img {
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px; /* Fixed height for uniformity */
    width: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.03);
    z-index: 10;
}

/* Footer */
footer {
    background-color: #2c2c2c;
    position: relative;
}

footer h3 {
    font-family: 'Balsamiq Sans', cursive;
}

/* Decorative Shapes */
.shape-blob {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.shape-1 { top: 10%; left: 5%; width: 100px; }
.shape-2 { bottom: 20%; right: 10%; width: 150px; }

/* Responsive */
@media (max-width: 991.98px) {
    .page-header {
        height: 160px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .hero-section {
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-img {
        --hero-scale: 1.2;
        margin-top: 40px;
        max-height: 400px;
    }
    
    .founder-quote {
        border-radius: 20px;
        margin-top: 20px;
        border-left: none;
        border-top: 5px solid var(--secondary-color);
    }
}
