/* Grace Public School - Custom Styles & Utilities */

body {
    background-color: #fdfbf7;
    overflow-x: hidden;
}

.text-gradient {
    background: linear-gradient(to right, #2b1b85, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Reveal Classes */
.reveal, .reveal-up, .reveal-down, .reveal-left, .reveal-right, .reveal-scale, .reveal-fade {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Initial States */
.reveal, .reveal-up {
    transform: translateY(40px);
}
.reveal-down {
    transform: translateY(-40px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal-scale {
    transform: scale(0.92);
}
.reveal-fade {
    transform: none;
}

/* Active Reveal States */
.reveal.active, .reveal-up.active, .reveal-down.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}
.reveal-fade.active {
    opacity: 1;
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom shape dividers */
.shape-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (min-width: 768px) {
    .shape-divider svg { height: 120px; }
}

/* Blob image container */
.img-blob-container {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    animation: blob 8s ease-in-out infinite alternate;
    box-shadow: 0 20px 40px rgba(43, 27, 133, 0.15);
}



/* Slow Spin Animation */
@keyframes slow-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.animate-slow-spin {
    animation: slow-spin 20s linear infinite;
}

/* Reverse Slow Spin */
@keyframes slow-spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
.animate-slow-spin-reverse {
    animation: slow-spin-reverse 25s linear infinite;
}

/* Float Animations */
@keyframes float-y-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}
.animate-float-slow {
    animation: float-y-slow 8s ease-in-out infinite;
}

@keyframes float-y-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-3deg); }
}
.animate-float-medium {
    animation: float-y-medium 6s ease-in-out infinite;
}

@keyframes float-y-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-9px) rotate(2deg); }
}
.animate-float-fast {
    animation: float-y-fast 4s ease-in-out infinite;
}

/* WhatsApp Floating Button Pulse Effect */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.whatsapp-btn-pulse {
    animation: whatsapp-pulse 2s infinite;
}


