/* Additional custom styles for enhanced animations and effects */

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

/* Navigation styles */
.nav-link {
    @apply text-gray-700 hover:text-primary transition-colors duration-300 font-medium relative;
}

.nav-link.active {
    @apply text-primary;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: theme('colors.primary');
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Animation classes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-up.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-up.delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

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

.animate-bounce-slow {
    animation: bounce 3s infinite;
}

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

.feature-card:hover {
    transform: translateY(-5px);
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Button styles */
.whatsapp-btn {
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Filter button styles */
.filter-btn {
    @apply px-6 py-2 rounded-full border-2 border-gray-300 text-gray-600 font-semibold transition-all duration-300 hover:border-primary hover:text-primary;
}

.filter-btn.active {
    @apply bg-primary text-white border-primary;
}

/* Product filter animations */
.product-item {
    transition: all 0.3s ease;
}

.product-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Counter animation */
.counter {
    transition: all 0.3s ease;
}

/* Navbar scroll effect */
.navbar-scrolled {
    @apply bg-white/95 backdrop-blur-md shadow-xl;
}

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

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

::-webkit-scrollbar-thumb {
    background: theme('colors.primary');
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: theme('colors.blue.700');
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Form focus effects */
input:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, theme('colors.primary'), theme('colors.accent'));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Parallax effect for hero sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

#mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Success message animation */
.success-message {
    animation: bounceIn 0.5s ease-out;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .animate-slide-up {
        animation-duration: 0.6s;
    }
    
    .feature-card:hover,
    .product-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .fixed,
    footer,
    .whatsapp-btn {
        display: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-link {
        @apply border-b-2 border-transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        @apply border-primary;
    }
}

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

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}