/* Hero Section Animations */
.hero-content {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.hero-visual {
    opacity: 0;
    animation: slideInRight 0.8s ease 0.3s forwards;
}

.hero-title-highlight {
    animation: pulseScale 2s ease-in-out infinite;
}

.hero-image-container img {
    animation: float 4s ease-in-out infinite;
}

/* Floating Cards */
.card-speed {
    animation: floatTop 3s ease-in-out infinite;
}

.card-uptime {
    animation: floatBottom 3s ease-in-out infinite;
}

/* Button Animations */
.check-coverage-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-coverage-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.check-coverage-btn:active {
    transform: translateY(0);
}

/* Trust Badge Animations */
.trust-badges .badge {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.trust-badges .badge:nth-child(1) { animation-delay: 0.6s; }
.trust-badges .badge:nth-child(2) { animation-delay: 0.8s; }
.trust-badges .badge:nth-child(3) { animation-delay: 1.0s; }

/* Loading Animation */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Background Gradient Animation */
.gradient-bg--1 {
    background: radial-gradient(circle at 0% 0%, var(--color-primary-50), transparent 50%),
                radial-gradient(circle at 100% 100%, var(--color-primary-light), transparent 50%);
    animation: gradientShift 10s ease-in-out infinite alternate;
}

/* Animation Keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

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

@keyframes floatTop {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatBottom {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Header Scroll Animation */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* Navigation Hover Effects */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Form Input Animation */
.postcode-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.postcode-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-50);
}

