/* Positive Parenting Custom Styles */

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

/* Announcement bar animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-bar {
    animation: slideDown 0.5s ease-out;
}

/* Mobile menu slide animation */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#mobile-menu:not(.hidden) {
    animation: slideIn 0.3s ease-out;
}

/* Logo animation */
@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
    }
}

.logo-glow {
    animation: logoGlow 3s ease-in-out infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

/* Gradient text animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* Button pulse effect */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
}

.button-pulse {
    animation: buttonPulse 2s ease-in-out infinite;
}

/* Form input focus animation */
input:focus,
select:focus,
textarea:focus {
    transform: translateY(-2px);
}

/* Testimonial card shine effect */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.testimonial-shine {
    position: relative;
    overflow: hidden;
}

.testimonial-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.6s ease-out forwards;
}

/* FAQ accordion smooth transition */
details summary {
    transition: all 0.3s ease;
}

details[open] summary {
    color: #0284c7;
}

/* Responsive image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Loading state for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
}
