/* ==========================================
   PORTFOLIO EDITORIAL - DISEÑO FUERTE
   Tipografía atrevida, layouts únicos, sobrio
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --white: #fafafa;
    --gray: #a0a0a0;
    --gray-bg: #e8e8e8;
    --accent: #ec4899;
    --border: #e0e0e0;
    
    --font-display: 'Syne', sans-serif;
    --font-kart: 'FlegreiLocal', 'flegrei', 'Flegrei', var(--font-display);
    --font-body: 'Inter', sans-serif;
    --font-header: 'Manrope', sans-serif;
    --font-mono: 'SFMono-Regular', 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'FlegreiLocal';
    src: local('Flegrei Regular'), local('Flegrei'), local('flegrei');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto;
}

/* Smooth scroll reveal animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
.splash-mockup-project {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .title-line-kart-image,
    .kart-build-grid,
    .kart-build-guide,
    .kart-build-label,
    .kart-build-scan,
    .kart-build-sheen,
    .title-line-signature {
        animation: none !important;
        transition: none !important;
    }

    .title-line-kart-image,
    .title-line-signature {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .kart-build-grid,
    .kart-build-guide,
    .kart-build-label,
    .kart-build-scan,
    .kart-build-sheen {
        opacity: 0;
    }
}

/* Splash Animation Hero - Ayogis Animated */
.splash-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 120px 60px 60px;
}

.splash-container {
    max-width: 1600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-mockup {
    position: relative;
    width: 350px;
    height: 700px;
    background: var(--black);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-screen {
    width: 100%;
    height: 100%;
    background: rgb(147, 144, 140);
    border-radius: 37px;
    position: relative;
    overflow: hidden;
}

.particles-canvas,
.leaves-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaves-back {
    z-index: 1;
}

.leaves-front {
    z-index: 3;
}

.splash-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.splash-slogan {
    font-size: 18px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.81);
    margin: 0;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 30px;
    font-family: 'Montserrat', var(--font-body);
}

.logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-animated {
    width: 100%;
    height: 90%;
    object-fit: contain;
    object-position: center bottom;
    animation: breathe 16s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: translateX(0) scale(1, 1);
    }
    25% {
        transform: translateX(2px) scale(1, 1.01);
    }
    50% {
        transform: translateX(0) scale(1, 1);
    }
    75% {
        transform: translateX(-2px) scale(1, 0.99);
    }
}

/* Header minimalista */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 0;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-location {
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-status {
    font-family: var(--font-header);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(10, 10, 10, 0.42);
    padding: 7px 14px;
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 100px;
}

.header-nav {
    display: flex;
    gap: 36px;
}

.header-nav a {
    font-family: var(--font-header);
    color: var(--black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile menu */
.mobile-menu {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 40px 30px;
    flex-direction: column;
    gap: 32px;
    z-index: 1000;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-link {
    font-size: 25px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-header);
    letter-spacing: 0.01em;
    transition: color 0.3s var(--ease);
}

.header .back-link {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.mobile-menu-link:hover {
    color: var(--accent);
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Hero editorial */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.hero-intro {
    margin-bottom: 54px;
}

.hero-label {
    font-size: 17px;
    letter-spacing: -0.03em;
    text-transform: none;
    color: rgba(10, 10, 10, 0.94);
    font-weight: 500;
}

.hero-title {
    position: relative;
    font-family: var(--font-display);
    line-height: 1;
    display: block;
    width: fit-content;
}

.hero-nameplate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-right: 0;
    margin-bottom: 28px;
}

.hero-title--editorial::before {
    content: none;
}

.hero-title--editorial::after {
    content: none;
}

.hero-title--editorial {
    width: 100%;
    padding-bottom: clamp(24px, 3vw, 42px);
    isolation: isolate;
}

.title-line {
    display: block;
    width: fit-content;
    overflow: visible;
}

.title-line-kart-solid {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-right: 0;
    overflow: hidden;
    isolation: isolate;
}

.title-line-kart-picture {
    display: block;
    width: 100%;
}

.title-line-kart-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    transform-origin: center center;
    animation: kart-image-build 1.82s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.kart-build-grid,
.kart-build-guides,
.kart-build-scan,
.kart-build-sheen,
.kart-build-label {
    pointer-events: none;
}

.kart-build-grid {
    position: absolute;
    inset: 2% 0 3%;
    z-index: 1;
    background:
        repeating-linear-gradient(
            to right,
            rgba(10, 10, 10, 0.085) 0,
            rgba(10, 10, 10, 0.085) 1px,
            transparent 1px,
            transparent 64px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.055) 0,
            rgba(10, 10, 10, 0.055) 1px,
            transparent 1px,
            transparent 42px
        ),
        linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0.34));
    mix-blend-mode: multiply;
    opacity: 0;
    animation: kart-grid-build 1.48s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.kart-build-guides {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.kart-build-guide {
    position: absolute;
    background: rgba(10, 10, 10, 0.28);
    opacity: 0;
}

.kart-build-guide--top,
.kart-build-guide--mid,
.kart-build-guide--base {
    left: 0;
    width: 100%;
    height: 1px;
    transform-origin: left center;
    animation: kart-guide-horizontal 1.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kart-build-guide--top {
    top: 13%;
    animation-delay: 0.08s;
}

.kart-build-guide--mid {
    top: 46%;
    animation-delay: 0.2s;
}

.kart-build-guide--base {
    top: 78%;
    animation-delay: 0.32s;
}

.kart-build-guide--left,
.kart-build-guide--right {
    top: 0;
    width: 1px;
    height: 100%;
    transform-origin: center top;
    animation: kart-guide-vertical 1.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kart-build-guide--left {
    left: 27%;
    animation-delay: 0.14s;
}

.kart-build-guide--right {
    left: 67%;
    animation-delay: 0.26s;
}

.kart-build-label {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    min-width: 116px;
    padding: 10px 12px;
    border: 1px solid rgba(10, 10, 10, 0.16);
    background: rgba(250, 250, 250, 0.9);
    box-shadow: 0 14px 30px rgba(10, 10, 10, 0.08);
    color: rgba(10, 10, 10, 0.74);
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    backdrop-filter: blur(10px);
    animation:
        kart-label-enter 0.74s cubic-bezier(0.16, 1, 0.3, 1) var(--label-enter-delay) both,
        kart-label-exit 0.52s cubic-bezier(0.4, 0, 0.2, 1) var(--label-exit-delay) forwards;
}

.kart-build-label-key {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.42);
}

.kart-build-label-value {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: rgba(10, 10, 10, 0.8);
}

.kart-build-label--product {
    top: 8%;
    left: 7.4%;
    --label-enter-delay: 0.38s;
    --label-exit-delay: 3.38s;
}

.kart-build-label--ux {
    top: 58%;
    left: 11.5%;
    --label-enter-delay: 0.68s;
    --label-exit-delay: 3.48s;
}

.kart-build-label--mobile {
    top: 14%;
    left: 31.4%;
    --label-enter-delay: 0.98s;
    --label-exit-delay: 3.7s;
}

.kart-build-label--backend {
    top: 10%;
    left: 57.2%;
    --label-enter-delay: 1.28s;
    --label-exit-delay: 3.98s;
}

.kart-build-label--apis {
    top: 58%;
    left: 54.2%;
    --label-enter-delay: 1.58s;
    --label-exit-delay: 3.88s;
}

.kart-build-label--visual {
    top: 6%;
    left: 76.8%;
    --label-enter-delay: 1.88s;
    --label-exit-delay: 4.22s;
}

.kart-build-label--launch {
    top: 62%;
    left: 75.2%;
    --label-enter-delay: 2.18s;
    --label-exit-delay: 4.12s;
}

.kart-build-scan {
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 0;
    width: 22%;
    z-index: 5;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 14%,
        rgba(255, 255, 255, 0.94) 50%,
        rgba(255, 255, 255, 0.14) 78%,
        transparent 100%
    );
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate3d(-130%, 0, 0) skewX(-16deg);
    animation: kart-scan-sweep 1.04s cubic-bezier(0.16, 1, 0.3, 1) 3.02s both;
    overflow: hidden;
}

.kart-build-sheen {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.38) 49%, transparent 64%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate3d(-12%, 0, 0);
    animation: kart-final-sheen 0.78s cubic-bezier(0.16, 1, 0.3, 1) 3.36s both;
}

.title-line-signature {
    position: absolute;
    left: 43.2%;
    bottom: clamp(-42px, -2.4vw, -22px);
    z-index: 2;
    width: clamp(405px, 40vw, 560px);
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 24px, 0) rotate(-2deg);
    animation: signature-settle 0.9s cubic-bezier(0.16, 1, 0.3, 1) 3.42s forwards;
}

.title-line-signature-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 72px;
}

