/* Custom styles for Cathys Caring Angels */

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

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

/* Reveal animation for scroll-triggered elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

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

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover effects */
.group:hover .group-hover\:bg-coral-500\/20 {
    background-color: rgba(255, 99, 71, 0.2);
}

.group:hover .group-hover\:bg-gold-400\/20 {
    background-color: rgba(212, 175, 55, 0.2);
}

/* Button hover lift effect */
.transform:hover {
    transform: translateY(-2px);
}

/* Form input focus glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.1);
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure text readability on all backgrounds */
.text-white {
    color: #ffffff;
}

.text-gray-100 {
    color: #f3f4f6;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

/* Gold accent text */
.text-gold-400 {
    color: #d4af37;
}

/* Coral accent text */
.text-coral-400 {
    color: #ff7b6e;
}
