/* Custom styles for Beach Treasures Coffee and Gifts */

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

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

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

@keyframes float-card {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-card-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
}

.animate-float-card {
    animation: float-card 4s ease-in-out infinite;
}

.animate-float-card-delayed {
    animation: float-card-delayed 5s ease-in-out infinite;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(139, 26, 75, 0.1);
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce0ea;
    color: #8B1A4B;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed,
    .animate-float-card,
    .animate-float-card-delayed {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\:scale-110,
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Card hover effects */
.group:hover {
    transform: translateY(-0.5px);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #8B1A4B, #ec5e82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
