/* ==========================================================================
   POPULAR ZIG-ZAG ALTERNATING SERVICES SHOWCASE CSS
   ========================================================================== */

.zigzag-services-section {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

.zigzag-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.zigzag-row {
    margin-bottom: 5rem;
}

.zigzag-row:last-child {
    margin-bottom: 0;
}

/* 3D Visual Media Card */
.zigzag-media-card {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 28px;
    overflow: hidden;
    perspective: 1200px;
    transform-style: preserve-3d;
    box-shadow:
        0 24px 50px -12px rgba(15, 23, 42, 0.22),
        0 8px 20px -8px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.4s ease;
}

.zigzag-media-card:hover {
    box-shadow:
        0 32px 64px -16px rgba(15, 23, 42, 0.32),
        0 12px 28px -8px rgba(15, 23, 42, 0.18);
}

.zigzag-media-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.zigzag-media-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.22), transparent 70%);
}

.zigzag-media-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

.zigzag-glyph {
    position: relative;
    z-index: 2;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.25));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.zigzag-media-card:hover .zigzag-glyph {
    transform: scale(1.1) rotate(2deg);
}

/* Feature Chips Inside Visual Canvas */
.zigzag-chips {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zigzag-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Content Side */
.zigzag-content-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem;
}

.zigzag-step {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #0964B0;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.zigzag-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.zigzag-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.25rem;
    font-weight: 450;
}

.zigzag-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.zigzag-bullet-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.zigzag-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    padding: 0.8rem 1.6rem;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px -8px rgba(9, 100, 176, 0.4);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.zigzag-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgba(9, 100, 176, 0.6);
}

.zigzag-cta i {
    transition: transform 0.3s ease;
}

.zigzag-cta:hover i {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .zigzag-row {
        margin-bottom: 3.5rem;
    }

    .zigzag-media-card {
        height: 280px;
    }
}
