/* Custom styles */
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Custom styles for mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 50;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

/* Custom hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom button styles */
.btn-primary {
    @apply bg-green-600 text-white px-6 py-3 rounded-lg transition-all duration-300;
}

.btn-primary:hover {
    @apply bg-green-700 transform scale-105;
}

/* Custom card styles */
.card {
    @apply bg-white rounded-lg shadow-lg overflow-hidden transition-all duration-300;
}

.card:hover {
    @apply shadow-xl transform scale-105;
}

/* Custom form styles */
.form-input {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-600 focus:border-transparent transition-all duration-300;
}

.form-input:focus {
    @apply transform scale-105;
}

/* Custom image styles */
.product-image {
    @apply w-full h-48 object-cover transition-all duration-300;
}

.product-image:hover {
    @apply transform scale-110;
}

/* Custom section styles */
.section-title {
    @apply text-4xl font-bold text-gray-800 mb-8 text-center relative;
}

.section-title::after {
    content: '';
    @apply absolute bottom-0 left-1/2 transform -translate-x-1/2 w-24 h-1 bg-green-600 rounded-full;
}

/* Custom footer styles */
.footer-link {
    @apply text-gray-400 hover:text-white transition-colors duration-300;
}

.social-icon {
    @apply text-gray-400 hover:text-white transition-colors duration-300 transform hover:scale-110;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Mobile Menu Animation */
.mobile-menu-animate {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-40px);
}

.mobile-menu-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Plant Details Animation */
.plant-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plant-details.expanded {
    max-height: 500px;
} 