/*
* Madarsko Dialnicna Znamka - Animations Stylesheet
* Version: 1.0
* Author: Roo
* Website: https://madarsko-dialnicna-znamka.sk
*/

/* ===== TRANSITIONS ===== */
a,
button,
.btn,
.nav-link,
.dropdown-item,
.form-control,
.social-icon,
.back-to-top {
    transition: all 0.3s ease;
}

/* ===== PULSATING BUTTON ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(200, 16, 46, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
    }
}

.pulsating-button {
    animation: pulse 2s infinite;
}

/* ===== FADE IN ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-slow {
    animation: fadeIn 2s ease-in-out;
}

.fade-in-fast {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===== FADE IN UP ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-in-out;
}

.fade-in-up-slow {
    animation: fadeInUp 2s ease-in-out;
}

.fade-in-up-fast {
    animation: fadeInUp 0.5s ease-in-out;
}

/* ===== FADE IN DOWN ANIMATION ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    animation: fadeInDown 1s ease-in-out;
}

.fade-in-down-slow {
    animation: fadeInDown 2s ease-in-out;
}

.fade-in-down-fast {
    animation: fadeInDown 0.5s ease-in-out;
}

/* ===== FADE IN LEFT ANIMATION ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 1s ease-in-out;
}

.fade-in-left-slow {
    animation: fadeInLeft 2s ease-in-out;
}

.fade-in-left-fast {
    animation: fadeInLeft 0.5s ease-in-out;
}

/* ===== FADE IN RIGHT ANIMATION ===== */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 1s ease-in-out;
}

.fade-in-right-slow {
    animation: fadeInRight 2s ease-in-out;
}

.fade-in-right-fast {
    animation: fadeInRight 0.5s ease-in-out;
}

/* ===== ZOOM IN ANIMATION ===== */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 1s ease-in-out;
}

.zoom-in-slow {
    animation: zoomIn 2s ease-in-out;
}

.zoom-in-fast {
    animation: zoomIn 0.5s ease-in-out;
}

/* ===== BOUNCE ANIMATION ===== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* ===== SHAKE ANIMATION ===== */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.8s ease-in-out;
}

/* ===== ROTATE ANIMATION ===== */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* ===== FLIP ANIMATION ===== */
@keyframes flip {
    0% {
        transform: perspective(400px) rotateY(0);
    }
    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

.flip {
    animation: flip 2s ease-in-out;
}

/* ===== ACCORDION ANIMATION ===== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* ===== HOVER EFFECTS ===== */

/* Image Zoom Effect */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.05);
}

/* Button Hover Effect */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-hover-effect:hover:after {
    left: 100%;
}

/* Card Hover Effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Link Underline Effect */
.link-underline {
    position: relative;
    text-decoration: none !important;
}

.link-underline:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover:after {
    width: 100%;
}

/* ===== LOADING ANIMATIONS ===== */

/* Spinner */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007A33;
    animation: spinner 0.8s linear infinite;
}

.spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
}

.spinner-lg {
    width: 3rem;
    height: 3rem;
    border-width: 0.375rem;
}

/* Dots Loading */
@keyframes dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-dots span {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin: 0 0.25rem;
    background-color: #007A33;
    border-radius: 50%;
    animation: dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* Progress Bar */
@keyframes progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.progress-bar-animated {
    animation: progress 2s linear;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== BACK TO TOP BUTTON ANIMATION ===== */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== COOKIE CONSENT ANIMATION ===== */
.cookie-consent {
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.visible {
    transform: translateY(0);
}