/* Circle + detail card only — scoped to roadmap section; banner bg/heading stay home.css */

.home-roadmap-section.home-roadmap-banner {
    background-color: #222222;
    background-image:
        linear-gradient(
            105deg,
            rgba(20, 20, 22, 0.78) 0%,
            rgba(26, 26, 30, 0.68) 50%,
            rgba(18, 18, 20, 0.85) 50%
        ),
        url("../bg/test1.webp");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/* Orbit = ring band center. Badi screen: pehle jaisa patla ring; moti border sirf mobile media mein */
.home-roadmap-section {
    --roadmap-dot-size: min(88vw, 400px);
    --roadmap-border-w: clamp(42px, 10vw, 58px);
    --home-roadmap-orbit: calc(var(--roadmap-dot-size) * 0.5 - var(--roadmap-border-w) * 0.5);
    /* Card hamesha same height — step badalne par section niche se nahi hilega; zyada text scroll */
    --roadmap-card-h: min(48vh, 380px);
}

.home-roadmap-section .home-roadmap-stage {
    margin-top: clamp(2.25rem, 5.5vw, 4.5rem);
    margin-left: var(--home-strip-cards-pad-start, 4.5rem);
    margin-right: var(--home-strip-cards-pad-start, 4.5rem);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .home-roadmap-section .home-roadmap-stage {
        margin-left: var(--home-strip-cards-pad-start, 1.25rem);
        margin-right: var(--home-strip-cards-pad-start, 1.25rem);
    }
}

/* Heading + View All: grid se beech wala column sirf title — link alag, jaldi 2 line wrap nahi */
@media (min-width: 768px) {
    .home-roadmap-section .home-roadmap-toprow {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.75rem 1rem;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: stretch;
    }

    .home-roadmap-section .home-roadmap-title-wrap {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        grid-column: 2;
        grid-row: 1;
        max-width: none;
        width: max-content;
        max-width: min(100%, 96vw);
        justify-self: center;
        padding: 0 0.5rem;
        pointer-events: none;
        z-index: 1;
    }

    .home-roadmap-section .home-roadmap-toprow .home-our-services-viewall {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    /* View All ki wajah se pehle max-width se jaldi wrap; ab ek line prefer */
    .home-roadmap-section .home-roadmap-title {
        white-space: nowrap;
    }

    /* Circle niche (sirf ring column) — desktop + tablet */
    .home-roadmap-section .home-roadmap-stage-col--ring {
        padding-top: clamp(2.25rem, 4.5vw, 5.5rem);
    }
}

@media (max-width: 767.98px) {
    .home-roadmap-section .home-roadmap-toprow {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        justify-content: flex-start;
        min-height: 0;
        gap: clamp(0.65rem, 2.5vw, 1.1rem);
    }

    .home-roadmap-section .home-roadmap-title-wrap {
        position: static;
        transform: none;
        max-width: none;
        width: 100%;
        padding: 0;
        pointer-events: auto;
        grid-column: unset;
        grid-row: unset;
    }

    .home-roadmap-section .home-roadmap-toprow .home-our-services-viewall {
        grid-column: unset;
        justify-self: unset;
        align-self: flex-end;
    }

    .home-roadmap-section .home-roadmap-stage-col--ring {
        padding-top: 0;
    }
}

.home-roadmap-section .home-roadmap-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    /* center mat: ek column ka height badle to doosra upar-neeche na kude */
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.home-roadmap-section .home-roadmap-stage-col--ring {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
}

.home-roadmap-section .home-roadmap-stage-col--panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    min-height: 0;
}

/* Tech ring (mynew-style, sized for this column) */
.home-roadmap-section .roadmap-section-dot {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: var(--roadmap-dot-size);
    height: var(--roadmap-dot-size);
    border-radius: 50%;
    border: var(--roadmap-border-w) solid rgba(61, 59, 59, 0.55);
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(80, 79, 79, 0.12);
    z-index: 2;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: grab;
    /* Desktop: drag ke liye; phone par scroll na atke isliye niche media mein pan-y */
    touch-action: none;
    box-sizing: border-box;
}

/* Phone: vertical scroll circle ke upar se bhi chale — touch-action none scroll chura leta tha */
@media (max-width: 768px) {
    .home-roadmap-section .roadmap-section-dot {
        touch-action: pan-y;
        cursor: default;
    }
}

.home-roadmap-section .roadmap-section-dot:active {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .home-roadmap-section .roadmap-section-dot:active {
        cursor: default;
    }

    .home-roadmap-section .roadmap-dot-icon {
        touch-action: pan-y;
    }
}

.home-roadmap-section .roadmap-section-dot-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: calc(100% - 2 * var(--roadmap-border-w));
    height: calc(100% - 2 * var(--roadmap-border-w));
    max-width: 284px;
    max-height: 284px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible;
}

.home-roadmap-section .roadmap-section-dot-tech {
    position: relative;
    width: min(100%, 340px);
    height: min(100%, 340px);
    aspect-ratio: 1;
    flex-shrink: 0;
    transition: opacity 0.25s ease;
}

.home-roadmap-section .roadmap-dot-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    z-index: 5;
    cursor: default;
    transition: opacity 0.25s ease;
}

.home-roadmap-section .roadmap-dot-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-roadmap-section .roadmap-dot-icon {
    transform: rotate(calc(360deg * var(--i, 0) / var(--total-icons, 12)))
        translateY(calc(-1 * var(--home-roadmap-orbit)))
        rotate(calc(-360deg * var(--i, 0) / var(--total-icons, 12)))
        rotate(var(--cr, 0deg));
}

/* No hover scale — keeps ring readable and avoids layout jump */

