﻿/* Mount-Digital - Animation Styles */

/* Fade in animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide up animation */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-in-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left */
.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideLeft 0.8s ease-in-out forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
.slide-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideRight 0.8s ease-in-out forwards;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom in animation */
.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 0.8s ease-in-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for CTA buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Brand Carousel Styles */
.brand-carousel {
    padding: 20px 0;
    position: relative;
}

.brand-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .brand-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

.brand-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.brand-card:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Navigation buttons styling */
.swiper-button-outside {
    color: rgba(99, 102, 241, 0.8);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-outside:after {
    font-size: 18px;
}

.swiper-button-outside:hover {
    background: rgba(99, 102, 241, 0.2);
    color: rgba(99, 102, 241, 1);
}

.swiper-button-prev {
    top: 45%;
}

.swiper-button-next {
    top: 45%;
}

.swiper-pagination-bullet {
    background: rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: rgba(99, 102, 241, 1);
    transform: scale(1.2);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);

}

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

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Staggered animation delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* Reveal text animation */
.reveal-text {
    position: relative;
    color: transparent;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #6366f1;
    animation: revealText 1.5s ease forwards;
}

.reveal-text span {
    animation: textVisible 0s 0.7s forwards;
}

@keyframes revealText {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes textVisible {
    to {
        color: inherit;
    }
}

/* Shimmer effect for cards */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to {
        left: 150%;
    }
}

/* Rotate animation */
.rotate {
    animation: rotate 10s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}