/* ============================================================
   GAP-BASED SECTION SPACING ARCHITECTURE
   Mirrors the portfolio/blog pattern. Only touches major
   section-to-section spacing; all internal spacing is preserved.
============================================================ */

:root {
    --service-detail-section-gap: clamp(4rem, 6vw, 7rem);
    --cta-padding-top: 0;
    --cta-padding-bottom: var(--service-detail-section-gap);
}

.service-detail-section-gap {
    width: 100%;
    height: var(--service-detail-section-gap);
    flex-shrink: 0;
}

.service-detail-section-gap.hero-to-partner-gap {
    height: clamp(3rem, 4.5vw, 4rem);
}

/* ============================================================
   SERVICE DETAILS HERO
============================================================ */

/* ================= BASE HERO ================= */

.service_details-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    background: #05010a;
    z-index: 5;
}

.service_details-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: flex-start !important;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* ================= CONTENT ================= */

.service_details-hero-content .heading-tag {
    padding-top: 0;
}

.service_details-reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    will-change: opacity, transform, filter;
}

.service_details-main-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 30px;
    color: #fff;
}

.service_details-description {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 550px;
    margin-bottom: 40px;
}

.service_details-hero-btns {
    display: flex;
    gap: 20px;
}

/* ================= VISUAL AREA ================= */

.service_details-hero-visual {
    position: relative;
    height: 520px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.iphone-stack-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.iphone-mockup {
    position: absolute;
    width: 240px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    aspect-ratio: 1 / 2.1;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    border: 6px solid #1a1a1a;
    box-shadow: -20px 40px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    will-change: transform;
    opacity: 0;
}

.iphone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= DESKTOP HOVER STATES ================= */

@media (min-width: 1025px) {
    .iphone-mockup {
        opacity: 0.7;
    }

    .iphone-mockup.active-hover {
        opacity: 1;
        filter: brightness(1.05);
        z-index: 20;
    }

    .iphone-mockup.dimmed {
        opacity: 0.35;
        filter: brightness(0.7);
    }
}

/* ================= DESKTOP STACK POSITIONS ================= */

.s-left-2 {
    left: 0%;
    top: 15%;
    z-index: 4;
}

.s-left-1 {
    left: 15%;
    top: 5%;
    z-index: 3;
}

.s-right-1 {
    left: 30%;
    top: 15%;
    z-index: 2;
}

.s-front {
    left: 45%;
    top: 5%;
    z-index: 1;
}

/* ================= TABLET (768–1024) ================= */

@media (max-width: 1024px) {
    .service_details-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 0;
    }

    .service_details-hero-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .service_details-description {
        margin-left: auto;
        margin-right: auto;
    }

    .service_details-hero-btns {
        justify-content: center;
    }

    .service_details-hero-visual {
        height: 500px;
        width: 100%;
    }

    .iphone-stack-container {
        width: 100%;
        max-width: 700px;
        height: 500px;
        margin: 0 auto;
    }

    .iphone-mockup {
        position: absolute;
        width: 190px;
        top: 30%;
        left: 50%;
        transform-origin: center;
    }

    /* Fan layout on tablet — centered around midpoint */
    /* Each phone is 190px wide, so to center the 4-phone fan:
       total spread ~380px, offset each from center (-285 to +95) */
    .s-left-2 {
        transform: translate(calc(-50% - 270px), -60%) rotate(-20deg);
        z-index: 1;
    }

    .s-left-1 {
        transform: translate(calc(-50% - 90px), -55%) rotate(-10deg);
        z-index: 2;
    }

    .s-right-1 {
        transform: translate(calc(-50% + 90px), -55%) rotate(10deg);
        z-index: 3;
    }

    .s-front {
        transform: translate(calc(-50% + 270px), -60%) rotate(20deg);
        z-index: 4;
    }
}


/* ================= MOBILE (<768px) — CAROUSEL ================= */

