/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.scroll-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-animate:nth-child(2) {
    transition-delay: 0.2s;
}

.scroll-animate:nth-child(3) {
    transition-delay: 0.3s;
}

.scroll-animate:nth-child(4) {
    transition-delay: 0.4s;
}

.scroll-animate:nth-child(5) {
    transition-delay: 0.5s;
}

.scroll-animate:nth-child(6) {
    transition-delay: 0.6s;
}

.scroll-animate:nth-child(7) {
    transition-delay: 0.7s;
}

.scroll-animate:nth-child(8) {
    transition-delay: 0.8s;
}

.scroll-animate:nth-child(9) {
    transition-delay: 0.9s;
}

.scroll-animate:nth-child(10) {
    transition-delay: 1s;
}

.scroll-animate:nth-child(11) {
    transition-delay: 1.1s;
}

.scroll-animate:nth-child(12) {
    transition-delay: 1.2s;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4CAF50;
}

/* Navbar Styles */
#navbar.scrolled {
    background: rgba(13, 61, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion Styles */
.faq-btn i {
    transition: transform 0.3s ease;
}

.faq-btn.active i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.show {
    max-height: 500px;
}

/* Product Card Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* WhatsApp Button */
.fixed.bottom-24.right-6:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Form Input Focus Styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
.group:hover img {
    transform: scale(1.1);
}

/* Card Hover Effects */
.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1B5E20, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation for WhatsApp */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-pulse {
    animation: pulse 2s infinite;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scroll-animate {
        transform: translateY(30px);
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shine Effect */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

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

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

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(27, 94, 32, 0.5);
}

.glow-accent {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Typography Enhancements */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Border Animation */
@keyframes borderPulse {
    0% {
        border-color: #1B5E20;
    }
    50% {
        border-color: #4CAF50;
    }
    100% {
        border-color: #1B5E20;
    }
}

.border-pulse {
    animation: borderPulse 2s infinite;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

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

/* Mobile link hover effects */
.mobile-link {
    position: relative;
    overflow: hidden;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Mobile menu scrollbar styling */
#mobile-menu::-webkit-scrollbar {
    width: 6px;
}

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

#mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}

/* Mobile menu button animation */
#mobile-menu-btn {
    transition: transform 0.3s ease;
}

#mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Hero Section Overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.9) 0%, rgba(13, 61, 18, 0.8) 100%);
}

/* Product Badge Styles */
.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: rgba(27, 94, 32, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Statistics Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1B5E20, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Footer Gradient */
.footer-gradient {
    background: linear-gradient(135deg, #0D3D12 0%, #1B5E20 100%);
}

/* Social Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
}

/* Navigation Link Underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

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

/* Product Image Zoom */
.product-image-container {
    overflow: hidden;
}

.product-image-container img {
    transition: transform 0.5s ease;
}

.product-image-container:hover img {
    transform: scale(1.1);
}

/* Category Card */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card:hover .category-icon {
    transform: rotate(360deg);
}

.category-icon {
    transition: transform 0.5s ease;
}

/* Why Choose Us Card */
.why-card {
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Gallery Image */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* FAQ Item */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(27, 94, 32, 0.05);
}

/* Form Validation */
input:invalid,
textarea:invalid {
    border-color: #ef4444;
}

input:valid,
textarea:valid {
    border-color: #22c55e;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(27, 94, 32, 0.3);
    border-top: 3px solid #1B5E20;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    animation: fadeInUp 0.5s ease;
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    animation: fadeInUp 0.5s ease;
}
