/* Custom styles for Sacred Beginnings */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Reveal animations for scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-delay="100"] {
    transition-delay: 0.1s;
}

.reveal[data-delay="200"] {
    transition-delay: 0.2s;
}

.reveal[data-delay="300"] {
    transition-delay: 0.3s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .float {
        animation: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Ensure proper image rendering */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Prevent layout shift */
img, video, svg {
    display: block;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.active {
    max-height: 500px;
}

/* Geometric shape animations */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.1);
}

/* Pulse animation for CTA buttons */
@keyframes pulse-coral {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 107, 107, 0);
    }
}

.pulse-coral:hover {
    animation: pulse-coral 1.5s infinite;
}

/* Ensure all text is readable */
.text-charcoal-300 {
    color: #a0a0b8;
}

.text-charcoal-400 {
    color: #808098;
}

.text-charcoal-500 {
    color: #606078;
}

/* Button focus states */
button:focus,
a:focus {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
