/* Custom CSS for Kids Corner Pre-Play School */

:root {
    --primary: #6A1B9A;
    --secondary: #F3E5F5;
    --accent: #FFD54F;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Performance Optimizations */
[data-aos] {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Hide scrollbar for gallery but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Apple-style smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loader transition */
#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Sticky Navbar refinement */
#navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#navbar.scrolled .max-w-7xl {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Custom Textures/Gradients */
.premium-gradient {
    background: linear-gradient(135deg, #6A1B9A 0%, #9C27B0 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #6A1B9A 0%, #E1BEE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Masonry-like spacing for gallery images */
#gallery img {
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#gallery .group:hover img {
    transform: scale(1.08);
}

/* Pricing Spotlight Effect */
#fees .max-w-md:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 27, 154, 0.05) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
}

/* Input Styles */
input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

/* Animation on Scroll customization */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}

/* Mobile Menu Links Animation */
.mobile-nav-link {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link:hover {
    padding-left: 0.5rem;
    color: var(--primary);
}

/* Bottom Nav Active State Simulation */
.bottom-nav-active {
    color: var(--primary) !important;
}

/* Ensure body doesn't scroll when menu is open */
.menu-open {
    overflow: hidden;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #navbar {
        padding: 0.5rem 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    /* Hide some elements to make it feel more like an app */
    .md\:flex {
        display: none;
    }
}
