/* Custom styles for Corona Family Child Care */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    background: #FFD700;
    border-radius: 50%;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    background: #FF6B9D;
    border-radius: 50%;
    top: 60%;
    left: 5%;
    animation-delay: 1s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    background: #00D4AA;
    border-radius: 50%;
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #FF9F43;
    top: 70%;
    right: 8%;
    animation-delay: 1.5s;
    opacity: 0.12;
}

.square-1 {
    width: 70px;
    height: 70px;
    background: #A855F7;
    top: 45%;
    left: 12%;
    animation-delay: 0.5s;
    transform: rotate(45deg);
    border-radius: 8px;
}

.dot-cluster {
    background: transparent;
    width: auto;
    height: auto;
    top: 80%;
    right: 20%;
    animation-delay: 3s;
}

.dot-cluster::before,
.dot-cluster::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.dot-cluster::before {
    width: 16px;
    height: 16px;
    background: #FFD700;
    top: 0;
    left: 0;
}

.dot-cluster::after {
    width: 10px;
    height: 10px;
    background: #FF6B9D;
    top: 20px;
    left: 25px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
}

nav.scrolled .font-display {
    color: #064E3B !important;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom selection color */
::selection {
    background: #059669;
    color: #FFF8E7;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.2s ease;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Subtle pattern overlay for cream sections */
.bg-cream::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(5, 150, 105, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}