@media (max-width: 767px) {

    .service_details-hero {
        text-align: center;
    }

    .service_details-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service_details-hero-content .heading-tag {
        padding-top: 0;
    }

    .service_details-hero-visual {
        height: auto;
        flex-direction: column;
        gap: 24px;
    }

    /* Carousel track */
    .iphone-stack-container {
        position: relative;
        width: 220px;
        height: 420px;
        margin: 0 auto;
        overflow: visible;
    }

    /* All phones stacked on top of each other, JS slides them */
    .iphone-mockup {
        position: absolute;
        width: 200px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        transform-origin: center;
        border-width: 5px;
        border-radius: 32px;
        opacity: 0;
        transition: none;
        /* JS controls everything */
    }

    /* Active phone visible */
    .iphone-mockup.carousel-active {
        opacity: 1;
        z-index: 5;
    }

    /* Dot indicators */
    .carousel-dots {
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .carousel-dot.active {
        width: 20px;
        border-radius: 3px;
        background: var(--purple-light, #a78bfa);
        box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
    }
}

/* ================= SMALL MOBILE (≤420px) ================= */

@media (max-width: 420px) {

    .service_details-main-title {
        font-size: clamp(2rem, 9vw, 2.6rem);
        letter-spacing: -1px;
    }

    .service_details-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .service_details-hero-grid {
        gap: 36px;
    }

    .iphone-stack-container {
        width: 180px;
        height: 360px;
    }

    .iphone-mockup {
        width: 170px;
        border-radius: 28px;
    }
}

/* ============================================================
PARTNER TRUST SECTION
============================================================ */

.partner-trust-section {
    padding-top: 0;
    padding-bottom: 0;
    background: #05010a;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Remove the local .container override — global container handles this */

/* ================= GRID ================= */

.partner-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 100px;
    align-items: center;
}

/* ================= LEFT SIDE ================= */

.partner-main-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 50px;
}

.partner-main-title span {
    color: var(--purple-light);
}

.partner-points {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.partner-point-item {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.point-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.partner-point-item h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
}

.partner-point-item p {
    font-size: 17px;
    line-height: 1.6;
    color: #888;
    max-width: 420px;
}

/* ================= RIGHT SIDE ================= */

.partner-visual {
    position: relative;
    padding-bottom: 60px;
}

.partner-visual-reveal {
    position: relative;
}

/* IMAGE */

.portrait-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    margin-left: auto;
    box-shadow: var(--shadow-card);
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9);
}

/* ================= FLOATING TAGS ================= */

.tech-tag {
    position: absolute;
    background: rgba(255, 255, 255, .92);
    color: #000;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    z-index: 15;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    white-space: nowrap;
}

.tag-ios {
    top: 15px;
    right: 70px;
}

.tag-android {
    top: 80px;
    right: -20px;
}

/* ================= IMPACT CARD ================= */

.impact-glass-card {
    position: absolute;
    bottom: -50px;
    right: 0;
    /* align with image right edge */
    width: 120%;
    max-width: 520px;
    /* control expansion */
    background: var(--glass-bg-primary);
    backdrop-filter: blur(var(--blur-lg));
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border-purple);
    z-index: 20;
    box-shadow: var(--shadow-glow);
}

