/* Custom styles for YuanBen Foods website */
/* Extends TailwindCSS with animations and utilities */

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Staggered animation delays */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

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

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

/* Navigation shadow */
.nav-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Navigation gradient background */
.nav-gradient {
    background: linear-gradient(120deg, var(--tw-gradient-stops));
}

/* Text shadow utility */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Content visibility optimization */
.content-auto {
    content-visibility: auto;
}

/* Text balance utility */
.text-balance {
    text-wrap: balance;
}

/* Initially hidden for scroll animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Header scroll state */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#main-header.scrolled #header-divider {
    opacity: 1;
}

/* Chat modal backdrop */
#chatModal {
    backdrop-filter: blur(4px);
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}

/* Job card expand animation */
.job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.job-details.open {
    max-height: 1000px;
}

