/* Custom styles and animations for CLEANBERG */

* {
    scroll-behavior: smooth;
}

/* Header scroll effect */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Carousel dots */
.active-dot {
    background-color: #3b82f6;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Glassmorphism cards */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

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

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

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

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

.animate-float-slow-delayed {
    animation: float 10s ease-in-out infinite;
    animation-delay: 3s;
}

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

.animate-float-medium-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 4s;
}

/* Marketplace button hover effects */
.marketplace-btn {
    position: relative;
    overflow: hidden;
}

.marketplace-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.marketplace-btn:hover::before {
    left: 100%;
}

/* Product cards hover enhancement */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

/* Selection color */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #1e293b;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

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

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown animation */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Text gradient animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.text-gradient-animate {
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s;
}

img[data-src] {
    opacity: 0;
}

/* Prevent text selection on buttons */
button, .nav-link {
    user-select: none;
}

/* Enhanced glass effect for modern browsers */
@supports (backdrop-filter: blur(20px)) {
    .glass-enhanced {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
    }
}