.impact-glass-card p {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

/* ============================================================
    LARGE DESKTOP
============================================================ */

@media (max-width:1400px) {
    .partner-grid {
        gap: 80px;
    }
}

/* ============================================================
    LAPTOP
============================================================ */

@media (max-width:1200px) {
    .partner-grid {
        gap: 60px;
    }

    .portrait-frame {
        max-width: 380px;
    }

    .impact-glass-card {
        left: -40px;
        width: 110%;
        bottom: -50px;
    }

    .tag-ios {
        right: 40px;
    }

    .tag-android {
        right: -10px;
    }
}

/* ============================================================
    TABLET (768px — 1024px) SIDE BY SIDE, CLEAN
============================================================ */

@media (max-width:1024px) and (min-width:769px) {

    .partner-trust-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .partner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .partner-info .heading-tag {
        justify-content: left;
    }

    .partner-main-title {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        margin-bottom: 30px;
    }

    .partner-points {
        gap: 28px;
    }

    .partner-point-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .point-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .partner-point-item h3 {
        font-size: 16px;
    }

    .partner-point-item p {
        font-size: 14px;
        max-width: 100%;
    }

    .partner-visual {
        padding-bottom: 0;
    }

    .portrait-frame {
        max-width: 100%;
        margin: 0;
        border-radius: 20px;
        aspect-ratio: 1/1;
    }

    .tag-ios {
        top: -12px;
        right: 12px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .tag-android {
        top: 30px;
        right: -8px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .impact-glass-card {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-top: 16px;
        padding: 24px;
        border-radius: 20px;
    }

    .impact-glass-card p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ============================================================
    MOBILE (≤768px) FULLY STACKED
============================================================ */

@media (max-width:768px) {

    .partner-trust-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .partner-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .partner-info {
        width: 100%;
    }

    .partner-info .heading-tag {
        justify-content: flex-start;
    }

    .partner-main-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        text-align: left;
        margin-bottom: 30px;
    }

    .partner-points {
        gap: 24px;
        align-items: flex-start;
    }

    .partner-point-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .point-icon {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .partner-point-item h3 {
        font-size: 16px;
    }

    .partner-point-item p {
        font-size: 14px;
        max-width: 100%;
    }

    .partner-visual {
        padding-bottom: 0;
        width: 100%;
    }

    .portrait-frame {
        max-width: 100%;
        margin: 0;
        border-radius: 20px;
        aspect-ratio: 16/10;
    }

    .tag-ios {
        top: -12px;
        right: 16px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .tag-android {
        top: 30px;
        right: -8px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .impact-glass-card {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-top: 16px;
        padding: 24px;
        border-radius: 20px;
    }

    .impact-glass-card p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ============================================================
    SMALL MOBILE (≤480px)
============================================================ */

@media (max-width:480px) {

    .partner-main-title {
        font-size: 1.7rem;
    }

    .partner-point-item h3 {
        font-size: 15px;
    }

    .partner-point-item p {
        font-size: 13px;
    }

    .tech-tag {
        font-size: 11px;
        padding: 7px 14px;
    }

    .impact-glass-card {
        padding: 20px;
    }

    .impact-glass-card p {
        font-size: 14px;
    }
}

/* ============================================================
    BUILD CAPABILITY SECTION
============================================================ */

.build-capability-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #05010a;
}

/* Global container handles sizing */

/* ================= LAYOUT ================= */

.capability-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
}

/* ================= LEFT SIDE ================= */

.capability-header {
    width: 38%;
}

.build-main-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: #fff;
}

.build-main-title i {
    font-family: serif;
    font-style: italic;
    opacity: .6;
    font-weight: 400;
}

/* ================= RIGHT SIDE ================= */

.capability-list {
    width: 60%;
}

.capability-row {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.row-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 60px 0;
    transition: background .4s ease;
}

/* Divider */

.row-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: rgba(255, 255, 255, .1);
}

/* Title */

.row-title h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1.4;
}

/* Text */

.row-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #888;
    transition: color .4s ease;
    max-width: 520px;
}

/* Hover & Desktop Pinned Stack Layout — desktop only */

@media (min-width: 1025px) {
    .capability-wrapper {
        align-items: center;
    }

    .capability-list {
        display: grid;
        grid-template-areas: "capability-stack";
        align-items: center;
        position: relative;
        overflow: hidden;
        min-height: 220px;
    }

    .capability-row {
        grid-area: capability-stack;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        background: transparent;
        will-change: transform, opacity;
    }

    .capability-row:hover .row-text p {
        color: #fff;
    }

    .capability-row:hover .row-divider {
        background: var(--color-primary-soft);
        box-shadow: 0 0 10px var(--purple-glow);
    }
}


/* ============================================================
    LARGE DESKTOP
============================================================ */

@media (max-width:1400px) {

    .capability-wrapper {
        gap: 80px;
    }

}

/* ============================================================
    LAPTOP
============================================================ */

@media (max-width:1200px) {

    .capability-wrapper {
        gap: 60px;
    }

    .build-main-title {
        font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    }

    .row-content {
        gap: 30px;
    }

    .row-text p {
        font-size: 15px;
    }

}

/* ============================================================
    TABLET LANDSCAPE
============================================================ */

@media (max-width:1024px) {

    .capability-wrapper {
        flex-direction: column;
        gap: 70px;
    }

    .capability-header {
        width: 100%;
        max-width: 600px;
    }

    .capability-list {
        width: 100%;
    }

    .row-content {
        grid-template-columns: 1fr 1.1fr;
        gap: 30px;
        padding: 50px 0;
    }

    .build-main-title {
        font-size: clamp(2.4rem, 5vw, 3rem);
    }

}

/* ============================================================
    TABLET PORTRAIT
============================================================ */

@media (max-width:768px) {

    .capability-wrapper {
        gap: 60px;
    }

    .build-main-title {
        font-size: 2.4rem;
    }

    .row-content {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 40px 0;
    }

    .row-title h3 {
        font-size: 15px;
    }

    .row-text p {
        font-size: 15px;
        max-width: 100%;
    }

}

/* ============================================================
    MOBILE
============================================================ */

@media (max-width:600px) {

    .build-capability-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .build-main-title {
        font-size: 2.1rem;
        letter-spacing: -1px;
    }

    .row-content {
        padding: 36px 0;
    }

    .row-text p {
        font-size: 14.5px;
        line-height: 1.6;
    }

}

/* ============================================================
    SMALL PHONES
============================================================ */

@media (max-width:420px) {

    .build-main-title {
        font-size: 1.9rem;
    }

    .row-title h3 {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .row-text p {
        font-size: 14px;
    }

}

/* --- ROADMAP SECTION --- */
.roadmap-section {
    padding-top: 0;
    padding-bottom: 0;
    background: #05010a;
    position: relative;
    overflow: hidden;
}

.roadmap-header {
    margin-bottom: var(--section-header-mb);
}

.reveal-line {
    overflow: hidden;
    display: block;
}

.roadmap-main-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    transform: translateY(100%);
    filter: blur(15px);
    opacity: 0;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

/* =====================
   POWER LINE
   ===================== */
.roadmap-steps {
    position: relative;
    padding-left: 80px;
}

.power-line-bg,
.power-line-active {
    position: absolute;
    left: 25px;
    width: 3px;
    /* top & height set dynamically by JS setLineHeight() */
}

.power-line-bg {
    background: rgba(255, 255, 255, 0.05);
}

.power-line-active {
    background: linear-gradient(to bottom,
            var(--color-primary-soft) 0%,
            var(--color-primary) 100%);

    box-shadow:
        0 0 8px var(--color-primary-soft),
        0 0 18px var(--color-primary),
        0 0 35px var(--purple-glow);
    transform-origin: top;
    transform: scaleY(0);
    overflow: hidden;
}

.power-line-active::after {
    content: "";
    position: absolute;
    left: 0;
    top: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.9),
            transparent);
    animation: electricFlow 2s linear infinite;
}

