/* ===================================================================
   PREMIUM VISUAL ASSETS - FINTECH INSTITUTIONAL GRADE
   Professional Abstract Patterns & Geometric Designs
   =================================================================== */

/* ===================================================================
   HERO BACKGROUND PATTERNS
   =================================================================== */

.hero-premium {
    position: relative;
    background: var(--surface-0);
    overflow: hidden;
}

/* Layered Abstract Grid Pattern */
.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(180deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Floating Geometric Shapes */
.hero-premium::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-shape 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50px, 50px) scale(1.1);
        opacity: 0.5;
    }
}

/* Secondary Floating Shape */
.hero-background::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-shape-reverse 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-shape-reverse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(60px, -60px) scale(1.15);
        opacity: 0.3;
    }
}

/* ===================================================================
   WORKFLOW SECTION VISUAL ENHANCEMENTS
   =================================================================== */

.how-it-works {
    position: relative;
    overflow: hidden;
}

/* Subtle Diagonal Lines Pattern */
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            var(--border-subtle) 50px,
            var(--border-subtle) 51px
        );
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Radial Gradient Accent */
.how-it-works::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(37, 99, 235, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.workflow-timeline {
    position: relative;
    z-index: 1;
}

/* ===================================================================
   PARTNERS SECTION VISUAL TREATMENT
   =================================================================== */

.partners-section {
    position: relative;
    background: var(--surface-0);
}

/* Hexagonal Pattern Background */
.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, var(--border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.partners-grid {
    position: relative;
    z-index: 1;
}

/* Enhanced Partner Cards with Hover Glow */
.partner-card {
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.15) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    border-radius: 50%;
    opacity: 0;
}

.partner-card:hover::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* ===================================================================
   SERVICES SECTION VISUAL ENHANCEMENTS
   =================================================================== */

.services-section {
    position: relative;
    overflow: hidden;
}

/* Vertical Lines Pattern */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            var(--border-subtle) 80px,
            var(--border-subtle) 81px
        );
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Corner Accent Gradients */
.services-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle at top right,
        rgba(20, 184, 166, 0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Service Card Icon Background Glow */
.service-card:hover .step-icon,
.service-card:hover .why-icon {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

/* ===================================================================
   WHY CHOOSE SECTION VISUAL TREATMENT
   =================================================================== */

.why-choose-section {
    position: relative;
    overflow: hidden;
}

/* Circular Dots Pattern */
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, var(--border-subtle) 2px, transparent 2px);
    background-size: 50px 50px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Bottom Gradient Accent */
.why-choose-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(
        to top,
        rgba(37, 99, 235, 0.03) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ===================================================================
   PROFESSIONAL IMAGE PLACEHOLDERS
   =================================================================== */

/* Abstract Financial Data Visualization */
.financial-visual-1 {
    width: 100%;
    height: 400px;
    background: 
        linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.financial-visual-1::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: 
        linear-gradient(to top, 
            transparent 0%,
            rgba(37, 99, 235, 0.1) 20%,
            rgba(37, 99, 235, 0.15) 40%,
            rgba(20, 184, 166, 0.1) 60%,
            rgba(20, 184, 166, 0.15) 80%,
            transparent 100%
        );
    clip-path: polygon(
        0% 100%, 
        10% 85%, 
        20% 90%, 
        30% 75%, 
        40% 80%, 
        50% 65%, 
        60% 70%, 
        70% 55%, 
        80% 60%, 
        90% 50%, 
        100% 55%, 
        100% 100%
    );
}

/* Geometric Network Pattern */
.financial-visual-2 {
    width: 100%;
    height: 300px;
    background: var(--surface-card);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.financial-visual-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--color-primary) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, var(--color-secondary) 2px, transparent 2px),
        radial-gradient(circle at 50% 70%, var(--color-accent) 2px, transparent 2px),
        radial-gradient(circle at 30% 80%, var(--color-primary) 2px, transparent 2px),
        radial-gradient(circle at 70% 60%, var(--color-secondary) 2px, transparent 2px);
    background-size: 100% 100%;
    opacity: 0.3;
}

/* Data Bars Visualization */
.data-bars-visual {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    padding: 20px;
    background: var(--surface-card);
    border-radius: 16px;
    gap: 12px;
}

.data-bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
    border-radius: 8px 8px 0 0;
    opacity: 0.7;
    transition: all 0.3s ease;
    animation: grow-bar 1.5s ease-out forwards;
}

@keyframes grow-bar {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 0.7;
    }
}

.data-bar:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.data-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.data-bar:nth-child(2) { height: 85%; animation-delay: 0.2s; }
.data-bar:nth-child(3) { height: 70%; animation-delay: 0.3s; }
.data-bar:nth-child(4) { height: 95%; animation-delay: 0.4s; }
.data-bar:nth-child(5) { height: 75%; animation-delay: 0.5s; }
.data-bar:nth-child(6) { height: 88%; animation-delay: 0.6s; }

/* ===================================================================
   ABSTRACT ICON BACKGROUNDS
   =================================================================== */

.icon-background-1 {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(20, 184, 166, 0.1) 100%
    );
    position: relative;
    overflow: hidden;
}

.icon-background-1::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.2) 0%,
        transparent 50%
    );
    animation: rotate-glow 15s linear infinite;
}

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

/* ===================================================================
   INSTITUTIONAL GRADE CARD SHADOWS
   =================================================================== */

.premium-shadow-sm {
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

.premium-shadow-md {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.premium-shadow-lg {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Dark Mode Shadows */
@media (prefers-color-scheme: dark) {
    .premium-shadow-sm {
        box-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .premium-shadow-md {
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .premium-shadow-lg {
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.5),
            0 16px 32px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
}

body[data-theme="dark"] .premium-shadow-sm {
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="dark"] .premium-shadow-md {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.5) !important;
}

body[data-theme="dark"] .premium-shadow-lg {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 16px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

/* ===================================================================
   RESPONSIVE ADJUSTMENTS
   =================================================================== */

@media (max-width: 768px) {
    .hero-premium::after {
        width: 300px;
        height: 300px;
        top: -50px;
        right: -50px;
    }
    
    .hero-background::after {
        width: 350px;
        height: 350px;
        bottom: -100px;
        left: -100px;
    }
    
    .financial-visual-1,
    .financial-visual-2 {
        height: 250px;
    }
    
    .data-bars-visual {
        height: 150px;
    }
}
