﻿/*Split Diagonal Layout
*/
.problem-solution-diagonal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    overflow: hidden;
}

.problem {
    background: #ef4444;
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solution {
    background: #22c55e;
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}




/*Overlapping Circle Accent*/
.problem-solution-circles {
    /*display: flex;
    flex-wrap: wrap;*/
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: #F0F3F6;
}

.problem-card, .solution-card {
    position: relative;
    flex: 1;
    border-radius: 16px;
    padding: 2.5rem;
    /*    background: #1e293b;
*/ background-color: rgba(255, 255, 255, 0.8);
    color: #5B687E;
    overflow: hidden;
}

    .problem-card h3 {
        color: #5B687E;
    }

    .solution-card h3 {
        color: #5B687E;
    }

    .problem-card p {
        color: #5B687E;
        z-index: 1;
        position: relative;
    }

    .solution-card p {
        color: #5B687E;
        z-index: 1;
        position: relative;
    }

    .problem-card h4 {
        color: #ef4444;
    }

    .solution-card h4 {
        color: #22c55e;
    }

.circle-accent-problem {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(248,215,218, 0.7);
    bottom: -40px;
    left: -40px;
    z-index: 0;
}

.circle-accent-solution {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(212,237,218, 0.7);
    top: -40px;
    right: -40px;
    z-index: 0;
}




/*Hexagon / Polygon Accent*/

.problem-solution-hex {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 4rem 2rem;
}

.hex-block {
    flex: 1;
    padding: 2rem;
    color: #fff;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    text-align: center;
}

.problem {
    background: #ef4444;
}

.solution {
    background: #22c55e;
}


/*Overlapping circle*/
/*<section class="problem-solution-circles" >
<div class="problem-card" >
<h2 > The Problem</h2 >
<p > Data silos and inefficiency slow growth.</p >
<span class="circle-accent" > </span >
</div >
<div class="solution-card" >
<h2 > The Solution</h2 >
<p > Unified dashboards and automation accelerate decisions.</p >
<span class="circle-accent" > </span >
</div >
</section >*/





/*CSS Styling (Muted + Abstract)*/
.problem-solution-abstract {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 2rem;
    background: #0f172a; /* dark muted background */
    color: #e2e8f0;
}

.abstract-block {
    position: relative;
    padding: 2.5rem;
    border-radius: 16px;
    background: #1e293b;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .abstract-block:hover {
        transform: translateY(-4px);
    }

    .abstract-block h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .abstract-block p {
        font-size: 0.95rem;
        color: #cbd5e1;
    }

/* Abstract muted shapes */
.shape {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -40px;
    right: -40px;
    animation: floatShape 12s infinite ease-in-out;
}

.problem .shape {
    background: rgba(255,255,255,0.05);
}

.solution .shape {
    background: rgba(255,255,255,0.08);
}

/* Subtle floating animation */
@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Accessibility: disable motion if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none;
    }
}
/*<section class="problem-solution-abstract" >
<div class="abstract-block problem" >
<h2 > The Problem</h2 >
<p > Disconnected workflows and manual processes slow down progress.</p >
<span class="shape" > </span >
</div >
<div class="abstract-block solution" >
<h2 > The Solution</h2 >
<p > Unified automation and insights streamline operations and empower teams.</p >
<span class="shape" > </span >
</div >
</section >*/