/* Animation Effects */
.parallax-effect {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* 3D Hover Effect */
.service-card, .partner-card, .testimonial-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover, .partner-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
}

/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.6s;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Floating Animation */
.floating {
    animation: floating 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Text Reveal Animation */
.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    animation: reveal 1.5s ease forwards;
}

@keyframes reveal {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    }
    to {
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.5), 0 0 35px rgba(139, 92, 246, 0.3);
    }
}

/* Mouse Move Parallax */
.mouse-parallax {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tilt Effect */
.tilt-effect {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.5s ease;
}

.tilt-inner {
    transform: translateZ(50px);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typing Animation */
.typing {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 12s ease-in-out infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* 3D Image Animation */
.image-3d-wrapper {
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float3D 6s ease-in-out infinite;
    position: relative;
}

.image-3d-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    transform: translateZ(-50px);
    filter: blur(20px);
    border-radius: 20px;
}

.image-3d-wrapper img {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    transform: translateZ(50px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes float3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg) translateZ(0px);
    }
    25% {
        transform: rotateX(5deg) rotateY(5deg) translateZ(20px);
    }
    50% {
        transform: rotateX(-2deg) rotateY(8deg) translateZ(30px);
    }
    75% {
        transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
    }
    100% {
        transform: rotateX(0deg) rotateY(0deg) translateZ(0px);
    }
}

.image-3d-wrapper:hover {
    animation-play-state: paused;
}

.image-3d-wrapper:hover img {
    transform: translateZ(80px) rotateY(-15deg);
}

/* Mouse Move 3D Effect */
.hero-right {
    perspective: 1000px;
}

.image-container {
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.2s ease-out;
}