/* css/animations.css */

/* Animation Keyframes */
@keyframes reveal-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes reveal-right {
    0% {
        opacity: 0;
        transform: translateX(-24px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reveal-left {
    0% {
        opacity: 0;
        transform: translateX(24px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes (Initial State) */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

/* Active Animation States */
.reveal.reveal-active {
    animation-duration: 0.82s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-up.reveal-active {
    animation-name: reveal-up;
}

.reveal-in.reveal-active {
    animation-name: reveal-in;
}

.reveal-right.reveal-active {
    animation-name: reveal-right;
}

.reveal-left.reveal-active {
    animation-name: reveal-left;
}

/* Stagger Effects */
.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.40s; }

/* Micro-interactions (Hover Elevate) */
.hover-lift {
    transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(28, 20, 14, 0.12);
}

/* Fluid Navigation Links (Animated Underline) */
.nav-link-animated {
    position: relative;
    display: inline-block;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #7c4a2c; /* primary color */
    transition: width 0.3s ease;
}

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