/* Custom styles for Foster's Child Care */

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

/* Hero animated shapes */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: #E8634A;
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #ed9350;
    bottom: 10%;
    left: 5%;
    animation: float-medium 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: #E8634A;
    top: 40%;
    left: 30%;
    animation: float-fast 10s ease-in-out infinite;
}

.circle-4 {
    width: 80px;
    height: 80px;
    background: #ffd4c7;
    top: 20%;
    left: 45%;
    animation: float-medium 12s ease-in-out infinite;
}

.hero-diamond {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #E8634A;
    opacity: 0.15;
    top: 30%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.hero-dots {
    position: absolute;
    bottom: 15%;
    right: 25%;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 12px;
    opacity: 0.2;
}

.hero-dots::before,
.hero-dots::after {
    content: '';
}

.hero-dots span {
    width: 4px;
    height: 4px;
    background: #E8634A;
    border-radius: 50%;
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -40px); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 25px) rotate(10deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease, background 0.4s ease;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 250, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .menu-line {
    background: #1e1e25 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c4c4cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9696a3;
}
