/* Custom Styles for Expagro Website */
/* Color scheme inspired by Anisia Group - natural agricultural theme */

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Header scroll states */
#main-header.scrolled {
    top: 0;
    margin: 0;
    border-radius: 0;
    width: 100%;
}

#header-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Traditional header text colors (when scrolled) */
#main-header.scrolled h1 {
    color: #166534 !important; /* text-green-800 */
}

#main-header.scrolled .nav-link {
    color: #374151 !important; /* text-gray-700 */
}

#main-header.scrolled .nav-link:hover {
    color: #15803d !important; /* text-green-700 */
}

#main-header.scrolled button {
    color: #374151 !important; /* text-gray-700 */
}

#main-header.scrolled button:hover {
    color: #15803d !important; /* text-green-700 */
}

#main-header.scrolled #mobile-menu a {
    color: #374151 !important; /* text-gray-700 */
}

#main-header.scrolled #mobile-menu a:hover {
    color: #15803d !important; /* text-green-700 */
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpDelay {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpDelay2 {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpDelay3 {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up-delay {
    animation: fadeInUpDelay 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUpDelay2 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-3 {
    animation: fadeInUpDelay3 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* About Section Card Animations */
.about-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.about-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* About Section Text Animations - Fixed */
#about.animate-in .section-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#about.animate-in .section-divider {
    transform: scaleX(1) !important;
}

#about.animate-in .text-lg {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Card content animations when cards animate in */
.about-card.animate-in .text-xl {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.about-card.animate-in .text-gray-600 {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.about-card.animate-in .bg-green-100,
.about-card.animate-in .bg-amber-100,
.about-card.animate-in .bg-emerald-100 {
    transform: scale(1) !important;
}

/* Products Section Animations */
#products.animate-in .section-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#products.animate-in .section-divider {
    transform: scaleX(1) !important;
}

#products.animate-in .text-lg {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Product card animations when section animates in */
#products.animate-in .product-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#products.animate-in .product-card .text-2xl {
    transform: scale(1) !important;
}

#products.animate-in .product-card .text-xl,
#products.animate-in .product-card .text-gray-600,
#products.animate-in .product-card .font-medium {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Product Card Image Styles */
.product-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.product-card .w-20.h-20 {
    transition: box-shadow 0.3s ease;
}

.product-card:hover .w-20.h-20 {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Services Section Animations */
#services.animate-in .section-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#services.animate-in .section-divider {
    transform: scaleX(1) !important;
}

#services.animate-in .text-lg {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Service card animations when section animates in */
#services.animate-in .service-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#services.animate-in .service-card .w-12.h-12 {
    transform: scale(1) !important;
}

#services.animate-in .service-card .font-semibold,
#services.animate-in .service-card .text-sm {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Service card hover effects */
.service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Contact Section Animations */
#contact.animate-in .section-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#contact.animate-in .section-divider {
    transform: scaleX(1) !important;
}

#contact.animate-in .text-lg {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Contact info animations when section animates in */
#contact.animate-in .contact-info .text-2xl {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#contact.animate-in .contact-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Contact form animations when section animates in */
#contact.animate-in .contact-form .text-2xl {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#contact.animate-in .form-group {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Contact item hover effects */
.contact-item:hover {
    transform: translateX(5px) !important;
}

.contact-item:hover .bg-green-100,
.contact-item:hover .bg-amber-100,
.contact-item:hover .bg-emerald-100 {
    transform: scale(1.1) !important;
}

/* Custom gradient backgrounds - using Anisia Group's green theme */
.hero-gradient {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.15);
}

/* Custom button styles - using Anisia Group's green */
.btn-primary {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.4);
}

/* Section dividers - using Anisia Group's green */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #4a7c59 50%, transparent 100%);
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom navigation styles - using Anisia Group's green */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7c59;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Additional Anisia Group inspired colors */
:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c59;
    --light-green: #6b8e5a;
    --warm-beige: #f5f2e9;
    --earth-brown: #8b7355;
    --dark-brown: #5d4e37;
    --cream: #faf8f3;
    --accent-orange: #d2691e;
} 