@keyframes electricFlow {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* =====================
   STEP ITEMS
   ===================== */
.step-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}

/* FIX: Remove last step's bottom margin so line stops flush */
.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -80px;
    top: 0;
    width: 52px;
    height: 52px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    z-index: 10;
    /* FIX: Keep only one transition declaration */
    transition: all var(--duration-normal) var(--ease-premium);
}

.step-item.active .step-number {
    border-color: var(--color-primary-soft);
    box-shadow: 0 0 20px var(--purple-glow);
    background: var(--color-primary);
}

.step-info h3 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.step-info p {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    max-width: 450px;
}

/* =====================
   VISUAL / RIGHT PANEL
   ===================== */
.roadmap-visual {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-engine-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.visual-frame {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    z-index: 5;
}

.engine-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}

.glass-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 6;
}

.engine-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    z-index: 1;
}

.visual-meta-tag {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: tag-pulse 2s infinite;
}

@keyframes tag-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =====================
   RESPONSIVE — 1200px
   ===================== */
@media (max-width: 1200px) {
    .roadmap-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .roadmap-grid {
        gap: 50px;
    }

    .roadmap-visual {
        height: 500px;
    }

    .visual-engine-wrapper {
        max-width: 380px;
    }

    .step-info h3 {
        font-size: 22px;
    }
}

/* =====================
   RESPONSIVE — 1024px (tablet landscape / single col)
   ===================== */
@media (max-width: 1024px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Stack visual ABOVE steps on tablet */
    .roadmap-visual {
        order: -1;
        height: 420px;
    }

    .visual-engine-wrapper {
        max-width: 340px;
    }

    .visual-meta-tag {
        right: 10px;
        bottom: 20px;
    }

    .roadmap-steps {
        padding-left: 60px;
    }

    .step-number {
        left: -60px;
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .power-line-bg,
    .power-line-active {
        left: 21px;
    }

    .step-info h3 {
        font-size: 20px;
    }

    .step-info p {
        font-size: 15px;
    }
}

/* =====================
   RESPONSIVE — 768px (tablet portrait)
   ===================== */
@media (max-width: 768px) {
    .roadmap-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .roadmap-header {
        margin-bottom: 60px;
    }

    .roadmap-visual {
        height: 360px;
    }

    .visual-engine-wrapper {
        max-width: 280px;
    }

    .visual-frame {
        border-radius: 28px;
    }

    .step-item {
        margin-bottom: 44px;
    }

    .step-info h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .step-info p {
        font-size: 14px;
        max-width: 100%;
    }

    .roadmap-main-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }
}

/* =====================
   RESPONSIVE — 480px (mobile)
   ===================== */
@media (max-width: 480px) {
    .roadmap-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .roadmap-header {
        margin-bottom: 48px;
    }

    .roadmap-steps {
        padding-left: 44px;
    }

    .step-number {
        left: -44px;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .power-line-bg,
    .power-line-active {
        display: none;
    }

    .roadmap-visual {
        height: 300px;
    }

    .visual-engine-wrapper {
        max-width: 230px;
    }

    .visual-frame {
        border-radius: 22px;
    }

    .visual-meta-tag {
        right: 0;
        bottom: 10px;
        padding: 8px 14px;
        font-size: 10px;
    }

    .step-item {
        margin-bottom: 36px;
    }

    .step-info h3 {
        font-size: 16px;
    }

    .step-info p {
        font-size: 13px;
    }
}

.related-projects-section .heading-tag{
    justify-content: center;
}