/* Premium Animations and Effects */

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation for hero visual */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) perspective(1000px) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) perspective(1000px) rotateY(0deg);
    }
}

/* Pulse animation for CTAs */
@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: var(--shadow-glow);
    }
}

/* Gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Apply animations */
.hero-visual {
    animation: float 6s ease-in-out infinite;
}

.btn-primary {
    animation: pulse 2s ease-in-out infinite;
}

/* Staggered animations for process cards */
.process-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.process-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.process-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Staggered animations for architecture cards */
.architecture-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.architecture-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.architecture-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Staggered animations for benefit items */
.benefit-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.benefit-item:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.benefit-item:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.benefit-item:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Hover effects */
.process-card:hover .process-icon {
    animation: scaleIn 0.3s ease-out;
}



/* Loading states */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Gradient text animation */
.gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Scroll-triggered animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Parallax effect for hero background */
.hero::before {
    animation: gradientShift 20s ease infinite;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced button hover effects */
.btn:hover {
    transform: translateY(-3px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects */
.process-card:hover,
.architecture-card:hover,
.benefit-item:hover {
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon hover effects */
.process-icon:hover,
.benefit-item i:hover {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.visible::after {
    transform: translateX(100%);
}

/* Glow effects */
.glow {
    box-shadow: 0 0 20px rgba(11, 132, 243, 0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(11, 132, 243, 0.5);
}

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

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.shimmer:hover::before {
    left: 100%;
}

/* Bounce animation for success states */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

.bounce {
    animation: bounce 1s ease-in-out;
}

/* Typing animation for hero title */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Responsive animations */
@media (max-width: 768px) {
    .hero-visual {
        animation: none;
    }
    
    .btn-primary {
        animation: none;
    }
    
    .process-card,
    .architecture-card,
    .benefit-item {
        animation: fadeInUp 0.6s ease-out both;
    }
} 