/* ========================
   PROJECT PAGE
   Image first, label underneath
   ======================== */

.project-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    animation: pageEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image — fills from below nav to near bottom */
.project-image-wrapper {
    position: absolute;
    top: 45px;
    left: 13px;
    width: 83.47%;
    max-width: 962px;
    bottom: 40px;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.project-image.active {
    opacity: 1;
    visibility: visible;
}

.project-image.slide-in {
    opacity: 1;
    visibility: visible;
}

/* Pagination dots — glass pill, bottom-left of image */
.project-dots-wrapper {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.project-dots {
    display: flex;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
}

/* Dot is a button so it gets keyboard focus + tap-target padding for free. */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dot.active { background: rgba(255, 255, 255, 0.95); }
.dot:hover { background: rgba(255, 255, 255, 0.65); }
.dot:focus-visible {
    outline: 1.5px solid currentColor;
    outline-offset: 3px;
}

/* Footer — label left, next project right, one line below image */
.project-footer {
    position: absolute;
    bottom: 13px;
    left: 13px;
    right: 13px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.project-label {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.144;
    letter-spacing: 0;
    color: var(--secondary);
}

.next-project {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.144;
    letter-spacing: 0;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.next-project:hover { color: var(--primary); }

/* ========================
   MOBILE
   ======================== */

@media (max-width: 768px) {

    .project-image-wrapper {
        top: 40px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        bottom: 35px;
    }

    .project-footer {
        bottom: 10px;
        left: 12px;
        right: 12px;
    }

    .project-label,
    .next-project {
        font-size: 10px;
    }

    .project-dots-wrapper {
        bottom: 8px;
        left: 8px;
    }

    /* Bigger dots on mobile — 6px was too small to reliably tap. */
    .dot {
        width: 12px;
        height: 12px;
    }

    .project-dots {
        gap: 6px;
        padding: 7px 9px;
        border-radius: 14px;
    }
}
