/* css/animations.css */
/* Reveal Masks */
.reveal-mask {
    position: relative;
    overflow: hidden;
}

.reveal-mask-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-mask-inner.visible {
    transform: translateY(0);
}

/* Fade Up */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clip Path Reveal */
.clip-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.clip-reveal.visible {
    clip-path: inset(0 0 0 0);
}

/* Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    background-color: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background-color: var(--color-accent);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Line Drawing */
.line-draw {
    height: 1px;
    background-color: var(--border-color);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.line-draw.visible {
    width: 100%;
}

/* Keyframes */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: translateX(-100%);
}

.btn-primary:hover::after {
    animation: shimmer 0.8s forwards;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-mask-inner,
    .reveal-up,
    .clip-reveal,
    .line-draw {
        transform: none !important;
        opacity: 1 !important;
        clip-path: none !important;
        width: 100% !important;
    }
}