/* --- CORE VARIABLES --- */
:root {
    --primary: #00BBF9;   /* Blue */
    --secondary: #F15BB5; /* Pink */
    --accent: #FEE440;    /* Yellow */
    --success: #00F5D4;   /* Mint Green */
    --purple: #9B5DE5;    /* Purple */
    --text-main: #2b2b2b;
    --text-light: #666666;
    --bg-light: #f8fcfd;
}

body, html {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    /* ABSOLUTELY NO OVERFLOW OR TRANSFORM RULES HERE - This prevents the mobile detachment bug! */
}

/* --- THE PROTECTIVE WRAPPER --- */
.page-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, .brand-main, .btn {
    font-family: 'Fredoka', sans-serif;
}

/* --- SMOOTH & BOUNCY ANIMATIONS --- */
.reveal {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); 
    will-change: opacity, transform;
}

.reveal-bottom { transform: translateY(80px); }
.reveal-top    { transform: translateY(-80px); }
.reveal-left   { transform: translateX(-80px); }
.reveal-right  { transform: translateX(80px); }
.reveal-zoom   { transform: scale(0.6); }

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- SMART NAVBAR --- */
.navbar {
    background: #ffffff;
    transition: padding 0.4s ease, box-shadow 0.4s ease;
    padding: 15px 0;
    border-bottom: 5px solid var(--accent);
    z-index: 1040 !important; /* Locks it to the top */
}
.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.brand-main { color: var(--purple); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.brand-sub { color: var(--secondary); font-size: 1rem; font-weight: 600; letter-spacing: 2px; }

.nav-link {
    font-size: 1.15rem !important;
    font-weight: 600;
    color: var(--text-main) !important;
    margin: 0 5px;
    position: relative;
    transition: 0.3s ease;
}
.nav-link:hover { color: var(--primary) !important; transform: translateY(-2px); }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 3px;
    bottom: 0; left: 50%; transform: translateX(-50%);
    background-color: var(--primary); transition: width 0.3s ease; border-radius: 5px;
}
.nav-link:hover::after { width: 80%; }

/* --- HERO CAROUSEL --- */
.carousel-item {
    height: 85vh;
    min-height: 500px;
    background: #000;
}
.carousel-item img {
    opacity: 0.55; 
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 30%; 
}
.carousel-caption {
    bottom: 30%;
    z-index: 10;
}
.hero-title { font-size: 4rem; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.8rem; font-weight: 600; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }

.wave-bottom {
    position: absolute; bottom: -2px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 15;
}
.wave-bottom svg { display: block; width: calc(138% + 1.3px); height: 80px; }
.wave-bottom .shape-fill { fill: var(--bg-light); }

/* --- BUTTONS --- */
.btn-kid {
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.btn-kid:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.btn-yellow { background-color: var(--accent); color: var(--text-main); }
.btn-yellow:hover { background-color: #f5d81b; color: var(--text-main); }

.btn-purple { background-color: var(--purple); color: #ffffff; }
.btn-purple:hover { background-color: #8249c4 !important; color: #ffffff !important; }

/* --- CARDS & MODULES --- */
.section-title { font-size: 3rem; color: var(--purple); position: relative; margin-bottom: 3rem; display: inline-block;}
.section-title::after {
    content: ''; position: absolute; width: 50%; height: 6px; background: var(--accent);
    bottom: -10px; left: 25%; border-radius: 10px;
}

.pillar-box {
    background: white; border-radius: 20px; padding: 25px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.4s ease;
    border-bottom: 8px solid var(--primary);
    height: 100%;
}
.pillar-box:hover { transform: translateY(-15px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.pillar-icon { font-size: 3.5rem; margin-bottom: 15px; }

.program-card {
    border-radius: 30px; padding: 40px 20px; text-align: center; color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); position: relative; overflow: hidden;
    transition: 0.4s ease; z-index: 1; height: 100%;
}
.program-card::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
    background: rgba(255,255,255,0.2); border-radius: 50%; z-index: -1;
}
.program-card:hover { transform: scale(1.05) translateY(-5px); }

.fac-card {
    background: white; border-radius: 20px; padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06); transition: 0.4s ease; height: 100%;
}
.fac-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.fac-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; margin-bottom: 20px; }

.gallery-img { border-radius: 15px; width: 100%; height: 250px; object-fit: cover; object-position: center; transition: 0.4s ease; cursor: pointer; }
.gallery-img:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); z-index: 2; position: relative;}

.custom-form .form-control { border-radius: 15px; padding: 15px; border: 2px solid #eee; background: #fdfdfd; font-weight: 600; transition: 0.3s ease; }
.custom-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 187, 249, 0.2); }

/* --- FIX: BULLETPROOF FLOATING BUTTONS --- */
.fab-container { 
    position: fixed !important; 
    bottom: 25px !important; 
    right: 25px !important; 
    z-index: 1050 !important; /* Higher than navbar */
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.fab { width: 60px; height: 60px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: 0.3s ease; text-decoration: none; }
.fab-wa { background: #25D366; }
.fab-call { background: var(--primary); }
.fab:hover { transform: scale(1.1) rotate(10deg); color: white; }

.feature-pill {
    background: white; border: 2px solid #eee; padding: 12px 25px;
    border-radius: 50px; font-weight: 700; color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: 0.3s ease;
    font-size: 1.1rem;
}
.feature-pill:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); box-shadow: 0 8px 15px rgba(0,187,249,0.15);}

/* --- MOBILE RESPONSIVE RULES --- */
@media (max-width: 768px) {
    .navbar-brand { 
        max-width: 75%; 
        display: flex; 
        align-items: center; 
    }
    .navbar-brand img { height: 40px !important; margin-right: 8px !important; }
    .brand-main { font-size: 1.15rem !important; white-space: normal !important; line-height: 1.2; }
    .brand-sub { font-size: 0.75rem !important; letter-spacing: 0.5px; white-space: normal !important; }
    
    .navbar-toggler { padding: 4px 8px; margin-left: auto; display: block !important; border: none !important; box-shadow: none !important; }

    .carousel-item { height: 80vh; min-height: 480px; }
    .carousel-caption { bottom: 10%; left: 5%; right: 5%; } 
    .hero-title { font-size: 2.2rem; line-height: 1.1; margin-bottom: 10px !important; }
    .hero-subtitle { font-size: 1.1rem; margin-bottom: 20px !important; }
    
    .carousel-caption .btn {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 10px !important;
        font-size: 1.1rem;
    }
}