/* Mobile Menu Animation */
.nav-menu {
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Features Section Animations */
.features {
    position: relative;
    overflow: hidden;
}

.section-header {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.feature-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.feature-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.feature-metric {
    position: relative;
    overflow: hidden;
}

.metric-value {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.feature-box.animate .metric-value {
    animation: slideUpFadeIn 0.6s ease forwards 0.3s;
}

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

/* Number Counter Animation */
.metric-value.counting {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Staggered Animation for Feature Boxes */
.features-grid .feature-box:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-box:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-box:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-box:nth-child(4) { transition-delay: 0.4s; }

/* Icon Glow Effect */
.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover .feature-icon::after {
    opacity: 0.5;
}

/* Pricing Section Animations */
.pricing {
    position: relative;
    overflow: hidden;
}

/* Pricing Toggle Animation */
.pricing-toggle {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.switch {
    position: relative;
    transition: background-color 0.3s ease;
}

.slider {
    position: absolute;
    transition: all 0.3s ease;
}

.slider::before {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pricing Card Animations */
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

/* Popular Card Animation */
.pricing-card.popular {
    --badge-content: "Best\AValue";
    animation: popularPulse 2s infinite;
}

.pricing-card.popular::before {
    content: var(--badge-content);
    position: absolute;
    top: -1rem;
    right: -1rem;
    transform: none;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8B4513;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: var(--font-bold);
    animation: valueIndicator 2s infinite;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    line-height: 1.2;
    transition: content 0.3s ease;
}

.pricing-card.popular::before[content="£"] {
    font-size: 2rem;
}

@keyframes popularPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Price Amount Animation */
.price-amount {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}

.amount {
    transition: all 0.3s ease;
}

.pricing-card:hover .amount {
    transform: scale(1.1);
    color: var(--color-primary);
}

/* Feature List Animation */
.card-features li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.pricing-card.animate .card-features li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animation for Feature Items */
.card-features li:nth-child(1) { transition-delay: 0.1s; }
.card-features li:nth-child(2) { transition-delay: 0.2s; }
.card-features li:nth-child(3) { transition-delay: 0.3s; }
.card-features li:nth-child(4) { transition-delay: 0.4s; }
.card-features li:nth-child(5) { transition-delay: 0.5s; }

/* CTA Button Animation */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
}

.cta-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Special Offer Animation */
.special-offer {
    animation: slideInDown 0.5s ease forwards,
               glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Pricing Toggle Transition */
.pricing-grid {
    transition: opacity 0.3s ease;
}

.pricing-grid.switching {
    opacity: 0;
}

/* Utility Classes for Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Tick Animation Styles */
.check-icon {
    display: inline-flex;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-primary);
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.check-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.card-features li.highlighted {
    opacity: 1;
}

.card-features li.highlighting {
    background: linear-gradient(
        to right,
        rgba(37, 99, 235, 0.1) 50%,
        transparent 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: all 0.5s ease-out;
}

.card-features li.highlighting.animate {
    background-position: 0 0;
}

@keyframes tickBounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.check-icon.animate {
    animation: tickBounce 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compare Section Styles */
.pricing-compare-wrapper {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.compare-toggle {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-toggle:hover {
    background: var(--color-primary);
    color: white;
}

.feature-highlights {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.highlight-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.highlight-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.highlight-dots span:nth-child(2) {
    opacity: 1;
    transform: scale(1.2);
}

/* Savings Bubble */
.annual-savings {
    position: absolute;
    top: -1rem;
    right: -1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.pricing-card:hover .annual-savings {
    opacity: 1;
    transform: scale(1);
}

.savings-bubble {
    background: var(--color-success);
    color: white;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-medium);
    line-height: 1.2;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

/* Plan Comparison */
.plan-comparison {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.compare-features-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.compare-features-btn:hover {
    color: var(--color-primary);
}

.compare-features-btn .compare-icon {
    transition: transform 0.3s ease;
}

.compare-features-btn:hover .compare-icon {
    transform: translateY(-4px);
}

/* Value Indicator Animation */
@keyframes valueIndicator {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pricing-card.popular::before {
    content: 'Best Value';
    position: absolute;
    top: -1rem;
    right: -1rem;
    transform: none;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8B4513;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: var(--font-bold);
    animation: valueIndicator 2s infinite;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    line-height: 1.2;
}

/* Animation for fade in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for pulse effect */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Testimonials Section Styles */
.testimonials {
    position: relative;
    padding: var(--space-20) 0;
    overflow: hidden;
}

/* Trust Score Banner */
.trust-score-banner {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFadeIn 0.6s ease forwards;
}

.trust-score-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-score-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.score-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-chart path:last-child {
    stroke-dasharray: 0, 100;
    animation: progressCircle 1.5s ease forwards 0.5s;
}

@keyframes progressCircle {
    to {
        stroke-dasharray: 98, 100;
    }
}

.score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: 1px;
}

/* Trust Metrics */
.trust-metrics {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
    display: block;
    position: relative;
}

.metric-value.counting {
    animation: pulse 0.5s ease;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Testimonial Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Card Header */
.testimonial-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
}

/* Play Button */
.play-video-btn {
    background: var(--color-primary-50);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.play-video-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* Quote Content */
.testimonial-content {
    position: relative;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: -0.5rem;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.quote-expand {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.expand-icon {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .expand-icon {
    transform: translateY(4px);
}

/* Author Section */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--color-text);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Verified Badge */
.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    background: var(--color-primary-50);
    border-radius: var(--radius-full);
}

.verified-icon {
    width: 16px;
    height: 16px;
}

/* Expanded Content */
.testimonial-expand {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.testimonial-card.expanded .testimonial-expand {
    max-height: 1000px;
    opacity: 1;
    margin-top: 2rem;
}

.expanded-content {
    padding: 2rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.testimonial-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.testimonial-metrics .metric-value {
    color: var(--color-primary);
}

.testimonial-metrics .metric-value.highlight {
    color: var(--color-success);
}

/* Trust Score Banner Animations */
.trust-banner {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.trust-banner.animate {
    opacity: 1;
    transform: translateY(0);
}

.circular-chart {
    transform: rotate(-90deg);
}

.circular-chart path:last-child {
    stroke-dasharray: 0, 100;
    transition: stroke-dasharray 1.5s ease-out;
}

.circular-chart.animate path:last-child {
    stroke-dasharray: 98, 100;
}

.metric-value {
    position: relative;
}

.metric-value.counting::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    border-radius: 4px;
    background: var(--color-primary-50);
    opacity: 0;
    animation: pulse 1s ease-out;
}

/* Testimonial Card Animations */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Quote and Content Animations */
.testimonial-content {
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
}

.quote-expand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.quote-expand:hover {
    color: var(--color-primary);
}

.quote-expand .expand-icon {
    transition: transform 0.3s ease;
}

.testimonial-card.expanded .quote-expand .expand-icon {
    transform: rotate(180deg);
}

/* Interactive Button Animations */
.play-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
    background: var(--color-primary-600);
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.play-button:hover::after {
    width: 150%;
    height: 150%;
}

/* Badge and Icon Animations */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--color-success-50);
    color: var(--color-success-600);
    animation: badgeGlow 2s infinite;
}

.star-rating {
    position: relative;
    overflow: hidden;
}

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

/* Video Card Animations */
.video-card {
    position: relative;
    overflow: hidden;
}

.video-thumbnail {
    transition: transform 0.6s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-card .play-button {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-success-200);
    }
    50% {
        box-shadow: 0 0 10px var(--color-success-300);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

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

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

/* Modal Animations */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.video-modal.active {
    opacity: 1;
}

.modal-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.video-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Video Card Styles */
.video-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 0;
}

.video-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-details {
    padding: 2rem;
}

.video-details h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Logos Carousel */
.logos-section {
    padding: 3rem 0;
    background: var(--color-gray-50);
    overflow: hidden;
}

.logos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logos-carousel {
    display: flex;
    align-items: center;
    animation: scroll 20s linear infinite;
    width: fit-content;
}

.logo-clone {
    display: flex;
    align-items: center;
}

.client-logo {
    height: 40px;
    margin: 0 2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.logos-carousel:hover {
    animation-play-state: paused;
}

/* Customer Logos */
.customer-logos {
    margin-top: 4rem;
    text-align: center;
}

.logos-title {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.logos-carousel {
    display: flex;
    gap: 2rem;
    align-items: center;
    animation: scrollLogos 20s linear infinite;
}

.logo-item {
    flex: 0 0 120px;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0) opacity(1);
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .trust-score-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-metrics {
        grid-template-columns: 1fr;
    }

    .testimonial-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.video-modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: var(--radius-lg);
    z-index: 1;
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
}

.modal-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-note {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

/* Trust Stats Styles */
.trust-stats {
    margin: 4rem 0;
}

.stat-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-gray-100);
    font-size: 0.875rem;
    color: var(--color-gray-600);
    transition: all 0.3s ease;
}

.stat-trend.positive {
    background: var(--color-success-50);
    color: var(--color-success-600);
}

.trend-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.positive .trend-icon {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }
}

/* Trust Stats Section */
.trust-stats {
    padding: 4rem 0;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.stat-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
}

.stat-value.counting {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 2s ease infinite;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    font-size: 0.875rem;
    color: var(--color-gray-600);
    transition: all 0.3s ease;
}

.stat-trend.positive {
    background: var(--color-success-50);
    color: var(--color-success-600);
}

.trend-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.positive .trend-icon {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }
}

/* Additional Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

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