/* Stacking Cards shared styles */

.stacking-cards-active {
    scroll-snap-type: y proximity;
}

.process-section {
    padding-top: 14rem;
    /* Increased from 8rem for spacing above 'Workflow' */
    position: relative;
    padding-bottom: 0;
    /* Tighten bottom */
}

.sc-cards-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 0px;
    /* Eliminate residual padding */
}

.process-sticky-group {
    position: sticky;
    top: 5vh;
    /* Pins the entire section group */
    z-index: 10;
}

/* Static Header inside Sticky Parent - Pins automatically */
.process-header {
    position: relative;
    z-index: 100;
    /* Ensure title is ALWAYS above cards */
    text-align: center;
    margin-bottom: 2rem;
    pointer-events: none;
}

.sc-card-wrapper {
    position: sticky;
    top: 20vh;
    height: 450px;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.sc-card-wrapper:nth-child(1) {
    z-index: 1;
}

.sc-card-wrapper:nth-child(2) {
    z-index: 2;
    margin-top: var(--gap-section);
    /* 10rem - the green block gap */
}

.sc-card-wrapper:nth-child(3) {
    z-index: 3;
    margin-top: calc(var(--gap-section) * 2);
}

.sc-card-wrapper:nth-child(4) {
    z-index: 4;
    margin-top: calc(var(--gap-section) * 3);
}

.sc-card-wrapper:nth-child(5) {
    z-index: 5;
    margin-top: calc(var(--gap-section) * 4);
    height: 450px;
}


.sc-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem 4rem;
    /* Reduced top/bottom padding */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    /* Shadow on top */
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 450px;
    /* Matching wrapper height */
    transition: transform 0.3s ease;
}

.sc-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sc-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.sc-card-visual {
    height: 250px;
    background: transparent;
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Abstract Tech SVG Animations */
.tech-svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.tech-path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2.5s ease-in-out forwards infinite;
    opacity: 0.8;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.floating-visual {
    animation: float-visual 4s ease-in-out infinite;
}

@keyframes float-visual {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sc-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .sc-card-visual {
        height: auto;
        min-height: 120px;
    }

    .sc-card h2 {
        font-size: 1.5rem;
    }
}