/* ============================================================
   CASE STUDY SECTION SPACING SYSTEM
   ============================================================ */
:root {
    --case-study-section-gap: clamp(4rem, 6vw, 7rem);
    --cta-padding-top: 0;
    --cta-padding-bottom: var(--case-study-section-gap);
}

.case-study-page {
    --cta-padding-top: 0;
    --cta-padding-bottom: var(--case-study-section-gap);
}

.case-study-section-gap {
    width: 100%;
    height: var(--case-study-section-gap);
    flex-shrink: 0;
    background: #05010a;
}

/* ============================================================
   STRICT UNIFORM SECTION SPACING & MARGIN RESETS
   ============================================================ */
.project-hero-grid:last-child,
.project-showcase-section:last-child,
.project-mockup-reveal:last-child,
.challenge-grid:last-child,
.approach-solution-grid:last-child,
.partnership-grid:last-child,
.exp-wrapper:last-child,
.results-grid:last-child,
.final-project-mockup:last-child,
.testimonial-block:last-child,
.future-block:last-child,
.gallery-grid:last-child,
.project-grid:last-child {
    margin-bottom: 0 !important;
}

.partnership-body p:last-child,
.exp-paragraphs p:last-child,
.future-content p:last-child,
.chal-text-stack p:last-child,
.choice-item:last-child {
    margin-bottom: 0 !important;
}

/* ============================================================
   PROJECT HERO THEME
   ============================================================ */
.project-hero-section {
    background: #05010a;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: var(--hero-padding-top, clamp(3.5rem, 5vw, 5.5rem));
    padding-bottom: 0;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.project-hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 44, 155, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.project-hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: flex-start;
    margin-bottom: 0;
}

.project-hero-grid>div:last-child,
.project-specs-grid {
    margin-top: clamp(66px, 4.8vw, 74px);
}


.project-hero-desc {
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.68);
    max-width: 600px;
    margin: 0 0 20px;
}

/* Project Hero Tech Stack Badges */
.project-hero-tech-stack {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.tech-stack-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}

.tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    align-items: center;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-badge:hover {
    background: rgba(165, 148, 253, 0.08);
    border-color: rgba(165, 148, 253, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.tech-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--purple-light, #A594FD);
    box-shadow: 0 0 8px rgba(165, 148, 253, 0.7);
    flex-shrink: 0;
}

.tech-badge-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.project-main-title {
    color: #fff;
    margin: 12px 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-gradient-word {
    background: linear-gradient(90deg, #A594FD 0%, #D9CCFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 36px;
}

.proj-spec-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.spec-accent-bar {
    width: 2px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 44px;
    background: linear-gradient(to bottom, var(--purple-light), transparent);
    box-shadow: 0 0 15px var(--purple-main);
    transform-origin: top;
    transform: scaleY(0);
    /* Controlled by JS */
}

.spec-text span {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.spec-text strong {
    font-size: clamp(15px, 1.1vw, 18px);
    color: #fff;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .project-hero-section {
        height: auto;
        min-height: auto;
        padding-top: var(--hero-padding-top-tablet, clamp(5.5rem, 8.5vw, 7.5rem));
        padding-bottom: 2rem;
    }

    .project-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .project-hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-hero-desc {
        margin: 0 auto 20px;
        text-align: center;
    }

    .project-hero-tech-stack {
        align-items: center;
        text-align: center;
        margin: 18px auto 0;
        width: 100%;
    }

    .tech-stack-label {
        text-align: center;
        width: 100%;
    }

    .tech-stack-badges {
        justify-content: center;
        width: 100%;
    }

    .project-hero-grid>div:last-child,
    .project-specs-grid {
        margin-top: 0;
    }
}

/* ============================================================
   PRODUCT SHOWCASE SECTION (Separate section below 100vh Hero)
   ============================================================ */
.project-showcase-section {
    width: 100%;
    position: relative;
    background: #05010a;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 20;
    box-sizing: border-box;
}

.project-mockup-reveal {
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 20;
    margin-bottom: 0;
}

.project-detail-hero-showcase {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    aspect-ratio: 16 / 8.5;
    max-height: clamp(380px, 35vw, 540px);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Upscale branding & typography inside project detail hero showcase */
.project-detail-hero-showcase .nectar-left-branding {
    width: 48%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3vw, 44px);
    position: relative;
    z-index: 20;
}

.project-detail-hero-showcase .nectar-brand-logo {
    max-height: clamp(28px, 3.2vw, 48px);
    max-width: 210px;
    margin-bottom: 16px !important;
}

.project-detail-hero-showcase .nectar-brand-logo-text {
    font-size: clamp(18px, 2vw, 28px);
    gap: 10px;
}

.project-detail-hero-showcase .nectar-logo-icon {
    font-size: clamp(20px, 2.4vw, 32px);
}

.project-detail-hero-showcase .nectar-badge-pill {
    font-size: clamp(10px, 1.1vw, 13px);
    padding: 6px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
}

.project-detail-hero-showcase .nectar-headline {
    font-size: clamp(18px, 2.3vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.5px;
    max-width: 460px;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Reduce height, size & overlap of mobile mockup screens inside project detail hero showcase */
@media (min-width: 769px) {
    .project-detail-hero-showcase .nectar-3d-stage {
        transform: scale(0.76);
        transform-origin: 74% 36%;
    }

    .project-detail-hero-showcase .nectar-phone {
        width: 14.5%;
        aspect-ratio: 317.897 / 640;
    }
}

.browser-frame-container {
    background: #111;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    opacity: 0;
}

.browser-top-bar {
    height: 40px;
    background: #1a1a1a;
    display: flex;
    /* PERSISTENT */
    align-items: center;
    padding: 0 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-top-bar .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 3D MULTI-DEVICE MOBILE APP MOCKUP SHOWCASE --- */
.mobile-mockup-showcase-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 20px 20px;
    perspective: 1400px;
    position: relative;
    opacity: 0;
}

.mobile-stage-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 850px;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(138, 92, 246, 0.22) 0%, rgba(99, 102, 241, 0.1) 45%, transparent 75%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

.mobile-showcase-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 580px;
    transform-style: preserve-3d;
    z-index: 2;
    transition: transform 0.2s ease-out;
}

/* Individual Smartphone Chassis */
.mobile-device-mockup {
    position: absolute;
    width: 275px;
    height: 560px;
    border-radius: 46px;
    background: #08080c;
    padding: 10px;
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.9),
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15),
        inset 0 0 0 4px #161622;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}

/* Metallic Titanium Outer Bezel */
.phone-titanium-bezel {
    position: absolute;
    inset: -3px;
    border-radius: 49px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(165, 148, 253, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Dynamic Island Notch */
.phone-dynamic-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    gap: 6px;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.15);
}

.speaker-slit {
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: #12131e;
    margin-right: auto;
    margin-left: 10px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

.sensor-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0c0d16;
}

.camera-lens {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #111425;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Display Screen Boundary */
.phone-screen-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    background: #000;
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

/* Glass Glare Overlay - disabled to prevent dark glare on screen renders */
.phone-glass-glare {
    display: none !important;
}

/* Home Indicator Bar - disabled since app screenshots already include native gesture bar */
.phone-home-bar {
    display: none !important;
}

/* Positional Layout Variations (Pre-set in CSS to eliminate load flashes) */

/* Center Primary Phone */
.mobile-device-mockup.phone-center {
    z-index: 5;
    transform: translate3d(0, 0, 40px) scale(1);
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.95), 0 0 40px rgba(138, 92, 246, 0.28);
}

/* Left Secondary Phone */
.mobile-device-mockup.phone-left {
    z-index: 3;
    transform: translate3d(-240px, 20px, -60px) rotateY(18deg) rotateZ(-3deg) scale(0.88);
    filter: none;
}

/* Right Secondary Phone */
.mobile-device-mockup.phone-right {
    z-index: 3;
    transform: translate3d(240px, 20px, -60px) rotateY(-18deg) rotateZ(3deg) scale(0.88);
    filter: none;
}

/* Hover Interactions */
@media (min-width: 1025px) {
    .mobile-showcase-stage:hover .mobile-device-mockup {
        filter: none;
    }

    .mobile-showcase-stage:hover .mobile-device-mockup:hover {
        z-index: 10 !important;
        filter: none !important;
        box-shadow: 0 50px 110px rgba(0, 0, 0, 0.95), 0 0 55px rgba(165, 148, 253, 0.45);
    }

    .mobile-device-mockup.phone-left:hover {
        transform: translate3d(-210px, -10px, 60px) rotateY(0deg) rotateZ(0deg) scale(0.96) !important;
    }

    .mobile-device-mockup.phone-center:hover {
        transform: translate3d(0, -15px, 80px) scale(1.03) !important;
    }

    .mobile-device-mockup.phone-right:hover {
        transform: translate3d(210px, -10px, 60px) rotateY(0deg) rotateZ(0deg) scale(0.96) !important;
    }
}

/* RESPONSIVE ADAPTATIONS */
@media (max-width: 1024px) {
    .mobile-showcase-stage {
        min-height: 460px;
    }

    .mobile-device-mockup {
        width: 200px;
        height: 410px;
        border-radius: 34px;
        padding: 7px;
    }

    .phone-screen-container {
        border-radius: 28px;
    }

    .phone-titanium-bezel {
        border-radius: 37px;
    }

    .mobile-device-mockup.phone-center {
        transform: translate3d(0, 0, 25px) scale(1);
    }

    .mobile-device-mockup.phone-left {
        transform: translate3d(-160px, 12px, -20px) rotateY(10deg) scale(0.92);
        filter: none;
    }

    .mobile-device-mockup.phone-right {
        transform: translate3d(160px, 12px, -20px) rotateY(-10deg) scale(0.92);
        filter: none;
    }
}

@media (max-width: 768px) {
    .mobile-mockup-showcase-container {
        padding: 20px 6px;
    }

    .mobile-showcase-stage {
        min-height: 360px;
    }

    .mobile-device-mockup {
        width: 155px;
        height: 320px;
        border-radius: 26px;
        padding: 5px;
    }

    .phone-screen-container {
        border-radius: 21px;
    }

    .phone-titanium-bezel {
        border-radius: 29px;
    }

    .phone-dynamic-island {
        top: 9px;
        width: 58px;
        height: 15px;
        padding-right: 5px;
    }

    .speaker-slit {
        width: 18px;
        height: 2px;
        margin-left: 5px;
    }

    .sensor-dot {
        width: 4px;
        height: 4px;
    }

    .camera-lens {
        width: 6px;
        height: 6px;
    }

    .mobile-device-mockup.phone-center {
        transform: translate3d(0, 0, 20px) scale(1);
    }

    .mobile-device-mockup.phone-left {
        transform: translate3d(-120px, 8px, -15px) rotateY(8deg) scale(0.9);
        filter: none;
    }

    .mobile-device-mockup.phone-right {
        transform: translate3d(120px, 8px, -15px) rotateY(-8deg) scale(0.9);
        filter: none;
    }
}

@media (max-width: 480px) {
    .mobile-mockup-showcase-container {
        padding: 15px 4px;
        overflow: hidden;
    }

    .mobile-showcase-stage {
        min-height: 310px;
    }

    .mobile-device-mockup {
        width: 130px;
        height: 270px;
        border-radius: 22px;
        padding: 4px;
    }

    .phone-screen-container {
        border-radius: 18px;
    }

    .phone-titanium-bezel {
        border-radius: 25px;
    }

    .phone-dynamic-island {
        top: 7px;
        width: 48px;
        height: 13px;
        padding-right: 4px;
    }

    .speaker-slit {
        width: 14px;
        height: 2px;
        margin-left: 4px;
    }

    .mobile-device-mockup.phone-center {
        transform: translate3d(0, 0, 15px) scale(1);
    }

    .mobile-device-mockup.phone-left {
        transform: translate3d(-92px, 6px, -10px) rotateY(6deg) scale(0.88);
        filter: none;
    }

    .mobile-device-mockup.phone-right {
        transform: translate3d(92px, 6px, -10px) rotateY(-6deg) scale(0.88);
        filter: none;
    }
}

/* --- DASHBOARD UI FRAME --- */
.dashboard-frame-container {
    background: #0c0c12;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(165, 148, 253, 0.15);
    border-bottom: none;
    opacity: 0;
}

.dashboard-top-bar {
    height: 40px;
    background: #14141f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-title-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- IOT & CONNECTED SOLUTIONS FRAME --- */
.iot-frame-container {
    background: #07030d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.2);
    position: relative;
    opacity: 0;
}

.iot-top-bar {
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.iot-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #4ade80;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.iot-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}

/* --- UI/UX PRESENTATION CANVAS FRAME --- */
.ui-ux-frame-container {
    background: #0a0612;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
}

.ui-ux-top-bar {
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-ux-tag {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- STANDALONE TESTIMONIAL & FUTURE GROWTH SECTIONS --- */
.testimonial-section,
.future-growth-section {
    padding: 0;
    background: #05010a;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   APPROACH + SOLUTION COMBINED SECTION
   Left: both text blocks stacked | Right: single sticky image
   ============================================================ */
.approach-solution-section {
    padding: 0;
    background: #05010a;
    position: relative;
    overflow: visible;
}

.approach-solution-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: stretch;
}

/* LEFT column: stacks Approach then Solution */
.approach-solution-content {
    width: 100%;
}

.solution-block--has-gap {
    margin-top: clamp(48px, 7vh, 80px);
    padding-top: clamp(40px, 6vh, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* RIGHT column: strictly bounded by left text column height */
.approach-solution-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.approach-solution-visual .part-image-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.approach-solution-visual .part-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    display: block;
    border-radius: clamp(16px, 2.5vw, 28px);
    pointer-events: auto;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.approach-solution-visual .part-img:hover {
    transform: scale(1.04);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .approach-solution-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        align-items: flex-start;
    }

    .approach-solution-visual {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        order: -1;
        /* Image above text on tablet/mobile */
        height: auto;
        min-height: auto;
    }

    .approach-solution-visual .part-image-frame {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: 520px;
        aspect-ratio: auto;
        border-radius: 24px;
    }

    .approach-solution-visual .part-img {
        width: 100%;
        height: auto;
        max-height: 520px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .solution-block--has-gap {
        margin-top: clamp(32px, 5vh, 48px);
        padding-top: clamp(28px, 4vh, 40px);
    }
}

@media (max-width: 480px) {
    .approach-solution-visual .part-image-frame {
        border-radius: 20px;
        max-height: 380px;
    }

    .approach-solution-visual .part-img {
        max-height: 380px;
    }
}


/* ============================================================
   RESPONSIVE: STAYS IN 2 COLUMNS
   ============================================================ */
@media (max-width: 1024px) {
    .project-specs-grid {
        margin: 0 auto;
        max-width: 800px;
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns Stay */
        gap: 24px 36px;
    }

    .proj-spec-item {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ============================================================
   RESPONSIVE: SMALL MOBILE (460px and below)
   ============================================================ */
@media (max-width: 460px) {

    .project-hero-section {
        padding-top: var(--hero-padding-top-mobile, clamp(5rem, 8vw, 6.5rem));
    }

    .project-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 72px 64px;
        max-width: 100%;
    }

    .proj-spec-item {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0 !important;
        transform: none !important;
    }

    .project-mockup-reveal {
        margin-bottom: 0;
        margin-top: 30px;
    }
}

/* ============================================================
   CHALLENGE SECTION
   ============================================================ */
.challenge-section {
    padding: 0;
    background: #05010a;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.challenge-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    /* Asymmetrical split */
    gap: clamp(40px, 6vw, 100px);
    align-items: flex-start;
    width: 100%;
}

/* --- LEFT SIDE: TITLE --- */
.challenge-left-title {
    position: static;
    /* Both columns start from the same vertical point */
}

.challenge-display-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-top: 20px;
    color: #fff;
}

/* --- RIGHT SIDE: CONTENT --- */
.challenge-right-body {
    width: 100%;
}

.chal-text-stack {
    width: 100%;
}

.chal-text-stack p {
    font-size: clamp(17px, 1.3vw, 21px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: clamp(25px, 4vh, 40px);
    max-width: 100%;
}

.chal-text-stack p:last-child {
    margin-bottom: 0;
}

.chal-text-stack strong {
    color: #fff;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* TABLET (Under 1024px) */
@media (max-width: 1024px) {
    .challenge-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 50px;
    }

    .challenge-left-title {
        position: static;
        /* Disable sticky */
        text-align: left;
    }

    .challenge-display-title {
        margin-top: 15px;
    }

    .chal-text-stack p {
        max-width: 100%;
        /* Use full width on tablet/mobile */
    }
}

/* MOBILE (Under 768px) */
@media (max-width: 768px) {
    .challenge-section {
        padding: 0;
    }

    .challenge-display-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .chal-text-stack p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* SMALL MOBILE (Under 480px) */
@media (max-width: 480px) {
    .challenge-section {
        padding: 0;
    }

    .challenge-display-title {
        letter-spacing: -0.02em;
    }
}

/* ============================================================
   PARTNERSHIP SECTION - FIXED IMAGE ALIGNMENT
   ============================================================ */
.partnership-section {
    padding: 0;
    background: #05010a;
    position: relative;
    overflow: hidden;
}

.partnership-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
}

/* --- TEXT CONTENT --- */
.partnership-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: clamp(20px, 3.5vh, 32px);
    letter-spacing: -0.04em;
    color: #fff;
}

.partnership-body p {
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
}

.partnership-body strong {
    color: #fff;
    font-weight: 600;
}

/* --- QUOTE BLOCK --- */
.client-quote-box {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: clamp(25px, 4vw, 45px);
    margin: clamp(40px, 6vh, 60px) 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.quote-accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--purple-light);
    box-shadow: 0 0 15px var(--purple-main);
    transform-origin: top;
}

.quote-text {
    font-family: serif;
    font-style: italic;
    font-size: clamp(18px, 1.5vw, 22px) !important;
    color: #fff !important;
    line-height: 1.5 !important;
    opacity: 0.9;
    margin-bottom: 15px;
}

.quote-author {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
}

/* --- VISUAL SIDE (Fixed Clipping) --- */
.part-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    border-radius: clamp(20px, 4vw, 40px);
    overflow: hidden;
    clip-path: inset(0 0 100% 0);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.part-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Looks more premium than contain */
    object-position: center 20%;
    /* Focuses on the top-middle area */
    filter: saturate(0.8) brightness(0.9);
    transition: transform 0.8s ease;
    display: block;
}

.part-image-frame:hover .part-img {
    transform: scale(1.05);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1024px) {
    .partnership-section {
        padding: 0;
    }

    .partnership-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .partnership-visual {
        order: 2;
        /* Moves image below content */
        max-width: 480px;
        /* Refined size to not look bulky */
        margin: 50px auto 0;
        /* Adds space above the image */
        width: 100%;
    }

    .part-image-frame {
        aspect-ratio: 1 / 1;
        /* Square looks cleaner when placed after text */
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .partnership-section {
        padding: 0;
    }

    .client-quote-box {
        padding: 30px 20px;
    }

    .quote-text {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .partnership-section {
        padding: 0;
    }

    .part-image-frame {
        aspect-ratio: 1 / 1;
        /* Square on mobile for best visibility */
        border-radius: 20px;
    }
}

/* ============================================================
   EXPERIENCE SECTION - PREMIUM STICKY RESPONSIVE
   ============================================================ */
.experience-section {
    padding: 0;
    background: #05010a;
    position: relative;
    overflow: visible;
    /* Allows sticky child to work */
}

.exp-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: flex-start;
}

/* Solution section: full width when image is shared with Approach above */
.exp-wrapper--no-image {
    grid-template-columns: 1fr;
    max-width: 820px;
}

/* --- CONTENT SIDE --- */
.exp-content {
    width: 100%;
}

.exp-main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: clamp(20px, 3.5vh, 32px);
    letter-spacing: -0.04em;
    color: #fff;
}

.exp-paragraphs p {
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.exp-paragraphs strong {
    color: #fff;
    font-weight: 600;
}

/* --- NEON GLASS QUOTE CARD --- */
.exp-quote-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: clamp(25px, 4vw, 45px);
    margin: clamp(40px, 6vh, 60px) 0;
    backdrop-filter: blur(10px);
}

.quote-glow-bar {
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--purple-light);
    box-shadow: 0 0 20px var(--purple-main);
    border-radius: 0 10px 10px 0;
}

.quote-body {
    font-family: serif;
    font-style: italic;
    font-size: clamp(18px, 1.6vw, 24px) !important;
    color: #fff !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    opacity: 0.9;
}

/* --- VISUAL SIDE (Sticky Logic) --- */
.exp-visual-side {
    position: sticky;
    top: 120px;
    /* Pins image when scrolling text on desktop */
    width: 100%;
}

.ui-node {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    /* Allows container to follow image height */
    background: #111;
    border-radius: clamp(20px, 4vw, 40px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.ui-node img {
    width: 100%;
    height: auto !important;
    /* Auto height ensure karega ki pura product dikhe */
    display: block;
    object-fit: contain;
    /* Contain se image kabhi nahi kategi */
    filter: saturate(0.8) brightness(0.9);
}

.node-tag {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* TABLETS (Under 1024px) */
@media (max-width: 1024px) {
    .exp-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .exp-visual-side {
        position: static;
        /* Disable sticky on mobile */
        order: 2;
        /* Move image below text */
        max-width: 500px;
        margin: 0 auto;
    }

    .ui-node {
        aspect-ratio: auto !important;
        /* Fixed height hatayi */
        max-width: 500px;
        margin: 0 auto;
    }
}

/* MOBILE (Under 768px) */
@media (max-width: 768px) {
    .experience-section {
        padding: 0;
    }

    .exp-main-title {
        margin-bottom: 30px;
    }

    .exp-quote-card {
        padding: 30px 20px;
    }
}

/* SMALL MOBILE (Under 480px) */
@media (max-width: 480px) {
    .ui-node {
        aspect-ratio: auto !important;
        /* Fixed height hatayi */
        border-radius: 20px;
    }
}

/* ============================================================
   RESULTS SECTION - PREMIUM RESPONSIVE
   ============================================================ */
.results-section {
    padding: 0;
    background: #05010a;
    position: relative;
    overflow: visible;
}

.results-header {
    max-width: 800px;
    margin-bottom: clamp(30px, 4vh, 45px);
}

.results-main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin: 15px 0 25px;
    letter-spacing: -0.04em;
}

.results-intro {
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.results-intro strong {
    color: #fff;
    font-weight: 600;
}

/* --- RESULTS GRID --- */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
    margin-bottom: clamp(35px, 5vh, 50px);
}

.result-card {
    display: flex;
    gap: clamp(15px, 2vw, 25px);
    align-items: flex-start;
    padding: clamp(20px, 3vw, 35px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.result-card:hover {
    border-color: rgba(165, 148, 253, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.node-icon {
    width: 32px;
    height: 32px;
    background: var(--purple-main);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 0 15px var(--purple-main);
    flex-shrink: 0;
}

.node-text strong {
    display: block;
    font-size: clamp(17px, 1.3vw, 20px);
    color: #fff;
    margin-bottom: 8px;
}

.node-text p {
    font-size: clamp(14px, 1vw, 15px);
    color: #888;
    line-height: 1.6;
}

/* --- FINAL MOCKUP (Permanent Browser UI) --- */
.final-project-mockup {
    width: 100%;
    margin-top: 40px;
    position: relative;
    z-index: 20;
    margin-bottom: 0;
}

.final-project-mockup .browser-frame-container {
    background: #111;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.browser-top-bar {
    height: 38px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-top-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    /* Static image - no parallax scroll */
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* TABLETS (Under 1024px) */
@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: 1fr;
        /* Switch to 1 Column */
        gap: 25px;
    }

    .final-project-mockup {
        margin-bottom: 0;
    }
}

/* MOBILE (Under 768px) */
@media (max-width: 768px) {
    .results-section {
        padding: 0;
    }

    .results-header {
        text-align: center;
    }

    .result-card {
        padding: 20px;
    }

    .final-project-mockup {
        margin-bottom: 0;
    }
}

/* SMALL MOBILE (Under 480px) */
@media (max-width: 480px) {
    .results-main-title {
        font-size: 2.5rem;
    }

    .browser-top-bar {
        height: 28px;
    }
}

/* ============================================================
   FUTURE & ADVOCACY - PREMIUM RESPONSIVE
   ============================================================ */
.future-advocacy-section {
    padding: 0;
    background: #05010a;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(20px, 3.5vh, 32px);
    color: #fff;
    letter-spacing: -0.04em;
}

/* --- ROADMAP BLOCK --- */
.future-block {
    margin-bottom: clamp(40px, 5vh, 60px);
}

.future-block .heading-tag {
    justify-content: flex-start;
}

.future-block .section-title,
.choice-block .section-title {
    text-align: left;
}

.future-content p {
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    max-width: 100%;
}

.future-content strong {
    color: #fff;
    font-weight: 600;
}

/* --- CHOICE LIST --- */
.choice-block {
    margin-bottom: clamp(40px, 5vh, 60px);
}

.choice-list {
    list-style: none;
    max-width: 900px;
}

.choice-item {
    display: flex;
    gap: clamp(15px, 2.5vw, 25px);
    align-items: flex-start;
    margin-bottom: clamp(20px, 4vh, 35px);
}

.check-node {
    width: 24px;
    height: 24px;
    background: var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 0 15px var(--purple-main);
    flex-shrink: 0;
    margin-top: 4px;
}

.choice-item p {
    font-size: clamp(15px, 1.1vw, 18px);
    color: #888;
    line-height: 1.6;
}

.choice-item strong {
    color: #fff;
    font-weight: 700;
}

/* --- TESTIMONIAL CARD --- */
.testimonial-block {
    margin-top: clamp(30px, 4vh, 50px);
}

.testimonial-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: clamp(30px, 6vw, 70px);
    border-radius: 4px;
    /* Iconic sharp studio look */
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.quote-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--purple-light);
    box-shadow: 0 0 20px var(--purple-main);
}

.main-quote {
    font-family: serif;
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.4;
    color: #fff;
    margin-bottom: 25px;
    opacity: 0.95;
}

.quote-author {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 800;
    display: block;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* TABLETS & MOBILE (Under 1024px) */
@media (max-width: 1024px) {

    .project-hero-info,
    .challenge-left-title,
    .challenge-right-body,
    .partnership-content,
    .exp-content,
    .exp-wrapper--no-image,
    .results-header,
    .future-block,
    .gallery-header,
    .related-projects-header,
    .related-projects-section {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .project-hero-info .heading-tag,
    .challenge-left-title .heading-tag,
    .partnership-content .heading-tag,
    .exp-content .heading-tag,
    .results-header .heading-tag,
    .future-block .heading-tag,
    .project-gallery-section .heading-tag,
    .related-projects-section .heading-tag,
    .case-study-page .heading-tag {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .project-main-title,
    .challenge-display-title,
    .partnership-title,
    .exp-main-title,
    .results-main-title,
    .future-block .section-title,
    .gallery-header .section-title,
    .related-projects-section .section-title,
    .case-study-page .section-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .project-hero-desc,
    .chal-text-stack p,
    .partnership-body p,
    .exp-paragraphs p,
    .results-intro,
    .future-content p,
    .choice-list,
    .related-projects-section .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }

    .related-projects-section .card-bottom,
    .related-projects-section .card-bottom h3,
    .related-projects-section .card-bottom p {
        text-align: left !important;
    }

    .related-projects-section .card-bottom>div:first-child,
    .related-projects-section .card-category-row {
        justify-content: space-between !important;
        text-align: left !important;
    }
}

/* MOBILE (Under 768px) */
@media (max-width: 768px) {
    .project-specs-grid {
        gap: 24px 20px;
    }

    .future-advocacy-section {
        padding: 0;
    }

    .testimonial-card {
        padding: 32px 22px;
    }

    .main-quote {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .quote-author {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

/* SMALL MOBILE (Under 480px) */
@media (max-width: 480px) {
    .project-specs-grid {
        gap: 20px 16px;
    }

    .future-advocacy-section {
        padding: 0;
    }

    .choice-item {
        gap: 12px;
    }

    .check-node {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .testimonial-card {
        padding: 24px 18px;
    }

    .main-quote {
        font-size: 14.5px;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    .quote-author {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .quote-bar {
        width: 3px;
    }
}

.project-gallery-section,
.related-projects-section {
    padding: 0;
    background: #05010a;
    position: relative;
}

/* ============================================================
   RESULTS SHOWCASE VISUAL (WEBSITE & APP STYLES)
   ============================================================ */
.results-visual-wrapper {
    margin-top: clamp(40px, 6vw, 64px);
    width: 100%;
}

/* App Style: Studio Glass Canvas Window Layout */
.results-app-canvas {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(165, 148, 253, 0.09) 0%, rgba(14, 11, 24, 0.9) 45%, rgba(6, 4, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 22px 26px 36px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.app-canvas-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.app-canvas-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 14px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-light, #a594fd);
    box-shadow: 0 0 8px #a594fd;
}

.app-demo-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-demo-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.app-demo-nav-btn:hover {
    background: var(--purple-light, #a594fd);
    color: #000;
    border-color: var(--purple-light, #a594fd);
}

/* --- HERO-MATCHED EDITORIAL SHOWCASE CONTAINER --- */
.results-editorial-showcase {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.editorial-ambient-glow {
    display: none;
}

/* Header Bar (Badge) */
.editorial-top-bar {
    display: none;
}

/* Landscape Viewport (Matches Project Detail Hero Showcase Dimensions) */
.editorial-viewport {
    position: relative;
    width: 100%;
    max-width: 1320px;
    aspect-ratio: 16 / 8.8;
    min-height: 500px;
    max-height: 580px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(ellipse at 50% 20%, rgba(22, 19, 44, 0.96) 0%, rgba(9, 8, 16, 0.99) 85%);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Multi-Card 2D Canvas */
.editorial-card-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Common Photographic Card Frame with Solid White Border */
.canvas-card {
    position: absolute;
    border-radius: 22px;
    border: 2.5px solid #ffffff;
    overflow: hidden;
    background: #1a1917;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.canvas-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.canvas-card-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* EXACT INITIAL POSITIONS (Time 0.0s) */

/* 1. Focal Card (Center Mobile Phone Anchor) */
.canvas-card-focal {
    left: 40.25%;
    top: 5%;
    width: 19.5%;
    height: 90%;
    border-radius: 22px;
    border: 2.5px solid #ffffff;
    box-shadow:
        0 35px 95px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.focal-border-bezel {
    position: absolute;
    inset: 0;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.canvas-card-focal .focal-border-bezel {
    opacity: 1;
}

/* Dynamic Island Camera Notch on All Phone Cards */
.card-phone-island {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 11px;
    background: #000000;
    border-radius: 10px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.6),
        inset 0 0 1px rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.focal-island-lens {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a3147 0%, #0d0f18 70%);
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Home Indicator Bar at Bottom on All Phone Cards */
.card-phone-home-bar {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    z-index: 15;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* 2. Left Top Card */
.canvas-card-lt {
    left: 16.5%;
    top: -48%;
    width: 19.5%;
    height: 90%;
    border-radius: 22px;
    z-index: 2;
}

/* 3. Left Bottom Card */
.canvas-card-lb {
    left: 16.5%;
    top: 48%;
    width: 19.5%;
    height: 90%;
    border-radius: 22px;
    z-index: 2;
}

/* 4. Right Top Card */
.canvas-card-rt {
    left: 64%;
    top: -48%;
    width: 19.5%;
    height: 90%;
    border-radius: 22px;
    z-index: 2;
}

/* 5. Right Bottom Card */
.canvas-card-rb {
    left: 64%;
    top: 48%;
    width: 19.5%;
    height: 90%;
    border-radius: 22px;
    z-index: 2;
}

/* Responsive adjustments for Tablet and Mobile (Generous Showcase Container with Compact Screens) */
@media (max-width: 1024px) {
    .editorial-viewport {
        aspect-ratio: 16 / 10.5;
        min-height: 480px;
        max-height: 560px;
        border-radius: 20px;
    }

    .canvas-card {
        border-radius: 14px;
        border-width: 2px;
    }

    .canvas-card-focal {
        left: 38%;
        top: 6%;
        width: 24%;
        height: 88%;
        border-radius: 14px;
        border-width: 2px;
    }

    .canvas-card-lt {
        left: 9.5%;
        top: -46%;
        width: 24%;
        height: 88%;
        border-radius: 14px;
    }

    .canvas-card-lb {
        left: 9.5%;
        top: 50%;
        width: 24%;
        height: 88%;
        border-radius: 14px;
    }

    .canvas-card-rt {
        left: 66.5%;
        top: -46%;
        width: 24%;
        height: 88%;
        border-radius: 14px;
    }

    .canvas-card-rb {
        left: 66.5%;
        top: 50%;
        width: 24%;
        height: 88%;
        border-radius: 14px;
    }

    .focal-border-bezel {
        border-radius: 11px;
    }

    .card-phone-island {
        top: 6px;
        width: 32px;
        height: 8.5px;
        border-radius: 6px;
        padding-right: 4px;
    }

    .focal-island-lens {
        width: 2.5px;
        height: 2.5px;
    }

    .card-phone-home-bar {
        bottom: 5px;
        width: 34px;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .editorial-viewport {
        aspect-ratio: 16 / 11.5;
        min-height: 420px;
        max-height: 500px;
        border-radius: 18px;
    }

    .canvas-card {
        border-radius: 12px;
        border-width: 1.5px;
    }

    .canvas-card-focal {
        left: 37%;
        top: 8%;
        width: 26%;
        height: 84%;
        border-radius: 12px;
        border-width: 1.5px;
    }

    .canvas-card-lt {
        left: 7%;
        top: -42%;
        width: 26%;
        height: 84%;
        border-radius: 12px;
    }

    .canvas-card-lb {
        left: 7%;
        top: 54%;
        width: 26%;
        height: 84%;
        border-radius: 12px;
    }

    .canvas-card-rt {
        left: 67%;
        top: -42%;
        width: 26%;
        height: 84%;
        border-radius: 12px;
    }

    .canvas-card-rb {
        left: 67%;
        top: 54%;
        width: 26%;
        height: 84%;
        border-radius: 12px;
    }

    .focal-border-bezel {
        border-radius: 9px;
    }

    .card-phone-island {
        top: 5px;
        width: 26px;
        height: 7px;
        border-radius: 5px;
        padding-right: 3px;
    }

    .focal-island-lens {
        width: 2px;
        height: 2px;
    }

    .card-phone-home-bar {
        bottom: 4px;
        width: 28px;
        height: 1.5px;
    }
}

@media (max-width: 480px) {
    .editorial-viewport {
        aspect-ratio: 16 / 13;
        min-height: 340px;
        max-height: 420px;
        border-radius: 14px;
    }

    .canvas-card {
        border-radius: 10px;
        border-width: 1.5px;
    }

    .canvas-card-focal {
        left: 37.5%;
        top: 22%;
        width: 25%;
        height: 56%;
        border-radius: 10px;
        border-width: 1.5px;
    }

    .canvas-card-lt {
        left: 7.5%;
        top: -32%;
        width: 25%;
        height: 56%;
        border-radius: 10px;
    }

    .canvas-card-lb {
        left: 7.5%;
        top: 60%;
        width: 25%;
        height: 56%;
        border-radius: 10px;
    }

    .canvas-card-rt {
        left: 67.5%;
        top: -32%;
        width: 25%;
        height: 56%;
        border-radius: 10px;
    }

    .canvas-card-rb {
        left: 67.5%;
        top: 60%;
        width: 25%;
        height: 56%;
        border-radius: 10px;
    }

    .focal-border-bezel {
        border-radius: 7px;
    }

    .card-phone-island {
        top: 4px;
        width: 20px;
        height: 5.5px;
        border-radius: 4px;
        padding-right: 2px;
    }

    .focal-island-lens {
        width: 1.5px;
        height: 1.5px;
    }

    .card-phone-home-bar {
        bottom: 3.5px;
        width: 20px;
        height: 1px;
    }
}

@media (max-width: 650px) {
    .app-flagship-stage {
        flex-direction: column;
        gap: 35px;
        min-height: auto;
    }

    .flagship-device-mockup.device-center,
    .flagship-device-mockup.device-left,
    .flagship-device-mockup.device-right,
    .flagship-device-mockup.device-floating-4th {
        width: 240px;
        height: 480px;
        margin: 0;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}

/* Website / Dashboard Style: Desktop Browser Window Frame */
.results-browser-frame-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.results-browser-frame-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.95), 0 0 40px rgba(138, 92, 246, 0.2);
}

.results-browser-frame-container .browser-top-bar {
    padding: 12px 20px;
    background: #18171f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.results-browser-frame-container .browser-inner {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9.5;
    max-height: 520px;
    min-height: 260px;
    background: #0d0c13;
}

.results-browser-frame-container .browser-inner .mockup-img,
.results-browser-frame-container .browser-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.results-frame-title-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-left: auto;
}

@media (max-width: 1024px) {
    .results-app-canvas {
        padding: 18px 20px 30px;
    }

    .results-app-stage {
        gap: 20px;
    }

    .results-device-mockup {
        width: 210px;
        height: 430px;
        border-radius: 34px;
        padding: 7px;
    }

    .results-device-mockup.phone-left {
        transform: translateY(10px);
    }

    .results-device-mockup.phone-right {
        transform: translateY(-10px);
    }

    .results-device-mockup .phone-screen-container {
        border-radius: 28px;
    }

    .results-device-mockup .phone-titanium-bezel {
        border-radius: 37px;
    }
}

@media (max-width: 768px) {
    .results-app-canvas {
        padding: 14px 14px 20px;
        border-radius: 18px;
    }

    .app-canvas-top-bar {
        padding-bottom: 12px;
    }

    .results-app-stage {
        gap: 12px;
    }

    .results-device-mockup {
        width: 155px;
        height: 320px;
        border-radius: 26px;
        padding: 5px;
    }

    .results-device-mockup.phone-left {
        transform: translateY(6px);
    }

    .results-device-mockup.phone-right {
        transform: translateY(-6px);
    }

    .results-device-mockup .phone-screen-container {
        border-radius: 21px;
    }

    .results-device-mockup .phone-titanium-bezel {
        border-radius: 29px;
    }

    .results-device-mockup .phone-dynamic-island {
        top: 9px;
        width: 54px;
        height: 14px;
        padding-right: 4px;
    }
}

@media (max-width: 480px) {
    .results-app-canvas {
        padding: 12px 10px 16px;
        border-radius: 14px;
    }

    .results-app-stage {
        gap: 8px;
    }

    .results-device-mockup {
        width: 135px;
        height: 280px;
        border-radius: 22px;
        padding: 4px;
    }

    .results-device-mockup.phone-left {
        transform: translateY(4px);
    }

    .results-device-mockup.phone-right {
        transform: translateY(-4px);
    }

    .results-device-mockup .phone-screen-container {
        border-radius: 18px;
    }

    .results-device-mockup .phone-titanium-bezel {
        border-radius: 25px;
    }
}

/* ============================================================
   PROJECT DETAIL PAGE — HERO APP SHOWCASE BANNER
   Scoped exclusively to .project-detail-hero-showcase
   Leaves portfolio cards (.figma-nectar-tpl) untouched!
   ============================================================ */
.project-detail-hero-showcase {
    width: 100%;
    max-width: 1140px;
    margin: 35px auto 0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.project-detail-hero-showcase .figma-nectar-tpl {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1720 / 860;
    border-radius: 24px;
}

.project-detail-hero-showcase .nectar-left-branding {
    width: 48%;
    padding: clamp(28px, 4vw, 56px);
}

.project-detail-hero-showcase .nectar-headline {
    font-size: clamp(20px, 2.2vw, 34px);
    line-height: 1.22;
    max-width: 430px;
    letter-spacing: -0.5px;
    word-break: normal;
}

.project-detail-hero-showcase .nectar-3d-stage {
    transform: scale(0.92);
    transform-origin: 75% 42%;
}

.project-detail-hero-showcase .nectar-phone {
    width: 15.5%;
    border-radius: 18px;
    padding: 4px;
}

/* Scoped Phone Placements for Project Detail Hero Banner — Clean Even Spacing */
.project-detail-hero-showcase .phone-pattern9 {
    left: 14.5%;
    top: 15.5%;
    z-index: 6;
}

.project-detail-hero-showcase .phone-pattern3 {
    left: 41.5%;
    top: 12.5%;
    z-index: 10;
}

.project-detail-hero-showcase .phone-pattern10 {
    left: 68.5%;
    top: 21.5%;
    z-index: 6;
}

.project-detail-hero-showcase .phone-pattern8 {
    left: 95.5%;
    top: 37.5%;
    z-index: 4;
}

.project-detail-hero-showcase .phone-pattern1 {
    left: 37.5%;
    top: 78.5%;
    z-index: 8;
}

.project-detail-hero-showcase .phone-pattern4 {
    left: 63.5%;
    top: 76.5%;
    z-index: 7;
}

.project-detail-hero-showcase .phone-pattern5 {
    left: 89.5%;
    top: 83.5%;
    z-index: 5;
}

.project-detail-hero-showcase .phone-pattern6 {
    left: 48.5%;
    top: -36.5%;
    z-index: 4;
}

.project-detail-hero-showcase .phone-pattern7 {
    left: 77.5%;
    top: -21.5%;
    z-index: 3;
}

/* Responsive media queries for project detail hero showcase */
@media (max-width: 768px) {
    .project-detail-hero-showcase .nectar-left-branding {
        width: 44%;
        padding: 20px 16px;
    }

    .project-detail-hero-showcase .nectar-headline {
        font-size: clamp(15px, 3vw, 22px);
        max-width: 300px;
    }

    .project-detail-hero-showcase .nectar-3d-stage {
        width: 100%;
        inset: 0;
        transform: scale(0.82);
        transform-origin: 75% 40%;
    }
}

@media (max-width: 480px) {
    .project-detail-hero-showcase .nectar-left-branding {
        width: 46%;
        padding: 14px 12px;
    }

    .project-detail-hero-showcase .nectar-headline {
        font-size: clamp(12px, 3.2vw, 17px);
        max-width: 220px;
    }

    .project-detail-hero-showcase .nectar-3d-stage {
        width: 100%;
        inset: 0;
        transform: scale(0.68);
        transform-origin: 78% 40%;
    }
}

/* ============================================================
   PROJECT DETAIL PAGE — HERO WEB/BROWSER MOCKUP SHOWCASE BANNER
   Sized identically to app hero image showcase (max-width: 1140px, centered)
   ============================================================ */
.project-mockup-reveal .browser-frame-container,
.project-mockup-reveal .dashboard-frame-container,
.project-mockup-reveal .iot-frame-container,
.project-mockup-reveal .ui-ux-frame-container {
    width: 100%;
    max-width: 1140px;
    margin: 35px auto 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65);
}

.project-mockup-reveal .browser-frame-container .browser-inner,
.project-mockup-reveal .dashboard-frame-container .browser-inner,
.project-mockup-reveal .iot-frame-container .browser-inner,
.project-mockup-reveal .ui-ux-frame-container .browser-inner {
    width: 100%;
    overflow: hidden;
}

.project-mockup-reveal .browser-frame-container .mockup-img,
.project-mockup-reveal .dashboard-frame-container .mockup-img,
.project-mockup-reveal .iot-frame-container .mockup-img,
.project-mockup-reveal .ui-ux-frame-container .mockup-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
}