/* Hero text entrance animation */
.hero-content h1 {
    animation: slideUpFadeIn 1s ease-out both;
}

.hero-content p {
    animation: slideUpFadeIn 1s ease-out 0.3s both;
}

.hero-content .btn {
    animation: slideUpFadeIn 1s ease-out 0.6s both;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video overlay pulse effect */
.hero-overlay {
    animation: subtlePulse 8s infinite alternate;
}

@keyframes subtlePulse {
    0% {
        background-color: rgba(0, 0, 0, 0.5);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.4);
    }
}
/* Feature cards hover animation */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2);
    /* color: #4e54c8; */
}

/* Staggered entrance animation */
.feature-card:nth-child(1) {
    animation: fadeInUp 0.8s 0.2s both;
}
.feature-card:nth-child(2) {
    animation: fadeInUp 0.8s 0.4s both;
}
.feature-card:nth-child(3) {
    animation: fadeInUp 0.8s 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Image reveal animation */
.about-image img, .mission-image img {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.about-image.animate-on-scroll img, 
.mission-image.animate-on-scroll img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Text content animation */
.about-text > *, .mission-text > * {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.about-text.animate-on-scroll > *, 
.mission-text.animate-on-scroll > * {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger the children */
.about-text.animate-on-scroll h2,
.mission-text.animate-on-scroll h2 {
    transition-delay: 0.2s;
}

.about-text.animate-on-scroll p:nth-child(2),
.mission-text.animate-on-scroll p:nth-child(2) {
    transition-delay: 0.4s;
}

.about-text.animate-on-scroll p:nth-child(3),
.mission-text.animate-on-scroll p:nth-child(3) {
    transition-delay: 0.6s;
}

.about-text.animate-on-scroll .btn,
.mission-text.animate-on-scroll .btn {
    transition-delay: 0.8s;
}
/* Testimonial card animation */
.testimonial-card {
    opacity: 0;
    transform: perspective(1000px) rotateX(15deg);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card.animate-on-scroll {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
}

/* Author image animation */
.testimonial-author img {
    border-radius: 50%;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}

.testimonial-card:hover .testimonial-author img {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
/* CTA section glow effect */
.cta {
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78,84,200,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotateGradient 15s linear infinite;
    z-index: 0;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    animation: fadeInScale 1s ease-out both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Button pulse animation */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(78, 84, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 84, 200, 0);
    }
}