/* -------------------- Variables -------------------- */
:root {
    --primary-color: #3B3FBD;       /* Deep blue for step numbers */
    --secondary-color: #14B789;     /* Vibrant green for timeline */
    --accent-color: #FF6B6B;        /* Red/pink accents */
    --section-bg-color: #ffffff;    /* Section background */
    --text-color: #333333;          /* Dark text for readability */
    --step-bg-color: #ffffff;       /* Step card background */
}

/* -------------------- Workflow Section -------------------- */
.workflow {
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    background-color: var(--section-bg-color);
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
}

.workflow::before {
    content: none;
}

/* -------------------- Section Title -------------------- */
.workflow .section-title-wrap {
    text-align: center;
    margin-bottom: 70px;
}

.workflow .section-title-wrap h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.workflow .section-title-wrap p {
    font-size: 1.1rem;
    color: #555;
}

/* -------------------- Steps Container -------------------- */
.workflow-steps {
    position: relative;
    padding-left: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
    border-radius: 4px;
}

/* -------------------- Individual Steps -------------------- */
.workflow-step {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInRight 0.6s ease forwards;
}

.workflow-step:nth-child(1) { animation-delay: 0.1s; }
.workflow-step:nth-child(2) { animation-delay: 0.2s; }
.workflow-step:nth-child(3) { animation-delay: 0.3s; }
.workflow-step:nth-child(4) { animation-delay: 0.4s; }
.workflow-step:nth-child(5) { animation-delay: 0.5s; }
.workflow-step:nth-child(6) { animation-delay: 0.6s; }
.workflow-step:nth-child(7) { animation-delay: 0.7s; }
.workflow-step:nth-child(8) { animation-delay: 0.8s; }
.workflow-step:nth-child(9) { animation-delay: 0.9s; }
.workflow-step:nth-child(10) { animation-delay: 1s; }

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* -------------------- Step Number -------------------- */
.step-number {
    position: absolute;
    left: -45px;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    border: 3px solid #fff;
    z-index: 2;
    transition: all 0.3s ease;
}

.workflow-step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* -------------------- Step Content -------------------- */
.step-content {
    background: var(--step-bg-color); /* White background */
    color: #333;
    padding: 30px 35px;
    border-radius: 16px;
    margin-left: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workflow-step:hover .step-content {
    transform: translateY(-5px); /* lift card slightly on hover */
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.workflow-step:hover .step-content::before {
    opacity: 1;
}

/* Step heading and text */
.step-content h3 {
    margin-bottom: 14px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.step-content p {
    line-height: 1.6;
    font-size: 1rem;
    color: #555;
}

/* Step icons (emoji or SVG) */
.workflow-step:nth-child(1) .step-content::after { content: '📋'; }
.workflow-step:nth-child(2) .step-content::after { content: '🏗️'; }
.workflow-step:nth-child(3) .step-content::after { content: '🎨'; }
.workflow-step:nth-child(4) .step-content::after { content: '🔌'; }
.workflow-step:nth-child(5) .step-content::after { content: '💾'; }
.workflow-step:nth-child(6) .step-content::after { content: '⚙️'; }
.workflow-step:nth-child(7) .step-content::after { content: '🐛'; }
.workflow-step:nth-child(8) .step-content::after { content: '📱'; }
.workflow-step:nth-child(9) .step-content::after { content: '🚀'; }
.workflow-step:nth-child(10) .step-content::after { content: '🔧'; }

.step-content::after {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 1.7rem;
    opacity: 0.85;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 768px) {
    .workflow-steps { padding-left: 20px; }
    .workflow-steps::before { left: 12px; width: 3px; }
    .step-number { left: -30px; width: 32px; height: 32px; font-size: 14px; }
    .step-content { padding: 22px; margin-left: 18px; }
    .step-content h3 { font-size: 1.2rem; }
    .step-content::after { top: 18px; right: 18px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .workflow-steps { padding-left: 15px; }
    .step-number { left: -25px; width: 28px; height: 28px; font-size: 13px; }
    .step-content { padding: 18px; margin-left: 15px; }
    .step-content h3 { font-size: 1rem; margin-bottom: 10px; }
    .step-content p { font-size: 0.9rem; }
    .workflow-step { margin-bottom: 40px; }
    .step-content::after { top: 15px; right: 15px; font-size: 1.3rem; }
}
