/* ===== One-click Automation Section ===== */
.automation-section {
    position: relative;
    padding: 8rem 2rem;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background blob blurs */
.automation-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 236, 255, 0.4) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.automation-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 240, 255, 0.5) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.oc-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

/* -- SVG Connecting Lines -- */
.oc-svg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.oc-path {
    fill: none;
    stroke: #00A896;
    stroke-width: 2;
    opacity: 0;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 0.9s ease, opacity 0.4s ease;
}

.oc-icon-wrapper {
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Triggered state */
.automation-section.oc-animated .oc-path {
    opacity: 0.45;
    stroke-dashoffset: 0;
}

.automation-section.oc-animated .oc-icon-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* Stagger each line */
.oc-svg-lines path:nth-child(1) { transition-delay: 0s; }
.oc-svg-lines path:nth-child(2) { transition-delay: 0.12s; }
.oc-svg-lines path:nth-child(3) { transition-delay: 0.24s; }
.oc-svg-lines path:nth-child(4) { transition-delay: 0.36s; }
.oc-svg-lines path:nth-child(5) { transition-delay: 0.1s; }
.oc-svg-lines path:nth-child(6) { transition-delay: 0.22s; }
.oc-svg-lines path:nth-child(7) { transition-delay: 0.34s; }
.oc-svg-lines path:nth-child(8) { transition-delay: 0.46s; }

/* Stagger icons: left col then right col */
.oc-left .oc-icon-wrapper:nth-child(1)  { transition-delay: 0.5s; }
.oc-left .oc-icon-wrapper:nth-child(2)  { transition-delay: 0.65s; }
.oc-left .oc-icon-wrapper:nth-child(3)  { transition-delay: 0.8s; }
.oc-left .oc-icon-wrapper:nth-child(4)  { transition-delay: 0.95s; }
.oc-right .oc-icon-wrapper:nth-child(1) { transition-delay: 0.55s; }
.oc-right .oc-icon-wrapper:nth-child(2) { transition-delay: 0.7s; }
.oc-right .oc-icon-wrapper:nth-child(3) { transition-delay: 0.85s; }
.oc-right .oc-icon-wrapper:nth-child(4) { transition-delay: 1s; }

/* -- Central Box -- */
.oc-center-box {
    position: relative;
    background: #ffffff;
    width: 480px;
    padding: 3rem 2rem;
    text-align: center;
    z-index: 10;
    border-left: 1.5px solid rgba(0, 168, 150, 0.45);
    border-right: 1.5px solid rgba(0, 168, 150, 0.45);
    border-radius: 40px; /* creates the curved bounding box look */
    margin: 0 auto;
}

.oc-tag {
    display: inline-block;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.oc-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.oc-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.oc-btn {
    background: #1e293b;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.oc-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0,0,0,0.15);
}

/* -- floating icons columns -- */
.oc-side {
    position: relative;
    width: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    padding: 2rem 0;
}

.oc-icon-wrapper {
    position: absolute;
    width: 68px;
    height: 68px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px -3px rgba(0,0,0,0.08), 0 2px 5px -2px rgba(0,0,0,0.05);
}

/* 68px icons. centers at: 48, 192, 336, 480 */
/* y-top: center - 34px */
.oc-left .oc-icon-wrapper:nth-child(1) { top: 14px; left: 0; }
.oc-left .oc-icon-wrapper:nth-child(2) { top: 158px; left: 0; }
.oc-left .oc-icon-wrapper:nth-child(3) { top: 302px; left: 0; }
.oc-left .oc-icon-wrapper:nth-child(4) { top: 446px; left: 0; }

.oc-right .oc-icon-wrapper:nth-child(1) { top: 14px; right: 0; }
.oc-right .oc-icon-wrapper:nth-child(2) { top: 158px; right: 0; }
.oc-right .oc-icon-wrapper:nth-child(3) { top: 302px; right: 0; }
.oc-right .oc-icon-wrapper:nth-child(4) { top: 446px; right: 0; }

/* Simple colorful svgs for the inner icons */
.oci {
    width: 34px;
    height: 34px;
}

@media (max-width: 768px) {
    .automation-section {
        padding: 4rem 0.5rem;
    }

    .oc-container {
        gap: 0.5rem;
    }

    .oc-center-box {
        width: auto;
        flex: 1;
        min-width: 0;
        padding: 2rem 1rem;
    }

    .oc-side {
        width: 60px;
        flex-shrink: 0;
    }

    .oc-icon-wrapper {
        width: 52px;
        height: 52px;
    }

    .oci {
        width: 26px;
        height: 26px;
    }

    .oc-left .oc-icon-wrapper { left: 0; }
    .oc-right .oc-icon-wrapper { right: 0; }
}