/* ============================================
   MODERN LANDING PAGE ENHANCEMENTS
   Enhanced styling for existing landing page structure
   ============================================ */

/* Hero Section Modern Enhancements */
.hero-section-ris {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.03) 0%, 
        rgba(236, 72, 153, 0.03) 50%,
        rgba(13, 202, 240, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-ris::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content-ris {
    position: relative;
    z-index: 2;
}

.hero-title-ris {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a1d29 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-title-ris .text-primary-ris {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-ris {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 2rem;
}

.hero-badge-ris {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6366f1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.hero-badge-ris:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.25);
}

.hero-badge-ris i {
    font-size: 1rem;
}

/* Modern Button Enhancements */
.btn-ris {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ris::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ris:hover::before {
    width: 300px;
    height: 300px;
}

.btn-ris-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-ris-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-ris-outline {
    border: 2px solid #6366f1;
    background: transparent;
    color: #6366f1;
}

.btn-ris-outline:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

/* Modern Card Enhancements */
.card-ris {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-ris::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.card-ris:hover::before {
    left: 100%;
}

.card-ris:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Service Card Modern Enhancements */
.service-card-ris {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card-ris::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #0dcaf0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-ris:hover::after {
    transform: scaleX(1);
}

.service-card-ris img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.service-card-ris:hover img {
    transform: scale(1.15);
    filter: brightness(1.05);
}

.service-icon-ris {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card-ris:hover .service-icon-ris {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

/* Trusted Section Modern */
.trusted-section-modern {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    position: relative;
}

.trusted-label-modern {
    font-weight: 700;
    font-size: 1.125rem;
    color: #6366f1;
    letter-spacing: -0.02em;
}

.trusted-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.trusted-item-modern {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.trusted-item-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.trusted-icon-modern {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.trusted-item-modern:hover .trusted-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.trusted-text-modern {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
    font-size: 0.9375rem;
}

/* Statistics Section Modern */
.stats-section-ris {
    position: relative;
    overflow: hidden;
}

.stats-section-ris::before {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.stat-item-ris {
    position: relative;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.stat-item-ris::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item-ris:hover::before {
    opacity: 1;
}

.stat-item-ris:hover {
    transform: translateY(-5px);
}

.stat-number-ris {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label-ris {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

/* Features Section Modern */
#features .card-ris {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

#features .card-ris:hover {
    border-left-color: #6366f1;
    padding-left: calc(1.5rem + 4px);
}

#features .service-icon-ris {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* How It Works Section Modern */
.service-icon-ris[style*="width: 100px"] {
    position: relative;
}

.service-icon-ris[style*="width: 100px"] .badge {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Testimonials Modern */
#features + section .card-ris {
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

#features + section .card-ris:hover {
    border-top-color: #6366f1;
    transform: translateY(-5px);
}

/* CTA Section Modern */
section[style*="background: linear-gradient(135deg, rgba(220, 53, 69"] {
    position: relative;
    overflow: hidden;
}

section[style*="background: linear-gradient(135deg, rgba(220, 53, 69"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

/* Smooth Animations */
.animate-fade-in-up,
.animate-slide-in-right {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-title-ris {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-ris {
        font-size: 1.125rem;
    }
    
    .trusted-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number-ris {
        font-size: 2.5rem;
    }
    
    .service-card-ris {
        padding: 1.5rem;
    }
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Modern Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    section {
        scroll-margin-top: 80px;
    }
}

/* Enhanced Focus States */
.btn-ris:focus-visible,
.card-ris:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}