.hero-text {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.62;
    letter-spacing: -0.01em;
    color: rgba(10, 10, 10, 0.84);
}

.hero-arrow {
    width: 80px;
    height: 80px;
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease);
    flex-shrink: 0;
    color: var(--accent);
}

.hero-arrow:hover {
    background: var(--black);
    color: var(--white);
    transform: scale(1.1);
}

@keyframes kart-image-build {
    0% {
        opacity: 0.16;
        filter: blur(11px) brightness(1.08) saturate(0.8);
        transform: translate3d(0, 18px, 0) scale(1.016);
    }
    36% {
        opacity: 0.34;
        filter: blur(8px) brightness(1.06) saturate(0.84);
    }
    68% {
        opacity: 0.94;
        filter: blur(1.8px) brightness(1.02) saturate(0.98);
        transform: translate3d(0, 4px, 0) scale(1.006);
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1) saturate(1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes kart-grid-build {
    0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scaleY(0.94);
    }
    24% {
        opacity: 0.34;
    }
    70% {
        opacity: 0.18;
    }
    100% {
        opacity: 0.07;
        transform: translate3d(0, 0, 0) scaleY(1);
    }
}

@keyframes kart-guide-horizontal {
    0% {
        opacity: 0;
        transform: scaleX(0.24);
    }
    26% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

@keyframes kart-guide-vertical {
    0% {
        opacity: 0;
        transform: scaleY(0.24);
    }
    26% {
        opacity: 0.44;
    }
    100% {
        opacity: 0;
        transform: scaleY(1);
    }
}

@keyframes kart-label-enter {
    0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    100% {
        opacity: 0.96;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes kart-label-exit {
    0% {
        opacity: 0.96;
        transform: translate3d(0, 0, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -7px, 0);
    }
}

@keyframes kart-scan-sweep {
    0% {
        opacity: 0;
        transform: translate3d(-130%, 0, 0) skewX(-16deg);
    }
    16% {
        opacity: 1;
    }
    76% {
        opacity: 0.92;
    }
    100% {
        opacity: 0;
        transform: translate3d(510%, 0, 0) skewX(-16deg);
    }
}

@keyframes kart-final-sheen {
    0% {
        opacity: 0;
        transform: translate3d(-12%, 0, 0);
    }
    35% {
        opacity: 0.34;
    }
    100% {
        opacity: 0;
        transform: translate3d(10%, 0, 0);
    }
}

@keyframes signature-settle {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translate3d(0, 24px, 0) rotate(-2deg);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

/* Proyecto Hero - Ayogis */
.project-hero {
    padding: 120px 0;
    background: var(--gray-bg);
    color: var(--black);
}

.project-hero-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.project-hero-header {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

/* Project Split Layout - Splash + Description */
.project-split-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.project-splash-side {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.splash-mockup-project {
    position: relative;
    width: 330px;
    height: 680px;
    background: var(--white);
    border-radius: 45px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-description-side {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-description-side .info-block h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-description-side .info-block p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tags span {
    padding: 8px 16px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.project-number {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    opacity: 0.3;
}

.project-meta {
    padding-top: 20px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.project-subtitle {
    font-size: 18px;
    color: var(--gray);
}

/* Showcase hero */
.project-showcase {
    margin-bottom: 100px;
    border-radius: 16px;
    overflow: hidden;
}

.showcase-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Project info main */
.project-hero-content {
    margin-bottom: 120px;
}

.project-info-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Features Gallery */
.features-gallery {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-bottom: 120px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-card.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.feature-card.reverse .feature-image {
    order: 2;
}

.feature-card.reverse .feature-content {
    order: 1;
}

.feature-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.feature-content h4 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.feature-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray);
}

/* Project Metrics - Clean Design */
.project-metrics-clean {
    margin: 80px 0 60px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.metric-clean {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.metric-text {
    font-size: 13px;
    color: var(--gray);
    text-transform: none;
    letter-spacing: 0;
}

/* Tech Stack - Clean Design */
.tech-stack-clean {
    margin: 60px 0;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.stack-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--black);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stack-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stack-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 4px;
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack-items span {
    font-size: 15px;
    color: var(--black);
    line-height: 1.6;
}

/* Project Footer */
.project-footer {
    padding: 40px 0;
}

.tech-stack-extended {
    padding: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.tech-stack-extended h4 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tech-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-cat-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-category .tech-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-category .tech-list span {
    padding: 8px 12px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Project Info */
.info-block h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

.capabilities-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.capabilities-list li {
    font-size: 16px;
    color: var(--gray);
    padding-left: 24px;
    position: relative;
}

.capabilities-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Project CTA Button */
.project-cta {
    margin: 32px 0 24px;
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s var(--ease);
}

.view-project-btn:hover {
    background: var(--accent);
    transform: translateX(4px);
}

.view-project-btn svg {
    transition: transform 0.3s var(--ease);
}

.view-project-btn:hover svg {
    transform: translateX(4px);
}

.project-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    justify-content: center;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #34c759;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 14px;
    font-weight: 600;
}

.status-text a {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.3s var(--ease);
}

.status-text a:hover {
    color: var(--accent);
}

/* Projects Grid */
.projects-grid {
    padding: 120px 0;
}

.grid-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.grid-item {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.grid-item:hover::before {
    transform: scaleX(1);
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.grid-item.large {
    grid-row: span 2;
}

.grid-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.2;
}

.grid-item h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}

.grid-item p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.grid-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.grid-tags span {
    padding: 6px 12px;
    background: var(--gray-bg);
    color: var(--black);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

/* Expertise */
.expertise {
    padding: 80px 0;
    background: var(--white);
}

.expertise-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 40px;
    color: var(--black);
}

.expertise-intro {
    max-width: 900px;
    font-size: 20px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 80px;
}

.expertise-clean-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    margin-bottom: 80px;
}

.expertise-clean-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.expertise-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expertise-list span {
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    padding: 8px 0;
}

.expertise-statement {
    max-width: 900px;
    margin: 80px auto 0;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.expertise-statement p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    text-align: left;
}

/* Contact */
.contact {
    padding: 40px 0 80px 0;
}

.contact-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.contact-header h2 {
    font-family: var(--font-display);
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
}

.contact-intro {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray);
    max-width: 700px;
    margin-bottom: 60px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-link {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.contact-link:hover {
    color: var(--accent);
}

.contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--accent);
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid var(--accent);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cv-download-btn:hover::before {
    left: 100%;
}

.cv-download-btn:hover {
    background: var(--black);
    border-color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(233, 76, 137, 0.4);
}

.cv-download-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.cv-download-btn:hover svg {
    transform: translateY(2px);
}

.cv-download-btn .btn-text {
    font-weight: 600;
}

.cv-download-btn .file-size {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.contact-social {
    display: flex;
    gap: 32px;
}

.contact-social a {
    font-size: 18px;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.contact-social a:hover {
    color: var(--black);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 20px rgba(233, 76, 137, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 76, 137, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .project-split-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .splash-mockup-project {
        width: 300px;
        height: 600px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 80px;
    }

    .hero-nameplate {
        margin-bottom: 26px;
    }

    .title-line-kart-solid {
        width: 100%;
        margin-right: 0;
    }

    .title-line-signature {
        left: 42.8%;
        bottom: -22px;
        width: clamp(390px, 42vw, 500px);
    }
    
    .project-info-main {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .feature-card,
    .feature-card.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-card.reverse .feature-image,
    .feature-card.reverse .feature-content {
        order: initial;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .header-content,
    .hero-container,
    .project-hero-container,
    .grid-container,
    .expertise-container,
    .contact-container,
    .footer-content {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 56px;
    }

    .hero-nameplate {
        padding-right: 0;
        width: 100%;
        margin-bottom: 48px;
    }

    .hero-title--editorial {
        width: 100%;
        padding-bottom: 24px;
    }

    .title-line-kart-solid {
        width: 100%;
        margin-right: 0;
    }

    .kart-build-label {
        min-width: 104px;
        padding: 8px 10px;
        gap: 4px;
    }

    .kart-build-label-key {
        font-size: 7px;
    }

    .kart-build-label-value {
        font-size: 10px;
    }

    .kart-build-label--product {
        left: 5.8%;
    }

    .kart-build-label--ux {
        left: 9.4%;
    }

    .kart-build-label--mobile {
        left: 27.2%;
    }

    .kart-build-label--backend {
        left: 53.4%;
    }

    .kart-build-label--apis {
        left: 51.2%;
    }

    .kart-build-label--visual {
        left: 71.8%;
    }

    .kart-build-label--launch {
        left: 70.4%;
    }

    .kart-build-scan {
        padding: 0 14px;
    }

    .kart-build-scan-line {
        font-size: 9px;
    }

    .title-line-signature {
        left: auto;
        right: 0;
        bottom: -12px;
        width: min(330px, calc(100% - 8px));
    }
    
    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-arrow {
        display: none;
    }
    
    .project-number {
        font-size: 72px;
    }
    
    .project-title {
        font-size: 48px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .expertise-header h2,
    .contact-header h2 {
        font-size: 56px;
    }
    
    .contact-link {
        font-size: 32px;
    }
}


/* ==========================================
   PROJECT DETAIL PAGE STYLES
   ========================================== */

.back-link {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

.back-link:hover {
    color: var(--accent);
}

.project-detail-hero {
    padding: 120px 60px 60px;
    background: var(--white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--black);
}

/* Tech Stack Detail */
.tech-stack-detail {
    background: var(--gray-bg);
}

.tech-stack-detail .stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

/* Screens Showcase */
.screens-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.screen-showcase {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: flex-start;
}

.screen-showcase:nth-child(even) {
    grid-template-columns: 1fr 400px;
}

.screen-showcase:nth-child(even) .screen-device {
    order: 2;
}

.screen-showcase:nth-child(even) .screen-info {
    order: 1;
    text-align: right;
}

.screen-device {
    width: 350px;
    height: 700px;
    background: var(--white);
    border-radius: 45px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.screen-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 37px;
}

.screen-info h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.screen-info p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    max-width: 600px;
}

/* Features Detail */
.features-detail {
    background: var(--white);
}

.features-clean-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
}

.feature-clean-card {
    background: var(--white);
    padding: 50px 40px;
    transition: all 0.3s var(--ease);
}

.feature-clean-card:hover {
    background: var(--gray-bg);
}

.feature-clean-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    flex-shrink: 0;
}

.feature-clean-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin: 0;
}

.feature-clean-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}

/* Design Process Timeline */
.design-process {
    background: var(--gray-bg);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 60px;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.step-content > p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
}

.step-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.step-content ul li {
    font-size: 16px;
    color: var(--gray);
    padding-left: 24px;
    position: relative;
}

.step-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Project Metrics */
.project-metrics {
    background: var(--white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.metric-card {
    text-align: center;
    padding: 40px;
    background: var(--gray-bg);
    border-radius: 20px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

.project-conclusion {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.project-conclusion p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
}

/* Responsive para página de detalle */
@media (max-width: 1024px) {
    .screen-showcase,
    .screen-showcase:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .screen-showcase:nth-child(even) .screen-device,
    .screen-showcase:nth-child(even) .screen-info {
        order: initial;
    }
    
    .screen-showcase:nth-child(even) .screen-info {
        text-align: left;
    }
    
    .screen-device {
        margin: 0 auto;
    }
    
    .tech-stack-detail .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-metrics .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 60px 30px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .tech-stack-detail .stack-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .project-metrics .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 30px;
    }
    
    .step-number {
        font-size: 48px;
    }
    
    .step-content h3 {
        font-size: 24px;
    }
}

/* ==========================================
   PROJECT DETAIL PAGE STYLES
   ========================================== */

.back-link {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

.back-link:hover {
    color: var(--accent);
}

.project-detail-hero {
    padding: 120px 60px 60px;
    background: var(--white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--black);
}

.tech-stack-detail {
    background: var(--gray-bg);
}

.tech-stack-detail .stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.screens-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.screen-showcase {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: flex-start;
}

.screen-showcase:nth-child(even) {
    grid-template-columns: 1fr 400px;
}

.screen-showcase:nth-child(even) .screen-device {
    order: 2;
}

.screen-showcase:nth-child(even) .screen-info {
    order: 1;
    text-align: right;
}

.screen-device {
    width: 350px;
    height: 700px;
    background: var(--white);
    border-radius: 45px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.screen-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 37px;
}

.screen-info h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.screen-info p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    max-width: 600px;
}

.features-detail {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    padding: 40px;
    background: var(--gray-bg);
    border-radius: 20px;
    transition: transform 0.3s var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

.design-process {
    background: var(--gray-bg);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 60px;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.step-content > p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
}

.step-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.step-content ul li {
    font-size: 16px;
    color: var(--gray);
    padding-left: 24px;
    position: relative;
}

.step-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.project-metrics {
    background: var(--white);
}

.project-metrics .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.metric-card {
    text-align: center;
    padding: 40px;
    background: var(--gray-bg);
    border-radius: 20px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

.project-conclusion {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.project-conclusion p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .screen-showcase,
    .screen-showcase:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .screen-showcase:nth-child(even) .screen-device,
    .screen-showcase:nth-child(even) .screen-info {
        order: initial;
    }
    
    .screen-showcase:nth-child(even) .screen-info {
        text-align: left;
    }
    
    .screen-device {
        margin: 0 auto;
    }
    
    .tech-stack-detail .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-metrics .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 60px 30px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .tech-stack-detail .stack-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .project-metrics .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 30px;
    }
    
    .step-number {
        font-size: 48px;
    }
    
    .step-content h3 {
        font-size: 24px;
    }
}

/* ==========================================
   PROJECT DETAIL PAGE STYLES
   ========================================== */

.back-link {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

.back-link:hover {
    color: var(--accent);
}

.project-detail-hero {
    padding: 120px 60px 60px;
    background: var(--white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--black);
}

.tech-stack-detail {
    background: var(--gray-bg);
}

.tech-stack-detail .stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.screens-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.screen-showcase {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: flex-start;
}

.screen-showcase:nth-child(even) {
    grid-template-columns: 1fr 400px;
}

.screen-showcase:nth-child(even) .screen-device {
    order: 2;
}

.screen-showcase:nth-child(even) .screen-info {
    order: 1;
    text-align: right;
}

.screen-device {
    width: 350px;
    height: 700px;
    background: var(--white);
    border-radius: 45px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.screen-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 37px;
}

.screen-info h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.screen-info p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    max-width: 600px;
}

.features-detail {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    padding: 40px;
    background: var(--gray-bg);
    border-radius: 20px;
    transition: transform 0.3s var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

.design-process {
    background: var(--gray-bg);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 60px;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.step-content > p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
}

.step-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.step-content ul li {
    font-size: 16px;
    color: var(--gray);
    padding-left: 24px;
    position: relative;
}

.step-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.project-metrics {
    background: var(--white);
}

.project-metrics .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.metric-card {
    text-align: center;
    padding: 40px;
    background: var(--gray-bg);
    border-radius: 20px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

.project-conclusion {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.project-conclusion p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .screen-showcase,
    .screen-showcase:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .screen-showcase:nth-child(even) .screen-device,
    .screen-showcase:nth-child(even) .screen-info {
        order: initial;
    }
    
    .screen-showcase:nth-child(even) .screen-info {
        text-align: left;
    }
    
    .screen-device {
        margin: 0 auto;
    }
    
    .tech-stack-detail .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-metrics .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 60px 30px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .tech-stack-detail .stack-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .project-metrics .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 30px;
    }
    
    .step-number {
        font-size: 48px;
    }
    
    .step-content h3 {
        font-size: 24px;
    }
}

/* Ecosystem Section */
.ecosystem-section {
    background: var(--white);
}

.ecosystem-intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
    max-width: 900px;
    margin: -20px auto 60px;
    text-align: center;
}

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

.ecosystem-card {
    padding: 50px;
    background: var(--gray-bg);
    border-radius: 20px;
    transition: all 0.3s var(--ease);
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ecosystem-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.ecosystem-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.ecosystem-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
}

.platform-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Technical Challenges */
.technical-challenges {
    background: var(--white);
}

.technical-challenges .section-container {
    text-align: center;
}

.challenge-intro {
    max-width: 800px;
    margin: -20px auto 60px;
    text-align: center;
}

.challenge-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
}

.challenges-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1050px;
    margin: 0 auto;
}

.challenge-clean-card {
    background: var(--white);
    border-radius: 20px;
    padding: 45px;
    text-align: left;
    border: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.challenge-clean-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.challenge-clean-card h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.challenge-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(236, 72, 153, 0.08);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    align-self: flex-start;
}

.challenge-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.challenge-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
}

.challenge-content strong {
    color: var(--black);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .challenges-clean-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .challenges-clean-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .ecosystem-card {
        padding: 30px;
    }
    
    .challenge-clean-card {
        padding: 24px;
    }
}

/* Ecosystem Section */
.ecosystem-section {
    background: var(--white);
}

.ecosystem-intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
    max-width: 900px;
    margin: -20px auto 60px;
    text-align: center;
}

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

.ecosystem-card {
    padding: 50px;
    background: var(--gray-bg);
    border-radius: 20px;
    transition: all 0.3s var(--ease);
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ecosystem-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.ecosystem-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--black);
}

.ecosystem-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
}

.platform-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Technical Challenges */
.technical-challenges {
    background: var(--gray-bg);
}

.challenge-intro {
    max-width: 900px;
    margin: -20px auto 60px;
    text-align: center;
}

.challenge-intro p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
}

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

.challenge-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

.challenge-card-full {
    grid-column: 1 / -1;
}

.challenge-header {
    background: var(--black);
    color: var(--white);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.challenge-icon {
    font-size: 48px;
}

.challenge-header h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.challenge-body {
    padding: 40px;
}

.challenge-body p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.challenge-body strong {
    color: var(--black);
    font-weight: 600;
}

.challenge-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    padding-left: 0;
}

.challenge-points li {
    font-size: 16px;
    color: var(--gray);
    padding-left: 0;
}

.challenge-note {
    margin-top: 24px;
    padding: 24px;
    background: var(--gray-bg);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.challenge-note strong {
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.stripe-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.stripe-feature {
    padding: 30px;
    background: var(--gray-bg);
    border-radius: 12px;
}

.stripe-feature strong {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--black);
    margin-bottom: 12px;
}

.stripe-feature p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}

/* Responsive updates */
@media (max-width: 1024px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .stripe-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ecosystem-card,
    .challenge-body {
        padding: 30px;
    }
    
    .challenge-header {
        padding: 30px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .challenge-icon {
        font-size: 40px;
    }
    
    .challenge-header h3 {
        font-size: 22px;
    }
}

/* Additional responsive for clean features */
@media (max-width: 1024px) {
    .features-clean-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-clean-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-clean-card {
        padding: 40px 30px;
    }
}

/* Ecosystem Hero Sections */
.ecosystem-hero-sections {
    width: 100%;
}

.ecosystem-hero-card {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ecosystem-hero-reverse {
    flex-direction: row-reverse;
}

.ecosystem-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ecosystem-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.3) 100%);
    z-index: 1;
}

.ecosystem-hero-reverse .ecosystem-hero-bg::before {
    background: linear-gradient(-90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.3) 100%);
}

.ecosystem-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ecosystem-hero-web .ecosystem-hero-bg::before {
    background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 100%);
}

.ecosystem-hero-reverse.ecosystem-hero-card .ecosystem-hero-web .ecosystem-hero-bg::before {
    background: linear-gradient(-90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 100%);
}

.ecosystem-hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--gray-bg);
}

.ecosystem-hero-placeholder span {
    font-size: 120px;
    margin-bottom: 24px;
}

.ecosystem-hero-placeholder p {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--gray);
}

.ecosystem-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 80px 120px;
    color: var(--white);
}

.ecosystem-hero-reverse .ecosystem-hero-content {
    margin-left: auto;
    text-align: right;
}

.ecosystem-hero-badge {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.ecosystem-hero-card h2 {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--white);
}

.ecosystem-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-weight: 500;
}

.ecosystem-hero-description {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.ecosystem-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ecosystem-hero-reverse .ecosystem-hero-tags {
    justify-content: flex-end;
}

.ecosystem-hero-tags span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .ecosystem-hero-card {
        min-height: 80vh;
    }
    
    .ecosystem-hero-content {
        padding: 60px 80px;
    }
    
    .ecosystem-hero-card h2 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .ecosystem-hero-card {
        min-height: auto;
        padding: 80px 0;
    }
    
    .ecosystem-hero-bg::before {
        background: rgba(10,10,10,0.85) !important;
    }
    
    .ecosystem-hero-content {
        padding: 40px 30px;
        text-align: left !important;
    }
    
    .ecosystem-hero-reverse .ecosystem-hero-content {
        margin-left: 0;
    }
    
    .ecosystem-hero-card h2 {
        font-size: 36px;
    }
    
    .ecosystem-hero-tags {
        justify-content: flex-start !important;
    }
    
    .ecosystem-hero-placeholder span {
        font-size: 80px;
    }
    
    .ecosystem-hero-placeholder p {
        font-size: 24px;
    }
}

/* Ecosystem Clean Section */
.ecosystem-clean-section {
    background: var(--white);
}

.section-intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray);
    max-width: 800px;
    margin: -20px auto 100px;
    text-align: center;
}

