/* projectpages.css */
@font-face {
    font-family: 'Bitcount';
    src: url('assets/fonts/Bitcount.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

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

body {
    font-family: "Bitcount", system-ui, sans-serif;
    min-height: 100vh;
    background: radial-gradient(ellipse at bottom right, #400202 0%, #050000 50%, #000000 100%);
    background-attachment: fixed;
    background-size: cover;
    color: white;
    overflow-x: hidden;
    overscroll-behavior: none;
    display: flex;
}

.header-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #000000 30%, rgba(0, 0, 0, 0));
    z-index: 90;
    pointer-events: none;
}

.back-dashboard {
    position: fixed;
    top: 30px;
    left: 50px;
    color: #ff5c5c;
    text-decoration: none;
    font-size: 1.1rem;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 92, 92, 0.3);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.back-dashboard:hover {
    color: white;
    border-color: white;
}

.content-container {
    width: 50vw;
    padding: 160px 50px 120px 50px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.project-header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.project-status {
    min-width: 50px;
    width: auto;
    height: 50px;
    padding: 0 16px;
    border-radius: 25px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateY(10%);
    vertical-align: baseline;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.project-status::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 12.5%;
    width: 75%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    border-radius: 50% / 40% 40% 20% 20%;
}

.status-not-started {
    background: radial-gradient(circle at 35% 35%, rgba(130, 130, 130, 0.4) 0%, rgba(40, 40, 40, 0.5) 70%, rgba(10, 10, 10, 0.6) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.2), 0 0 4px rgba(255, 255, 255, 0.05);
}

.status-working {
    background: radial-gradient(circle at 35% 35%, rgba(255, 230, 128, 0.45) 0%, rgba(255, 157, 0, 0.35) 60%, rgba(140, 80, 0, 0.45) 100%);
    box-shadow: 0 4px 15px rgba(255, 157, 0, 0.25), inset 0 -2px 5px rgba(0, 0, 0, 0.4), inset 0 2px 6px rgba(255, 230, 128, 0.3), 0 0 8px rgba(255, 217, 0, 0.15);
    border-color: rgba(255, 180, 50, 0.45);
}

.status-done {
    background: radial-gradient(circle at 35% 35%, rgba(163, 255, 223, 0.45) 0%, rgba(0, 230, 118, 0.35) 60%, rgba(0, 100, 40, 0.45) 100%);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25), inset 0 -2px 5px rgba(0, 0, 0, 0.4), inset 0 2px 6px rgba(163, 255, 223, 0.3), 0 0 8px rgba(0, 255, 140, 0.15);
    border-color: rgba(50, 255, 150, 0.45);
}

.project-title-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-basis: 100%;
}

.project-main-title {
    font-size: 4.8rem;
    line-height: 1;
    font-weight: 400;
    color: white;
    letter-spacing: -1px;
}

.project-description {
    font-size: 1.2rem;
    color: #aaaaaa;
    line-height: 1.5;
    max-width: 600px;
}

.section {
    scroll-margin-top: 160px;
}

.section h2 {
    font-size: 2.5rem;
    color: #ff5c5c;
    margin-bottom: 20px;
    font-weight: 400;
}

.section p {
    font-size: 1.3rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 900px;
}

.section img {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.timeline-container {
    position: fixed;
    right: 0;
    top: 0;
    width: 50vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 80px;
    user-select: none;
    z-index: 50;
}

.timeline-wrapper {
    position: relative;
    height: 75vh;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    padding-right: 10px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.timeline-line {
    position: absolute;
    right: 10px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.timeline-progress {
    position: absolute;
    right: 10px;
    top: 0;
    width: 2px;
    height: 0%;
    background: #ff5c5c;
    box-shadow: 0 0 10px #ff5c5c;
}

.timeline-nodes {
    position: absolute;
    right: 6px;
    top: 10%;
    width: 10px;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.node {
    width: 10px;
    height: 10px;
    background: #000000;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s, transform 0.3s;
}

.node.active,
.node.passed {
    border-color: #ff5c5c;
    background: #ff5c5c;
}

.node.active {
    transform: scale(1.3);
    box-shadow: 0 0 8px #ff5c5c;
}

.node-date {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    transition: color 0.3s;
}

.node.active .node-date,
.node.passed .node-date {
    color: rgba(255, 255, 255, 0.8);
}

.timeline-hover-label {
    position: absolute;
    right: 180px;
    color: #ff5c5c;
    font-size: 1.4rem;
    text-align: right;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    transform: translateY(-50%);
    z-index: 60;
}

.timeline-wrapper:hover .timeline-hover-label {
    opacity: 1;
}

@media (min-width: 1600px) {
    .content-container {
        width: 60vw;
        padding-left: 100px;
    }

    .timeline-container {
        width: 40vw;
    }
}

@media (max-width: 1200px) {
    .content-container {
        width: 45vw;
        padding-left: 30px;
        padding-right: 30px;
    }

    .timeline-container {
        width: 55vw;
        padding-right: 40px;
    }

    .project-main-title {
        font-size: 3.8rem;
    }
}

@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    .header-mask {
        height: 90px;
    }

    .back-dashboard {
        top: 20px;
        left: 20px;
        font-size: 1rem;
    }

    .content-container {
        width: 100vw;
        padding: 110px 20px 60px 20px;
        gap: 60px;
    }

    .project-main-title {
        font-size: 3.2rem;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .section p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .timeline-container {
        display: none;
    }
}