/* Custom styles for Children First Development Center */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background-color: #059669;
    color: white;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFBF0;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle,
    .geo-square,
    .geo-diamond,
    .geo-triangle {
        animation: float 6s ease-in-out infinite;
    }

    .geo-circle:nth-child(odd) {
        animation-duration: 7s;
        animation-delay: -2s;
    }

    .geo-square {
        animation-duration: 8s;
        animation-delay: -1s;
    }

    .geo-diamond {
        animation-duration: 9s;
        animation-delay: -3s;
    }
}

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

/* Button press effect */
.btn-primary:active {
    transform: scale(0.98);
}

/* Card gradient border effect on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, #059669, #6EE7B7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card {
    position: relative;
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
}

/* Testimonial card shimmer */
@media (prefers-reduced-motion: no-preference) {
    .bg-white\/10 {
        position: relative;
        overflow: hidden;
    }

    .bg-white\/10::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            to bottom right,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 60%
        );
        transform: rotate(30deg);
        animation: shimmer 8s linear infinite;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}
