/* Animations CSS */

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes steam {
    0% {
        opacity: 0.6;
        transform: translateY(0) scaleX(1);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-20px) scaleX(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scaleX(0.8);
    }
}

@keyframes inkDiffusion {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

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

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

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 95, 45, 0.4),
                    0 0 0 10px rgba(44, 95, 45, 0.4),
                    0 0 0 20px rgba(44, 95, 45, 0.4);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(44, 95, 45, 0.4),
                    0 0 0 20px rgba(44, 95, 45, 0.4),
                    0 0 0 40px rgba(44, 95, 45, 0);
    }
}

/* Animation Classes */
.animate-element {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-element.animated {
    opacity: 1;
}

/* Fade Animations */
.animate-element[data-animation="fade-in"].animated {
    animation: fadeIn 0.8s ease forwards;
}

.animate-element[data-animation="fade-up"].animated {
    animation: fadeUp 0.8s ease forwards;
}

.animate-element[data-animation="fade-down"].animated {
    animation: fadeDown 0.8s ease forwards;
}

.animate-element[data-animation="fade-left"].animated {
    animation: fadeLeft 0.8s ease forwards;
}

.animate-element[data-animation="fade-right"].animated {
    animation: fadeRight 0.8s ease forwards;
}

/* Scale Animation */
.animate-element[data-animation="scale-in"].animated {
    animation: scaleIn 0.8s ease forwards;
}

/* Bounce Animation */
.animate-element[data-animation="bounce"] {
    opacity: 1;
    animation: bounce 2s ease-in-out infinite;
}

/* Ink Diffusion Animation */
.animate-element[data-animation="ink-diffusion"].animated {
    animation: inkDiffusion 1.2s ease forwards;
}

/* Slide Animations */
.animate-element[data-animation="slide-left"].animated {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-element[data-animation="slide-right"].animated {
    animation: slideInRight 0.8s ease forwards;
}

/* Pulse Animation */
.animate-element[data-animation="pulse"].animated {
    animation: pulse 2s ease-in-out infinite;
}

/* Delay Classes */
.animate-element[data-delay="100"].animated {
    animation-delay: 0.1s;
}

.animate-element[data-delay="200"].animated {
    animation-delay: 0.2s;
}

.animate-element[data-delay="300"].animated {
    animation-delay: 0.3s;
}

.animate-element[data-delay="400"].animated {
    animation-delay: 0.4s;
}

.animate-element[data-delay="500"].animated {
    animation-delay: 0.5s;
}

.animate-element[data-delay="600"].animated {
    animation-delay: 0.6s;
}

.animate-element[data-delay="800"].animated {
    animation-delay: 0.8s;
}

/* Parallax Effect */
.parallax {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Text Shimmer Effect */
.text-shimmer {
    background: linear-gradient(
        90deg,
        #2C5F2D 0%,
        #8B4513 50%,
        #2C5F2D 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Loading Shimmer */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

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

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

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Glow Effect */
.glow {
    box-shadow: 0 0 10px rgba(44, 95, 45, 0.5),
                0 0 20px rgba(44, 95, 45, 0.3),
                0 0 30px rgba(44, 95, 45, 0.1);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(44, 95, 45, 0.5),
                    0 0 20px rgba(44, 95, 45, 0.3),
                    0 0 30px rgba(44, 95, 45, 0.1);
    }
    to {
        box-shadow: 0 0 20px rgba(44, 95, 45, 0.7),
                    0 0 30px rgba(44, 95, 45, 0.5),
                    0 0 40px rgba(44, 95, 45, 0.3);
    }
}

/* Fade In On Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.animated {
    animation: fadeUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }

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

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