.ecosystem-clean-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 120px;
    align-items: center;
    padding: 120px 120px;
    border-bottom: 1px solid var(--border);
}

.ecosystem-clean-item:last-child {
    border-bottom: none;
}

.ecosystem-clean-reverse {
    grid-template-columns: 1fr 1.2fr;
}

.ecosystem-clean-reverse .ecosystem-clean-visual {
    order: 2;
}

.ecosystem-clean-reverse .ecosystem-clean-content {
    order: 1;
}

.ecosystem-clean-visual {
    position: relative;
}

.ecosystem-clean-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.ecosystem-clean-placeholder {
    aspect-ratio: 16 / 10;
    background: var(--gray-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 16px;
}

.placeholder-content p {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--gray);
}

.ecosystem-clean-content {
    max-width: 540px;
}

.ecosystem-clean-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.ecosystem-clean-content h3 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--black);
}

.ecosystem-clean-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 24px;
    font-weight: 500;
    display: block;
}

.ecosystem-clean-content p:last-child {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray);
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .ecosystem-clean-item {
        gap: 80px;
        padding: 100px 80px;
    }
    
    .ecosystem-clean-content h3 {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .ecosystem-clean-item,
    .ecosystem-clean-reverse {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 80px 60px;
    }
    
    .ecosystem-clean-reverse .ecosystem-clean-visual,
    .ecosystem-clean-reverse .ecosystem-clean-content {
        order: initial;
    }
    
    .ecosystem-clean-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ecosystem-clean-item {
        padding: 60px 30px;
        gap: 40px;
    }
    
    .section-intro {
        font-size: 17px;
        margin-bottom: 60px;
        padding: 0 30px;
    }
    
    .ecosystem-clean-content h3 {
        font-size: 32px;
    }
    
    .placeholder-icon {
        font-size: 60px;
    }
    
    .placeholder-content p {
        font-size: 20px;
    }
}

