/* ==========================================================
   1IT.SK
   Animations Stylesheet
========================================================== */


/* ==========================================================
   GLOBAL REVEAL ANIMATIONS
========================================================== */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(36px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================
   DELAYS
========================================================== */

.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}

.delay-4 {
    transition-delay: .4s;
}

.delay-5 {
    transition-delay: .5s;
}


/* ==========================================================
   HERO DECORATIONS
========================================================== */

.grid-bg {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -20px;
    top: 30px;
    z-index: 1;
    opacity: .25;
    background-image:
        radial-gradient(circle, rgba(24, 198, 195, .45) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 68%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 68%);
}

.dot-1 {
    top: 16%;
    right: 14%;
}

.dot-2 {
    bottom: 22%;
    left: 18%;
    width: 14px;
    height: 14px;
    opacity: .65;
}


/* ==========================================================
   SOFT PULSE
========================================================== */

@keyframes softPulse {
    0% {
        transform: scale(1);
        opacity: .55;
    }

    50% {
        transform: scale(1.08);
        opacity: .85;
    }

    100% {
        transform: scale(1);
        opacity: .55;
    }
}

.circle-bg {
    animation: softPulse 7s ease-in-out infinite;
}


/* ==========================================================
   BUTTON SHINE
========================================================== */

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, .35),
        transparent
    );
    transform: skewX(-20deg);
}

.btn-primary:hover::before {
    animation: buttonShine .8s ease;
}

@keyframes buttonShine {
    from {
        left: -120%;
    }

    to {
        left: 140%;
    }
}


/* ==========================================================
   CARD MICRO ANIMATION
========================================================== */

.service-card,
.process-item,
.reference-card,
.feature,
.stat,
.contact-item {
    will-change: transform;
}


/* ==========================================================
   NAVIGATION MOBILE
========================================================== */

.navigation.active {
    animation: menuDrop .35s ease forwards;
}

@keyframes menuDrop {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}