/* ===== Custom Styles for MandM Daycare ===== */

/* Base styles */
* {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric decorative shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #175417;
    border-radius: 50%;
    top: 20%;
    right: -100px;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: #EF476F;
    border-radius: 50%;
    bottom: 30%;
    left: -80px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: #FFD166;
    border-radius: 50%;
    top: 60%;
    right: 10%;
}

.square-1 {
    width: 120px;
    height: 120px;
    background: #118AB2;
    top: 40%;
    left: 5%;
    transform: rotate(45deg);
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #9D4EDD;
    top: 75%;
    right: 5%;
    transform: rotate(-15deg);
}

/* Hero blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #4eaa4e;
    top: -150px;
    right: -100px;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #EF476F;
    bottom: -100px;
    left: -100px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #FFD166;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobFloat 12s ease-in-out infinite;
}

.blob-4 {
    width: 200px;
    height: 200px;
    background: #9D4EDD;
    top: 20%;
    left: 10%;
    animation: blobFloat 9s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Floating shapes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(18deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-15px) rotate(-6deg); }
}

@keyframes float-delay-2 {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-25px) rotate(-18deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite;
}

.animate-float-delay-2 {
    animation: float-delay-2 8s ease-in-out infinite;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery items */
.gallery-item {
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

/* Navbar */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    padding-left: 12px;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .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; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fdf8e8;
}

::-webkit-scrollbar-thumb {
    background: #175417;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #134113;
}

/* Selection color */
::selection {
    background: #FFD166;
    color: #175417;
}
