/* ============================================
   COREVOUCH DESIGN ENHANCEMENTS
   ============================================ */

/* Hero Section with Background Image */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(124, 58, 237, 0.9) 100%),
                url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Floating Animation for Hero Elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

/* Card Hover Effects */
.feature-card,
.industry-card,
.testimonial-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.feature-card:hover,
.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Underline for Links */
.animated-link {
    position: relative;
    text-decoration: none;
}

.animated-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    transition: width 0.3s ease;
}

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

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.cta-button-primary {
    animation: pulse 2s infinite;
}

.cta-button-primary:hover {
    animation: none;
    transform: scale(1.05);
}

/* Testimonial Card Styles */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card .quote {
    position: relative;
    padding-left: 20px;
}

.testimonial-card .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 48px;
    color: #4F46E5;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Avatar with Ring */
.avatar-ring {
    padding: 3px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED, #EC4899);
    border-radius: 50%;
}

.avatar-ring img {
    border: 3px solid white;
    border-radius: 50%;
}

/* Stats Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.6s ease-out forwards;
}

/* Trust Badges Section */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.trust-badges:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Icon Bounce on Hover */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }

    .feature-card:hover,
    .industry-card:hover {
        transform: none;
    }
}

/* ============================================
   SWIPER SLIDER STYLES
   ============================================ */

/* Industries Swiper */
.industries-swiper {
    width: 100% !important;
    overflow: hidden !important;
    padding: 20px 0 50px 0 !important;
    position: relative !important;
}

.industries-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.industries-swiper .swiper-slide {
    flex-shrink: 0 !important;
    height: auto !important;
}

/* Desktop: Fixed width slides */
@media (min-width: 640px) {
    .industries-swiper .swiper-slide {
        width: 280px !important;
    }
}

/* Mobile: Full width slides */
@media (max-width: 639px) {
    .industries-swiper .swiper-slide {
        width: 85% !important;
        max-width: 320px !important;
    }

    .industries-swiper .swiper-wrapper {
        align-items: center;
    }

    /* Hide navigation arrows on mobile - use swipe instead */
    .industries-swiper .swiper-button-next,
    .industries-swiper .swiper-button-prev {
        display: none !important;
    }
}

.industries-swiper .swiper-button-next,
.industries-swiper .swiper-button-prev {
    color: #4F46E5 !important;
    background: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.industries-swiper .swiper-button-next:after,
.industries-swiper .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold !important;
}

.industries-swiper .swiper-pagination-bullet {
    background: #4F46E5 !important;
    opacity: 0.3;
}

.industries-swiper .swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* Testimonials Swiper */
.testimonials-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px;
    position: relative;
}

.testimonials-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: #4F46E5;
    opacity: 0.3;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ============================================
   MOBILE TEXT WRAPPING & OVERFLOW FIX
   ============================================ */

/* Global text wrapping fix — prevents long URLs/words from overflowing */
h1, h2, h3, h4, h5, h6, p, li {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Mobile-specific fixes */
@media (max-width: 640px) {
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Hide decorative images on mobile */
    .hide-on-mobile {
        display: none !important;
    }
}

/* Show decorative images on desktop */
@media (min-width: 641px) {
    .hide-on-mobile {
        display: block !important;
    }

    .hide-on-mobile.flex {
        display: flex !important;
    }

    .hide-on-mobile.grid {
        display: grid !important;
    }
}
