/*
 * yoso project page design system
 * Matches main site: Midcentury modern minimalism + New school aesthetic
 * Accent color: Electric Blue (#0080ff)
 */

@font-face {
    font-family: 'Coolvetica';
    src: url('../assets/fonts/Coolvetica Rg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Coolvetica';
    src: url('../assets/fonts/Coolvetica Rg It.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Coolvetica';
    src: url('../assets/fonts/Coolvetica Hv Comp.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --color-bg: #000000;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-grey-light: #1a1a1a;
    --color-grey: #333333;
    --color-grey-dark: #cccccc;
    --color-text: #ffffff;
    --color-text-light: #999999;
    --color-accent: #0080ff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
    --radius: 0;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Coolvetica', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-black);
    border-bottom: 2px solid var(--color-white);
}

.nav-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-svg {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-svg {
    transform: scale(1.05);
}

.nav-logo-svg .logo-letter,
.nav-logo-svg .logo-shape {
    fill: var(--color-white);
    filter: none;
}

.back-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: width 0.15s ease;
}

.back-link:hover::after {
    width: 100%;
}

.project-container {
    padding: 8rem 2rem 4rem 2rem;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
}

.screenshot-card {
    flex: 0 0 50%;
    position: sticky;
    top: 8rem;
    height: fit-content;
    background: var(--color-grey-light);
    border-radius: var(--radius);
    border: 2px solid var(--color-white);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screenshot-container {
    width: 100%;
    padding: 2rem;
    position: relative;
}

.project-screenshot {
    display: none;
    width: 100%;
    height: auto;
}

.project-screenshot.active {
    display: block;
}

video.project-screenshot {
    background: transparent;
    max-width: 100%;
    height: auto;
}

.content-card {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 50vh;
}

.project-header {
    display: flex;
    flex-direction: column;
}

.content-card h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.025em;
    color: var(--color-white);
}

.project-links {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-link-btn {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
}

.project-link-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: width 0.15s ease;
}

.project-link-btn:hover {
    color: var(--color-white);
}

.project-link-btn:hover::after {
    width: 100%;
}

.content-step {
    min-height: auto;
    opacity: 0.3;
    transform: scale(0.98);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-step.is-active {
    opacity: 1;
    transform: scale(1);
}

.content-step h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--color-white);
}

.content-step p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-grey-dark);
}

@media (max-width: 1024px) {
    .project-container {
        flex-direction: column;
        gap: 2rem;
        padding-top: 6rem;
    }

    .screenshot-card {
        flex: 1;
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        max-height: 70vh;
    }

    .screenshot-container {
        padding: 1rem;
        height: auto;
        display: block;
    }

    .project-screenshot {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        max-height: 70vh;
    }

    .project-screenshot.active {
        display: block;
    }

    .project-screenshot:not(.active) {
        display: none;
    }

    .content-card {
        flex: 1;
        gap: 4rem;
        padding-bottom: 4rem;
    }

    .content-step {
        min-height: auto;
    }
}

.mobile-carousel {
    display: none;
    background: var(--color-black);
    border-top: 2px solid var(--color-white);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    min-height: 200px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-screenshot {
    flex: 0 0 80vw;
    max-width: 400px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    scroll-snap-align: center;
    background: var(--color-grey-light);
    border: 1px solid var(--color-grey);
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-grey);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 1rem;
    }

    .nav-logo {
        position: static;
        transform: none;
    }

    .project-container {
        padding: 5rem 1rem 2rem 1rem;
    }

    .mobile-carousel {
        display: block;
    }
}
