.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
}

.animated-border:hover::after {
    width: 100%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* New animations for SEO score section */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.result-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.result-card:hover .gradient-text {
    animation: pulse 2s infinite;
}

.result-card i {
    transition: transform 0.3s ease;
}

.result-card:hover i {
    transform: scale(1.2);
}

.score-animation {
    animation: pulse 2s infinite;
}

.progress-bar-animation {
    position: relative;
    overflow: hidden;
}

.progress-bar-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

/* Logo Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5),
                     0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8),
                     0 0 30px rgba(16, 185, 129, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5),
                     0 0 20px rgba(16, 185, 129, 0.3);
    }
}

.animated-logo {
    background: linear-gradient(
        90deg,
        #3b82f6,
        #10b981,
        #3b82f6
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientFlow 8s ease infinite,
               glowPulse 3s ease-in-out infinite;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.animated-logo:hover {
    transform: scale(1.05);
    letter-spacing: 2px;
}

/* Process Section Animations */
.process-step {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-icon {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-line {
    transition: opacity 1s ease-in-out;
    transform-origin: top;
}

@keyframes growLine {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.timeline-line.animate {
    opacity: 1;
    animation: growLine 1.5s ease-out forwards;
}

.process-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.process-icon.animate {
    opacity: 1;
    transform: scale(1);
}

/* Meet Our Pros Section Animations */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5),
                    0 0 10px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8),
                    0 0 25px rgba(16, 185, 129, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5),
                    0 0 10px rgba(16, 185, 129, 0.3);
    }
}

@keyframes iconGlow {
    0% {
        text-shadow: 0 0 5px currentColor;
    }
    50% {
        text-shadow: 0 0 15px currentColor;
    }
    100% {
        text-shadow: 0 0 5px currentColor;
    }
}

.pro-stat {
    position: relative;
    transition: all 0.3s ease;
}

.pro-stat:hover {
    transform: translateY(-2px);
    animation: glowPulse 2s infinite;
}

.pro-stat i {
    transition: all 0.3s ease;
}

.pro-stat:hover i {
    animation: iconGlow 2s infinite;
}

.pro-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 2px;
    background: linear-gradient(45deg, #3b82f6, #10b981);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pro-stat:hover::before {
    opacity: 1;
}

/* Testimonials Section Animations */
.testimonials-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.testimonial-card {
    flex: 0 0 350px;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-image {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
}

.testimonial-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .testimonial-image::after {
    opacity: 1;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating i {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.2);
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-button:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.scroll-button.prev {
    left: 1rem;
}

.scroll-button.next {
    right: 1rem;
}

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

.testimonial-card {
    animation: fadeIn 0.5s ease forwards;
} 