/* =========================================
   CUSTOM SOFTWARE PAGE SPECIFIC CSS
   ========================================= */

/* 1. PROCESS SECTION (Interactive Timeline) */
.process-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Big Number styling in background */
.process-step {
    font-size: 60px;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.08); /* Transparent blue number */
    position: absolute;
    top: -10px;
    right: 20px;
    transition: all 0.4s ease;
}

.process-card:hover .process-step {
    color: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.process-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.process-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 2. CTA SECTION (Call To Action Box) */
.cta-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.cta-box {
    background: linear-gradient(135deg, #1e3a8a, #2563eb); /* Premium Dark Blue Gradient */
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

/* Light abstract circles in CTA background */
.cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -20px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.cta-box h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.cta-box .btn-primary {
    position: relative;
    z-index: 2;
    padding: 15px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-box .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Adjustments for Old Code */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 40px 20px;
    }
    .cta-box h2 {
        font-size: 28px;
    }
    .cta-box p {
        font-size: 16px;
    }
}


/* =========================================
   3. NEW TIMELINE SECTION (PRO LOOK)
   ========================================= */
.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    gap: 15px;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Circle Icon Wrapper */
.step-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 2px solid #f4f7fb;
    transition: all 0.3s ease;
}

.timeline-step:hover .step-icon-wrapper {
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
}

/* Small Red/Blue Number Badge */
.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e11d48; /* Red badge like in your reference image */
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Connection Line & Moving Dots (Desktop) */
.timeline-connector {
    position: absolute;
    top: 40px; /* Align with middle of the 80px icon */
    left: calc(50% + 40px); /* Start exactly after the icon */
    width: calc(100% - 80px); /* Fill the space between icons */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

/* Hide line for the last step */
.timeline-step:last-child .timeline-connector {
    display: none;
}

.moving-dots {
    flex-grow: 1;
    height: 3px;
    /* Animated dashed line */
    background: repeating-linear-gradient(to right, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
    background-size: 24px 100%;
    animation: moveDotsHorizontal 1s linear infinite;
}

@keyframes moveDotsHorizontal {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

.bouncing-arrow {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

/* Arrow Bounces on hover */
.timeline-step:hover .bouncing-arrow {
    transform: translateX(8px); /* Move forward */
    stroke: #2563eb; /* Turn blue */
}

/* Mobile Responsive Timeline */
@media (max-width: 992px) {
    .timeline-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .timeline-step {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }

    /* Change connector to vertical for mobile */
    .timeline-connector {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 60px; /* Distance between steps */
        flex-direction: column;
        margin-top: 20px;
    }

    .moving-dots {
        width: 3px;
        height: 100%;
        background: repeating-linear-gradient(to bottom, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
        background-size: 100% 24px;
        animation: moveDotsVertical 1s linear infinite;
    }

    @keyframes moveDotsVertical {
        0% { background-position: 0 0; }
        100% { background-position: 0 24px; }
    }

    .bouncing-arrow {
        transform: rotate(90deg); /* Point arrow downwards */
        margin: 10px 0;
    }

    .timeline-step:hover .bouncing-arrow {
        transform: rotate(90deg) translateY(8px); /* Bounce downwards */
    }
}

/* =========================================
   4. NEW ZIG-ZAG LAYOUT (BLUE THEME)
   ========================================= */
.zigzag-container {
    display: flex;
    flex-direction: column;
    gap: 100px; /* Space between each row */
    margin-top: 40px;
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Reverses the order for every even row */
.zigzag-row.reverse-row {
    flex-direction: row-reverse;
}

.zigzag-image {
    flex: 1;
    position: relative;
}

/* Premium Image Border & Glow Effect (Blue) */
.image-border-glow {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.image-border-glow img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 2;
}

/* The glowing gradient border behind the image */
.image-border-glow.blue-glow::before {
    content: '';
    position: absolute;
    inset: -3px; /* Creates a 3px border */
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 23px;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

/* Hover effects for the image */
.zigzag-row:hover .image-border-glow {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.zigzag-row:hover .image-border-glow::before {
    opacity: 0.8;
}

/* Content Styling */
.zigzag-content {
    flex: 1;
}

.icon-box.blue-box {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.icon-box.blue-box svg {
    stroke: #2563eb;
}

.zigzag-row:hover .icon-box.blue-box {
    background: #2563eb;
}

.zigzag-row:hover .icon-box.blue-box svg {
    stroke: #ffffff;
}

.zigzag-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.zigzag-content p {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Features List with Custom SVG bullets (FIXED SIZE) */
.zigzag-features {
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.zigzag-features li {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FIX: Limit the size of the SVG checkmarks so they don't blow up */
.zigzag-features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Prevents the icon from squishing if text is long */
}

/* Mobile Responsive Zig-Zag */
@media (max-width: 992px) {
    .zigzag-container {
        gap: 60px;
    }
    
    /* Force column layout for ALL rows on mobile, overriding the reverse-row */
    .zigzag-row, .zigzag-row.reverse-row {
        flex-direction: column;
        text-align: left;
        gap: 30px;
    }

    /* Keep image on top always */
    .zigzag-image {
        width: 100%;
        order: 1; /* Force image first */
    }

    .zigzag-content {
        order: 2; /* Force text second */
        width: 100%;
    }

    .zigzag-content h3 {
        font-size: 26px;
    }
}