/* ========================================
   All Services Section - Vibrant with Patterns
   ======================================== */

/* Section Base */
.services-saas-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 50%, #fafafa 100%);
    overflow: hidden;
}

/* Professional Geometric Pattern Overlay */
.services-saas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Diagonal lines pattern */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(34, 197, 94, 0.04) 35px,
            rgba(34, 197, 94, 0.04) 36px
        ),
        /* Large radial glows */
        radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Geometric shapes decoration */
.services-saas-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(34, 197, 94, 0.04) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(34, 197, 94, 0.04) 50%, transparent 52%);
    background-size: 60px 60px;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* Additional pattern element */
.services-saas-pattern {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(59, 130, 246, 0.03) 20px,
            rgba(59, 130, 246, 0.03) 22px
        );
    transform: rotate(10deg);
    pointer-events: none;
}

/* Section Header */
.services-saas-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.services-saas-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.services-saas-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.services-saas-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.7;
}

/* Services Grid */
.services-saas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .services-saas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-saas-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ========================================
   Service Card - Vibrant Glassmorphism Design
   ======================================== */
.service-card-saas {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 24px;
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(34, 197, 94, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Gradient border effect on hover */
.service-card-saas::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #22c55e 0%, #3b82f6 50%, #22c55e 100%);
    background-size: 200% 200%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    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.4s ease;
}

.service-card-saas:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -12px rgba(34, 197, 94, 0.25),
        0 0 0 1px rgba(34, 197, 94, 0.1);
}

.service-card-saas:hover::before {
    opacity: 1;
    animation: gradient-shift 3s ease infinite;
}

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

/* ========================================
   Icon Container - Gradient Style
   ======================================== */
.service-icon-saas {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 
        0 10px 25px -5px rgba(34, 197, 94, 0.4),
        0 4px 6px -2px rgba(34, 197, 94, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon-saas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
}

.service-icon-saas.img-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 16px;
}

.service-icon-saas.img-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-icon-saas.gradient-icon svg,
.service-icon-saas.gradient-icon i {
    color: #ffffff;
    font-size: 32px;
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
}

.service-icon-saas svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.service-card-saas:hover .service-icon-saas {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 
        0 15px 35px -5px rgba(34, 197, 94, 0.5),
        0 5px 10px -2px rgba(34, 197, 94, 0.3);
}

/* ========================================
   Featured Badge
   ======================================== */
.service-badge-saas {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    position: relative;
    z-index: 1;
}

/* ========================================
   Card Content - Centered Typography
   ======================================== */
.service-title-saas {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.service-title-saas a {
    color: inherit;
    text-decoration: none;
}

.service-card-saas:hover .service-title-saas {
    color: #16a34a;
}

.service-desc-saas {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
    max-width: 280px;
}

/* ========================================
   Circular Arrow Button
   ======================================== */
.service-link-saas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #22c55e;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-link-saas svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.service-card-saas:hover .service-link-saas {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
    transform: scale(1.1);
}

.service-card-saas:hover .service-link-saas svg {
    transform: translateX(2px);
}

/* ========================================
   Section Footer - View All Button
   ======================================== */
.services-saas-footer {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 1024px) {
    .services-saas-section {
        padding: 80px 0;
    }
    
    .services-saas-header {
        margin-bottom: 48px;
    }
    
    .services-saas-grid {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .services-saas-section {
        padding: 60px 0;
    }
    
    .services-saas-section::before {
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    }
    
    .services-saas-section::after {
        width: 200px;
        height: 200px;
        background-size: 40px 40px;
    }
    
    .services-saas-grid {
        padding: 0 16px;
    }
    
    .service-card-saas {
        padding: 32px 24px;
    }
    
    .service-icon-saas {
        width: 72px;
        height: 72px;
    }
    
    .service-title-saas {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .services-saas-section {
        padding: 48px 0;
    }
    
    .services-saas-header {
        padding: 0 16px;
        margin-bottom: 36px;
    }
    
    .services-saas-title {
        font-size: 1.625rem;
    }
    
    .services-saas-subtitle {
        font-size: 0.9375rem;
    }
    
    .service-card-saas {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .service-card-saas::before {
        border-radius: 20px;
    }
    
    .service-icon-saas {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .service-icon-saas.gradient-icon svg,
    .service-icon-saas.gradient-icon i {
        font-size: 28px;
    }
    
    .service-title-saas {
        font-size: 1.125rem;
    }
    
    .service-desc-saas {
        font-size: 0.875rem;
    }
    
    .service-link-saas {
        width: 44px;
        height: 44px;
    }
    
    .services-saas-footer {
        margin-top: 36px;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .service-card-saas {
        transition: none;
    }
    
    .service-card-saas:hover {
        transform: none;
    }
    
    .service-card-saas::before {
        animation: none;
    }
    
    .service-icon-saas {
        transition: none;
    }
    
    .service-link-saas {
        transition: none;
    }
    
    .btn-view-all {
        transition: none;
    }
}
