/* css/process.css */
/* Our Process page – premium vertical timeline */

/* ===== PAGE HEADER ===== */
.page-header {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    overflow: hidden;
    isolation: isolate;
    background:
        url('https://images.unsplash.com/photo-1531415074968-036ba1b575da?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
}

.page-header::before {
    content: "";
    position: absolute;
    width: 130%;
    height: 90px;
    left: -10%;
    bottom: -52px;
    background: var(--bg-light);
    transform: rotate(-3deg);
    z-index: 1;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 212, 255, 0.18), transparent 42%),
        radial-gradient(circle at 15% 90%, rgba(255, 91, 46, 0.22), transparent 45%),
        linear-gradient(100deg, rgba(5, 12, 27, 0.93) 0%, rgba(5, 12, 27, 0.72) 55%, rgba(5, 12, 27, 0.48) 100%);
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.page-header h1 {
    color: #fff;
    font-size: clamp(44px, 8vw, 78px);
    line-height: 1.02;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.page-header h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 18px rgba(255, 91, 46, 0.45);
}

.page-header p {
    color: #d8e2f3;
    font-size: clamp(17px, 2.3vw, 21px);
    max-width: 680px;
    margin: 0;
}

/* ===== TIMELINE SECTION ===== */
.process-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #eef3fb 0%, #f8fafe 100%);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0px;
}

/* Vertical line down the center */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    z-index: 0;
}

/* Glowing dot at top of line */
.timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(255, 91, 46, 0.5);
    z-index: 1;
}

/* Each item is a 3-column grid: left | icon | right */
.timeline-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Connector line from icon to card */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 28px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 91, 46, 0.25), rgba(0, 212, 255, 0.25));
    z-index: 0;
    border-radius: 999px;
}

.timeline-item:nth-child(odd)::before {
    right: 50%;
    left: 10%;
}

.timeline-item:nth-child(even)::before {
    left: 50%;
    right: 10%;
}

/* Circle node — always in center column */
.timeline-node {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 22px;
    z-index: 2;
    box-shadow:
        0 10px 30px rgba(255, 91, 46, 0.35),
        0 0 0 6px rgba(255, 91, 46, 0.1),
        0 0 0 12px rgba(255, 91, 46, 0.05);
    transition: var(--transition);
}

.timeline-item:hover .timeline-node {
    transform: scale(1.15);
    box-shadow:
        0 14px 35px rgba(255, 91, 46, 0.45),
        0 0 0 8px rgba(255, 91, 46, 0.15),
        0 0 0 16px rgba(255, 91, 46, 0.06);
}

/* Content card */
.timeline-content {
    grid-row: 1;
    background: #fff;
    border: 1px solid #e7edf8;
    border-radius: var(--radius-md);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    text-align: justify;
}

/* Arrow pointer toward the center line */
.timeline-content::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 1px solid #e7edf8;
    transform: rotate(45deg);
    z-index: -1;
}

/* Odd items → card on LEFT */
.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -8px;
    border-left: none;
    border-bottom: none;
}

/* Even items → card on RIGHT */
.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -8px;
    border-right: none;
    border-top: none;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 91, 46, 0.2);
}

/* Gradient accent bar at top of card */
.timeline-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

.timeline-content .step-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 91, 46, 0.08), rgba(0, 212, 255, 0.06));
    border: 1px solid rgba(255, 91, 46, 0.12);
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    text-align: left;
}

.timeline-content p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.75;
    color: #5b6b86;
    text-align: justify;
}

/* ===== CTA SECTION ===== */
.process-cta {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(0, 212, 255, 0.12), transparent 34%),
        radial-gradient(circle at 84% 85%, rgba(255, 91, 46, 0.14), transparent 36%),
        linear-gradient(135deg, #050b1a 0%, #07132b 55%, #0b1a35 100%);
    text-align: center;
}

.process-cta h2 {
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.process-cta h2 span {
    color: var(--primary-color);
}

.process-cta p {
    color: #a9bad5;
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto 30px;
}

/* ===== RESPONSIVE — TABLET & MOBILE (single-column below 960px) ===== */
@media (max-width: 960px) {
    .timeline {
        max-width: 700px;
    }

    /* Switch to left-aligned single column */
    .timeline::before {
        left: 28px;
    }

    .timeline::after {
        left: 28px;
    }

    .timeline-item {
        grid-template-columns: 56px 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-node {
        grid-column: 1;
        grid-row: 1;
        width: 50px;
        height: 50px;
        font-size: 18px;
        box-shadow:
            0 8px 20px rgba(255, 91, 46, 0.3),
            0 0 0 4px rgba(255, 91, 46, 0.1);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .timeline-content {
        padding: 24px 22px;
    }

    .timeline-content::after {
        display: none;
    }

    .timeline-content p {
        text-align: left;
    }

    .timeline-content h3 {
        font-size: 21px;
    }

    .timeline-item:hover .timeline-node {
        transform: scale(1.08);
    }
}

@media (max-width: 768px) {
    .page-header {
        min-height: 38vh;
        padding: 118px 0 70px;
        text-align: center;
    }

    .page-header-content {
        margin: 0 auto;
    }

    .timeline-content {
        padding: 20px 16px;
    }

    .timeline-content h3 {
        font-size: 20px;
    }

    .process-cta {
        padding: 60px 0;
    }
}