/* Topic row: fixed min-height + grid — title 1/2 lines par bhi row height stable */
.home-roadmap-section .roadmap-sub-heading-wrap {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 3;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 0.65rem clamp(0.5rem, 2vw, 1.25rem);
    margin-bottom: 1.1rem;
    pointer-events: auto;
    min-height: 6rem;
    flex-shrink: 0;
}

/* Pricing (.pricing-arrow) jaisa plain — bina transform scale ke taaki layout hilé nahi */
.home-roadmap-section .roadmap-arrow {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    flex: none;
    justify-self: center;
    align-self: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-roadmap-section .roadmap-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(74, 123, 255, 0.5), rgba(100, 181, 246, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.home-roadmap-section .roadmap-arrow i {
    position: relative;
    z-index: 1;
}

.home-roadmap-section .roadmap-arrow:hover {
    background: rgba(74, 123, 255, 0.15);
    color: #fff;
    border-color: rgba(74, 123, 255, 0.4);
    box-shadow: 0 0 20px rgba(74, 123, 255, 0.2), inset 0 0 12px rgba(74, 123, 255, 0.08);
}

.home-roadmap-section .roadmap-arrow:active {
    /* pricing jaisa press feel, bina scale — sirf rang */
    background: rgba(74, 123, 255, 0.22);
}

.home-roadmap-section .roadmap-arrow:focus-visible {
    outline: 2px solid rgba(74, 123, 255, 0.7);
    outline-offset: 2px;
}

.home-roadmap-section .roadmap-sub-heading {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.22;
    min-height: 2.44em;
    padding: 0.2em 0;
    box-sizing: content-box;
    background: linear-gradient(135deg, #4a7bff, #64b5f6, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    margin: 0;
    text-align: center;
    justify-self: stretch;
    align-self: center;
    min-width: 0;
    max-width: none;
    width: 100%;
}

.home-roadmap-section .roadmap-arrow-left {
    grid-column: 1;
    grid-row: 1;
}

.home-roadmap-section .roadmap-arrow-right {
    grid-column: 3;
    grid-row: 1;
}

.home-roadmap-section .roadmap-details {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    height: var(--roadmap-card-h);
    min-height: var(--roadmap-card-h);
    flex: 0 0 auto;
    z-index: 2;
}

.home-roadmap-section .roadmap-detail-panel {
    display: none;
    width: 100%;
    max-width: 520px;
    height: var(--roadmap-card-h);
    min-height: var(--roadmap-card-h);
    max-height: var(--roadmap-card-h);
    padding: 1.35rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.home-roadmap-section .roadmap-detail-panel.active {
    display: block;
}

.home-roadmap-section .roadmap-detail-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.55rem 0;
    letter-spacing: 0.02em;
}

.home-roadmap-section .roadmap-detail-text {
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.92rem, 1.45vw, 1.02rem);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 0.55rem 0;
}

.home-roadmap-section .roadmap-detail-meta {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.65rem 0;
    font-weight: 400;
}

.home-roadmap-section .roadmap-step-counter {
    margin-bottom: 0.45rem !important;
}

.home-roadmap-section .roadmap-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-roadmap-section .roadmap-detail-list li {
    position: relative;
    padding-left: 1.05rem;
    margin-bottom: 0.4rem;
    font-family: 'Tenor Sans', sans-serif;
    font-size: clamp(0.88rem, 1.35vw, 0.98rem);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
}

.home-roadmap-section .roadmap-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(74, 123, 255, 0.9);
}

.home-roadmap-section .roadmap-icon-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0 !important;
    visibility: hidden !important;
}

.home-roadmap-section .roadmap-icon-line line {
    stroke: transparent;
    stroke-width: 0;
}

.home-roadmap-section .roadmap-icon-detail {
    position: absolute;
    min-width: 200px;
    max-width: min(280px, 85vw);
    padding: 14px 18px;
    background: rgba(18, 18, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 8;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.home-roadmap-section .roadmap-icon-detail.visible {
    opacity: 1;
    visibility: visible;
}

.home-roadmap-section .roadmap-icon-detail-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 6px 0;
    letter-spacing: 0.02em;
}

.home-roadmap-section .roadmap-icon-detail-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

@media (max-width: 900px) {
    .home-roadmap-section .home-roadmap-stage-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-roadmap-section .home-roadmap-stage-col--ring {
        order: 2;
        min-height: 0;
    }

    .home-roadmap-section .home-roadmap-stage-col--panel {
        order: 1;
    }

    .home-roadmap-section .roadmap-sub-heading-wrap {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        min-height: 5.25rem;
    }

    .home-roadmap-section .roadmap-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .home-roadmap-section {
        --roadmap-card-h: min(46vh, 400px);
    }
}

@media (max-width: 576px) {
    .home-roadmap-section {
        /* Thoda bada circle + moti border taaki 34px icons track ke andar rahen */
        --roadmap-dot-size: min(92vw, 360px);
        --roadmap-border-w: clamp(48px, 12.5vw, 68px);
        --roadmap-card-h: min(40vh, 320px);
    }

    .home-roadmap-section .roadmap-section-dot-inner {
        max-width: 260px;
        max-height: 260px;
    }

    .home-roadmap-section .roadmap-dot-icon {
        width: 32px;
        height: 32px;
        margin-left: -16px;
        margin-top: -16px;
    }

    .home-roadmap-section .roadmap-sub-heading-wrap {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 0.5rem 0.5rem;
        min-height: 4.75rem;
    }

    .home-roadmap-section .roadmap-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .home-roadmap-section .roadmap-arrow::before {
        padding: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-roadmap-section .roadmap-arrow {
        transition: none;
    }
}