/* Ecosystem Apple Style */
.ecosystem-apple-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: var(--white);
    padding: 12px;
}

.ecosystem-apple-card {
    position: relative;
    min-height: 70vh;
    padding: 80px 60px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
}

.ecosystem-apple-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-bottom: 40px;
}

.ecosystem-apple-number {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.ecosystem-apple-card h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 8px;
    color: var(--black);
}

.ecosystem-apple-tagline {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 8px;
}

.ecosystem-apple-desc {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.ecosystem-apple-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-top: 16px;
}

.ecosystem-apple-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ecosystem-apple-visual.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global fade-in for all elements */
section.visible,
.ecosystem-apple-card.visible,
.feature-clean-card.visible,
.challenge-clean-card.visible,
.process-step.visible,
.metric-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.ecosystem-apple-visual img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    will-change: transform;
}

/* Responsive */
@media (max-width: 1400px) {
    .ecosystem-apple-card h2 {
        font-size: 48px;
    }
    
    .ecosystem-apple-tagline {
        font-size: 21px;
    }
}

@media (max-width: 1024px) {
    .ecosystem-apple-section {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .ecosystem-apple-card {
        min-height: auto;
        padding: 60px 40px;
    }
    
    .ecosystem-apple-card h2 {
        font-size: 38px;
    }
    
    .ecosystem-apple-tagline {
        font-size: 17px;
    }
    
    .ecosystem-apple-desc {
        font-size: 15px;
    }
    
    .ecosystem-apple-visual {
        max-width: 600px;
    }
    
    .challenges-clean-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .challenge-clean-card {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }
    
    .header-nav {
        gap: 20px;
    }
    
    .header-nav a {
        font-size: 13px;
    }
    
    .ecosystem-apple-section {
        padding: 12px;
        gap: 12px;
    }
    
    .ecosystem-apple-card {
        min-height: auto;
        padding: 40px 24px;
    }
    
    .ecosystem-apple-number {
        font-size: 11px;
        margin-bottom: 16px;
    }
    
    .ecosystem-apple-card h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .ecosystem-apple-tagline {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .ecosystem-apple-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .ecosystem-apple-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .ecosystem-apple-visual {
        max-width: 100%;
        margin-top: 30px;
    }
    
    .ecosystem-apple-visual img {
        max-height: 350px;
    }
    
    .challenge-clean-card {
        padding: 30px 24px;
    }
    
    .challenge-clean-card h3 {
        font-size: 20px;
    }
    
    .challenge-subtitle {
        font-size: 12px;
    }
    
    .challenge-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-container {
        padding: 80px 30px;
    }
    
    .project-detail-hero {
        padding: 100px 30px 60px;
    }
}

@media (max-width: 480px) {
    .project-hero {
        padding: 82px 0 72px;
    }

    .project-hero-header {
        margin-bottom: 42px;
    }

    .project-split-layout {
        margin-bottom: 34px;
    }

    .expertise {
        padding: 56px 0;
    }

    .contact {
        padding: 20px 0 56px;
    }

    .section-container {
        padding: 60px 20px;
    }
    
    .project-detail-hero {
        padding: 80px 20px 40px;
    }
    .ecosystem-apple-card h2 {
        font-size: 24px;
    }
    
    .ecosystem-apple-tagline {
        font-size: 14px;
    }
    
    .ecosystem-apple-desc {
        font-size: 13px;
    }
    
    .ecosystem-apple-visual img {
        max-height: 280px;
    }
    
    .hero-title {
        font-size: 48px;
    }

    .hero-nameplate {
        padding-right: 0;
        margin-bottom: 18px;
    }

    .hero-title--editorial {
        padding-bottom: 18px;
    }

    .title-line-kart-solid {
        width: 100%;
        margin-right: 0;
    }

    .kart-build-guides {
        display: none;
    }

    .kart-build-label {
        display: inline-flex;
        min-width: 84px;
        padding: 6px 8px;
        gap: 3px;
    }

    .kart-build-label-key {
        font-size: 6px;
    }

    .kart-build-label-value {
        font-size: 9px;
    }

    .kart-build-label--product {
        top: 6.2%;
        left: 4.8%;
    }

    .kart-build-label--ux {
        top: 54.5%;
        left: 8.2%;
    }

    .kart-build-label--mobile {
        top: 19.5%;
        left: 25.6%;
    }

    .kart-build-label--backend {
        top: 14.4%;
        left: 49.8%;
    }

    .kart-build-label--apis {
        top: 60.8%;
        left: 47.8%;
    }

    .kart-build-label--visual {
        top: 3.8%;
        left: 67.4%;
    }

    .kart-build-label--launch {
        top: 68.4%;
        left: 66.2%;
    }

    .kart-build-scan-code {
        display: none;
    }

    .kart-build-grid {
        inset: 3% 0 4%;
    }

    .kart-build-scan {
        width: 26%;
    }

    .title-line-signature {
        left: auto;
        right: 0;
        bottom: -10px;
        width: min(318px, calc(100% - 6px));
    }

    .hero-nameplate {
        margin-bottom: 52px;
    }
    
    .project-number {
        font-size: 56px;
    }
    
    .project-title {
        font-size: 36px;
    }
    
    .header-content,
    .hero-container,
    .project-hero-container,
    .grid-container,
    .expertise-container,
    .contact-container,
    .footer-content {
        padding: 0 20px !important;
    }

    .tech-stack-detail .section-container,
    .features-detail .section-container,
    .design-process .section-container,
    .technical-challenges .section-container,
    .project-metrics .section-container,
    .one-mile-story .section-container {
        padding: 60px 20px !important;
    }

    .tech-stack-detail .section-title,
    .features-detail .section-title,
    .design-process .section-title,
    .technical-challenges .section-title,
    .project-metrics .section-title,
    .one-mile-story .section-title {
        font-size: clamp(41px, 11vw, 48px) !important;
        line-height: 1;
        margin-bottom: 40px;
        text-wrap: balance;
    }
    
    .splash-mockup-project {
        width: 260px !important;
        height: 520px !important;
    }
    
    .info-block h3 {
        font-size: 18px;
    }
    
    .info-block p,
    .info-block li {
        font-size: 14px;
    }
    
    .tech-tags span {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .project-subtitle {
        font-size: 14px;
    }
}

/* Mejoras responsive adicionales */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .project-hero {
        padding: 96px 0 88px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .project-split-layout {
        gap: 40px !important;
        margin-bottom: 48px;
    }
    
    .splash-mockup-project {
        width: 280px;
        height: 560px;
    }
    
    .project-hero-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 56px;
    }

    .expertise {
        padding: 68px 0;
    }

    .contact {
        padding: 28px 0 68px;
    }
    
    .info-block {
        margin-bottom: 30px;
    }
    
    .capabilities-list li {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .tech-tags {
        gap: 8px;
    }
    
    .project-status-bar {
        font-size: 13px;
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    .header-nav {
        display: none;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .project-split-layout {
        gap: 30px !important;
    }
    
    .expertise-clean-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .expertise-clean-col {
        max-width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .contact-link {
        font-size: 28px;
        word-break: break-all;
    }
    
    .contact-social {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .expertise-intro {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .expertise-title {
        font-size: 20px;
    }
    
    .expertise-list span {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 48px !important;
    }
    
    .contact-header h2 {
        font-size: 48px !important;
    }
    
    .contact-intro {
        font-size: 16px;
    }
    
    .contact-link {
        font-size: 24px !important;
    }
    
    .contact-social a {
        font-size: 16px;
    }
}

/* Portfolio refresh */
.project-hero--secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.project-meta .project-subtitle {
    max-width: 760px;
}

.project-description-side .project-status-bar {
    justify-content: flex-start;
    padding: 0;
}

.status-text a {
    color: inherit;
}

.project-split-layout--reverse {
    grid-template-columns: 1fr 400px;
}

.project-splash-side--one-mile {
    justify-content: flex-end;
}

.project-preview-side {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.project-preview-frame {
    position: relative;
    width: 330px;
    min-height: 680px;
    border-radius: 42px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.10),
                0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-preview-frame--one-mile {
    background:
        radial-gradient(circle at 20% 10%, rgba(250, 68, 140, 0.20), transparent 35%),
        radial-gradient(circle at 80% 25%, rgba(73, 91, 252, 0.18), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f2f4ff 100%);
}

.project-preview-frame--mockup {
    width: min(460px, 100%);
    min-height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.project-preview-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 28px;
}

.project-preview-frame--mockup .project-preview-image {
    border-radius: 0;
}

.project-static-screen {
    background: #f5efff;
}

.project-static-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 37px;
}

.theme-one-mile {
    --accent: #fa448c;
    --gray-bg: #f4f5ff;
}

.case-contact {
    padding: 80px 0 100px;
    background: var(--white);
}

.case-contact-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.case-contact-title {
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
}

.case-contact-intro {
    max-width: 680px;
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray);
}

.case-contact-primary {
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.case-contact-primary:hover {
    color: var(--accent);
}

.case-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.case-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

.case-contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .project-split-layout--reverse {
        grid-template-columns: 1fr;
    }

    .project-split-layout--preview-first-mobile .project-preview-side {
        order: -1;
        justify-content: center;
    }

    .project-split-layout--preview-first-mobile .project-splash-side--one-mile {
        order: -1;
        justify-content: center;
    }

    .project-split-layout--preview-first-mobile .project-description-side {
        order: 1;
    }

    .project-preview-side {
        justify-content: center;
    }

}

@media (max-width: 768px) {
    .project-preview-frame {
        width: 300px;
        min-height: 600px;
    }

    .project-preview-frame--mockup {
        width: min(360px, 100%);
        min-height: auto;
    }

    .case-contact-inner {
        padding: 0 30px;
    }

    .case-contact-title {
        font-size: 44px;
    }

    .case-contact-intro {
        font-size: 18px;
    }

    .case-contact-primary {
        font-size: 28px;
        word-break: break-all;
    }

}

@media (max-width: 480px) {
    .project-preview-frame {
        width: 280px;
        min-height: 540px;
        padding: 14px;
    }

    .project-preview-frame--mockup {
        width: min(320px, 100%);
        min-height: auto;
        padding: 0;
    }

    .case-contact-title {
        font-size: clamp(41px, 11vw, 48px);
        line-height: 1;
        text-wrap: balance;
    }

    .case-contact-intro {
        font-size: 16px;
    }

    .case-contact-primary {
        font-size: 24px;
        line-height: 1.08;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .case-contact-links {
        flex-direction: column;
        width: 100%;
    }

    .case-contact-link {
        justify-content: center;
    }
}

/* One Mile mobile proportion fix */
.splash-mockup-project {
    aspect-ratio: 33 / 68;
    height: auto;
}

@media (max-width: 1024px) {
    .splash-mockup-project {
        width: 300px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .splash-mockup-project {
        width: 280px;
        height: auto;
    }

    .project-splash-side--one-mile .project-static-image {
        object-fit: contain;
        object-position: center top;
    }
}

/* One Mile story section */
.one-mile-story {
    background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 100%);
}

.one-mile-story-header {
    max-width: 760px;
    margin-bottom: 56px;
}

.one-mile-story-intro {
    font-size: 20px;
    line-height: 1.7;
    color: var(--gray);
}

.one-mile-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.one-mile-story-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(236, 72, 153, 0.10);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(88, 73, 167, 0.08);
}

.one-mile-story-visual {
    display: flex;
    justify-content: center;
}

.one-mile-phone-frame {
    width: min(220px, 100%);
    background: #ffffff;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.one-mile-phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.one-mile-story-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.one-mile-story-number {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.one-mile-story-copy h3 {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.05;
    font-weight: 700;
    color: var(--black);
}

.one-mile-story-copy p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray);
}

@media (max-width: 1200px) {
    .one-mile-story-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .one-mile-story-card {
        display: grid;
        grid-template-columns: 220px 1fr;
        align-items: center;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .one-mile-story-intro {
        font-size: 18px;
    }

    .one-mile-story-card {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .one-mile-phone-frame {
        width: min(220px, 100%);
    }

    .one-mile-story-copy h3 {
        font-size: 26px;
    }
}

/* Language Toggle */
.lang-toggle {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    margin-left: 1rem;
    transition: all 0.3s ease;
}
.lang-toggle:hover {
    background: var(--text);
    color: var(--bg) !important;
    border-color: var(--text);
}
@media (max-width: 768px) {
    .lang-toggle {
        margin-left: 0;
        margin-top: 1rem;
        display: inline-block;
    }
}
