/* Custom styles and animations */

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

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

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

::-webkit-scrollbar-thumb {
    background: #be185d;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotate, 0deg));
    }
}

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
    --rotate: -6deg;
}

.floating-card-2 {
    animation: float 7s ease-in-out infinite;
    --rotate: 6deg;
    animation-delay: 1s;
}

.floating-card-3 {
    animation: float 5s ease-in-out infinite;
    --rotate: -3deg;
    animation-delay: 2s;
}

/* Hover effects for cards */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button hover glow effect */
.shadow-xl {
    transition: box-shadow 0.3s ease;
}

.shadow-xl:hover {
    box-shadow: 0 20px 40px rgba(157, 23, 77, 0.2);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

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

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

/* Navbar background on scroll */
nav.scrolled {
    background: rgba(253, 244, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .animate-bounce {
        display: none;
    }
}
