/* Mary Angels Montessori School - Main CSS */

/* Global Variables */
:root {
    /* Primary Colors */
    --primary-blue: #1d0084;
    --primary-green: #73C36D;
    --primary-yellow: #FFC744;
    --primary-red: #FF7A7A;
    --primary-purple: #9C88FF;
    
    /* Background Colors */
    --bg-light: #FFFFFF;
    --bg-off-white: #F9F7FF;
    
    /* Text Colors */
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #FFFFFF;
    
    /* Other */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bubblegum Sans', cursive;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-purple);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Navigation - UPDATED STYLES */
.nav-spacer {
    height: 20px;  /* Adjusted for new navbar height */
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-light);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 70px;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    height: 100%;
    position: relative;
}

.logoo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
}

.logoo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
}

.nav-item {
    margin-left: 2rem;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
}

.nav-link {
    color: var(--text-medium);
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}



.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 1rem;
    margin-left: 1rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-medium);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section (For Homepage) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: url('../images/wave.svg') no-repeat;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-yellow);
    color: var(--text-dark);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-red));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--text-light);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-medium);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 151, 217, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    color: var(--text-light);
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #f0f8ff, #f5f0ff);
    padding: 5rem 0;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    margin: 1rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-yellow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
    background-image: url('../images/cloud-border.svg');
    background-size: cover;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links, .footer-contact, .footer-hours {
    flex: 1;
    min-width: 250px;
}

footer h4 {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.7rem;
}

footer a {
    color: var(--text-light);
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

footer i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a {
    display: inline-block;
    height: 35px;
    width: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 0.7rem;
    text-align: center;
    line-height: 35px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

/* Animated Elements */
.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Colorful borders for sections */
.border-top-rainbow {
    border-top: 5px solid;
    border-image: linear-gradient(to right, var(--primary-red), var(--primary-yellow), var(--primary-green), var(--primary-blue), var(--primary-purple)) 1;
}

/* Fun Shapes for Kids Theme */
.shape-decorator {
    position: absolute;
    z-index: -1;
    opacity: 0.5;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-yellow);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 150px solid var(--primary-red);
}

.square {
    width: 100px;
    height: 100px;
    background: var(--primary-green);
    transform: rotate(45deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    /* Updated mobile navigation styles */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        height: auto;
        justify-content: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.8rem 0;
        height: auto;
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        display: block;
        padding: 0.5rem 1rem;
        height: auto;
        width: 100%;
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-content {
        justify-content: center;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .logoo img {
        height: 45px;
    }
    
    .features, .gallery {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .logoo img {
        height: 40px;
    }
}


/* call button============================================== */
.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
  }
  
  .fixed-buttons a {
    width: 50px;
    height: 50px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
  }
  
  .fixed-buttons .call-btn {
    background-color: #34b7f1; /* Light blue for call */
  }
  
  .fixed-buttons a:hover {
    transform: scale(1.1);
  }
  