main {
    margin-top: 0;
    padding: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.back-button {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--subtitle);
}

.back-button::before {
    content: "← ";
    margin-right: 0.5rem;
}

.project-hero {
    margin-bottom: 1rem;
    text-align: left;
}

.project-hero h1 {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.project-meta {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.project-description {
    padding-bottom: 2rem;
}

.project-description p{
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--subtitle);
    font-weight: 300;
    max-width: 800px;
    
}

.project-description, .smalltext {
    color: var(--subtitle);
    font-size: 0.8rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
    text-align: left;
}

.section-sidebar {
    position: sticky;
    top: 2rem;
    text-align: left;
    align-items: left;
}

.section-sidebar h2 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: left;
}

.section-sidebar .current-subtitle {
    font-size: 1rem;
    color: var(--subtitle);
    font-weight: 300;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.section-sidebar .current-subtitle.fade-out {
    opacity: 0;
}

.section-sidebar .section-nav {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.section-nav li {
    margin-bottom: 0.5rem;
}

.section-nav a {
    color: var(--subtitle);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
    cursor: pointer;
}

.section-nav a:hover,
.section-nav a.active {
    color: var(--text-color);
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--subtitle);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-content-main {
    padding: 0;
    text-align: left;
}

.content-section-item {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

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

.section-header-with-image {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header-with-image h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.content-section-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300;
    margin-bottom: 1rem;
}

.content-section-item p.smallertext {
    color: var(--subtitle);
    font-size: 0.6rem;
}

.content-section-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.content-section-item li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    font-weight: 300;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.content-section-item li::before {
    content: "•";
    color: var(--subtitle);
    position: absolute;
    left: 0;
}

.persona-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.persona-profile-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background: var(--work-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.persona-profile-image img{
    height: 200px;
    width: 200px;
}

.persona-info-grid {
    grid-column: 2 / 5;
    grid-row: 1 / 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.persona-info-item {
    background: var(--work-bg);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.persona-info-item h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--subtitle);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.persona-info-item p {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.3;
}

.persona-large-section {
    background: var(--work-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.persona-background {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

.persona-goals {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.persona-pain-points {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

.persona-app-needs {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
}

.persona-large-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.persona-large-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300;
}

.persona-large-section ul {
    list-style: none;
    padding: 0;
}

.persona-large-section li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    font-weight: 300;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.persona-large-section li::before {
    content: "•";
    color: var(--subtitle);
    position: absolute;
    left: 0;
}

.journey-container {
    max-width: 1200px;
    margin: 0 auto;
}

.journey-header {
    text-align: center;
    margin-bottom: 3rem;
}

.journey-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.journey-header p {
    font-size: 1.1rem;
    color: var(--subtitle);
    font-weight: 300;
}

.journey-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    padding-top: 1rem;
}

.journey-stage {
    background: var(--work-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stage-header {
    margin-bottom: 1.5rem;
}

.stage-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    color: black;
    background-color: rgb(0, 255, 94);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.stage-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stage-subtitle {
    font-size: 0.9rem;
    color: var(--subtitle);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage-content {
    margin-bottom: 1rem;
}

.stage-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.stage-actions {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.stage-actions h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--subtitle);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage-actions ul {
    list-style: none;
}

.stage-actions li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    font-weight: 300;
    padding-left: 1rem;
    position: relative;
}

.stage-actions li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    font-weight: 500;
}

.stage-emotions {
    background: rgba(46, 204, 113, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.stage-emotions.curiosity {
    background: rgba(52, 152, 219, 0.100);
}

.stage-emotions.satisfaction {
    background: rgba(243, 157, 18, 0.100);
}

.stage-emotions.confidence {
    background: rgba(46, 204, 113, 0.100);
}

.emotion-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--subtitle-accent);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emotion-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-color);
    font-weight: 300;
}

.stage-discovery {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.stage-exploration {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.stage-engagement {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.stage-mastery {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.section-bottom-image {
    width: 100%;
    height: 485px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.section-bottom-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.section-bottom-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
}

video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    display: block;
}

.image-placeholder video {
    display: flex;
}

.image-placeholder {
    margin: 3rem 0;
}

.phones-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 600px;
    margin-bottom: 2rem;
}

.phone {
    padding: 8px;
    position: absolute;
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.phone-center {
    width: 280px;
    height: 560px;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
    will-change: transform, opacity;
}

.phone-left {
    width: 220px;
    height: 440px;
    left: calc(50% - 300px);
    top: 60px;
    transform: translateX(120px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    z-index: 1;
    will-change: transform, opacity;
}

.phone-right {
    width: 220px;
    height: 440px;
    right: calc(50% - 300px);
    top: 60px;
    transform: translateX(-120px);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    z-index: 2;
    will-change: transform, opacity;
}

.phones-container.visible .phone-center {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.phones-container.visible .phone-left {
    opacity: 1;
    transform: translateX(0);
}

.phones-container.visible .phone-right {
    opacity: 1;
    transform: translateX(0);
}

.mini-phones-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    height: 100%;
}

.mini-phone {
    width: 250px;
    height: auto;
    overflow: hidden;
}

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

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-sidebar {
        position: static;
    }
    
    .project-hero h1 {
        font-size: 2.5rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 2rem;
    }

    .persona-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        gap: 1.5rem;
        
    }

    .persona-profile-image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        justify-self: center;
        width: 80px;
        height: 80px;
    }

    .persona-info-grid {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .persona-background {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .persona-goals {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }

    .persona-pain-points {
        grid-column: 1 / 2;
        grid-row: 5 / 6;
    }

    .persona-app-needs {
        grid-column: 1 / 2;
        grid-row: 6 / 7;
    }

    .persona-profile-image img{
        height: 80px;
        width: 80px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 2rem;
    }

    .project-hero h1 {
        font-size: 2.5rem;
    }

    .project-description {
        font-size: 1.1rem;
    }

    .phones-container {
        height: 400px;
        padding: 20px 10px;
    }
    
    .phone-center {
        width: 200px;
        height: 400px;
    }
    
    .phone-left,
    .phone-right {
        width: 160px;
        height: 320px;
        top: 40px;
    }
    
    .phone-left {
        left: calc(50% - 200px);
        transform: translateX(80px);
    }
    
    .phone-right {
        right: calc(50% - 200px);
        transform: translateX(-80px);
    }

    .mini-phones-row { 
        gap: 20px; 
    }

    .section-bottom-image {
        height: 100%;
    }

    .journey-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
    }

    .stage-discovery,
    .stage-exploration,
    .stage-engagement,
    .stage-mastery {
        grid-column: 1 / 2;
    }

    .stage-discovery { grid-row: 1 / 2; }
    .stage-exploration { grid-row: 2 / 3; }
    .stage-engagement { grid-row: 3 / 4; }
    .stage-mastery { grid-row: 4 / 5; }
}

@media (max-width: 480px) {
    .phones-container {
        height: 320px;
        padding: 15px 5px;
    }
    
    .phone-center {
        width: 160px;
        height: 320px;
    }
    
    .phone-left,
    .phone-right {
        width: 130px;
        height: 260px;
        top: 30px;
    }
    
    .phone-left {
        left: calc(50% - 140px);
        transform: translateX(60px);
    }
    
    .phone-right {
        right: calc(50% - 140px);
        transform: translateX(-60px);
    }
    
    .mini-phone { width: 170px; height: 350px; }
    
    .mini-phone:nth-child(2) {
        display: none;
    }
    
}

@media (prefers-reduced-motion: reduce) {
    .section-sidebar .current-subtitle {
        transition: none;
    }
}
