/* =========================================================
   ARDANARX
   PROJECT PAGE
   SAME NAVBAR SYSTEM AS HOME
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

   :root {
    --bg: #ffffff;
    --bg-soft: #f7f7f5;

    --text: #111111;
    --text-soft: #666666;

    --border: #e7e7e7;

    /* Sama seperti Home */
    --nav-bg: rgba(255, 255, 255, 0.94);

    --toggle-track: #dedede;
    --toggle-dot: #ffffff;

    --max-width: 960px;
    --content-width: 690px;

    --serif: "DM Serif Display", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;

    --ease: 0.3s ease;
}


/* =========================================================
   2. DARK MODE
   ========================================================= */

html.dark-mode {
    --bg: #111111;
    --bg-soft: #181818;

    --text: #f2f2f2;
    --text-soft: #a5a5a5;

    --border: #292929;

    /* Sama seperti Home */
    --nav-bg: rgba(25, 25, 25, 0.94);

    --toggle-track: #3b3b3b;
    --toggle-dot: #f1f1f1;
}


/* =========================================================
   3. RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;

    background: var(--bg);
}


body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family: var(--sans);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.7;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    transition:
        background-color var(--ease),
        color var(--ease);
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font-family: inherit;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.site-header {
    position: relative;

    width: 100%;

    z-index: 1000;
}


/* =========================================================
   5. PROJECT NAVBAR
   SAMA DENGAN NAVBAR HOME
   ========================================================= */

.project-topbar {
    position: fixed;

    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10000;

    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    height: 58px;

    padding: 0 13px 0 25px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: var(--nav-bg);

    border: 1px solid var(--border);

    border-radius: 999px;

    box-shadow:
        0 7px 24px rgba(0, 0, 0, 0.045);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        background-color var(--ease),
        border-color var(--ease),
        box-shadow var(--ease);
}


/* =========================================================
   6. BACK BUTTON
   ========================================================= */

.back-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    height: 40px;

    padding: 0;

    color: var(--text);

    font-size: 14px;

    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}


.back-button:hover {
    opacity: 0.65;

    transform: translateX(-2px);
}


.back-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    font-size: 18px;

    line-height: 1;

    transform: translateY(-1px);
}


/* =========================================================
   7. NAV RIGHT
   SAMA DENGAN HOME
   ========================================================= */

.project-topbar .nav-right {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-left: auto;
}


/* =========================================================
   8. DARK MODE TOGGLE
   SAMA PERSIS DENGAN HOME
   ========================================================= */

.theme-toggle {
    width: 32px;
    height: 30px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    flex-shrink: 0;

    -webkit-tap-highlight-color: transparent;
}


.theme-track {
    position: relative;

    width: 25px;
    height: 14px;

    display: block;

    border-radius: 999px;

    background: var(--toggle-track);

    transition:
        background-color 0.3s ease;
}


.theme-dot {
    position: absolute;

    top: 3px;
    left: 3px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--toggle-dot);

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}


html.dark-mode .theme-dot {
    transform: translateX(11px);
}


/* =========================================================
   9. PROJECT INTRO
   ========================================================= */

.project-intro {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );

    margin: 0 auto;

    padding-top: 170px;

    padding-bottom: 82px;
}


/* =========================================================
   10. EYEBROW
   ========================================================= */

.eyebrow {
    margin-bottom: 23px;

    color: var(--text-soft);

    font-size: 12px;

    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.12em;
}


/* =========================================================
   11. PROJECT TITLE
   ========================================================= */

.project-intro h1 {
    max-width: 650px;

    font-family: var(--serif);

    font-size: clamp(
        55px,
        6vw,
        68px
    );

    font-weight: 400;

    line-height: 0.99;

    letter-spacing: -1.8px;

    color: var(--text);
}


/* =========================================================
   12. DESCRIPTION
   ========================================================= */

.intro-description {
    max-width: 590px;

    margin-top: 31px;

    color: var(--text-soft);

    font-size: 16px;

    font-weight: 400;

    line-height: 1.72;

    letter-spacing: -0.05px;
}


/* =========================================================
   13. PROJECT LIST
   ========================================================= */

.project-list {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );

    margin: 0 auto;

    border-top: 1px solid var(--border);
}


/* =========================================================
   14. PROJECT ITEM
   ========================================================= */

.project-item {
    min-height: 116px;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr)
        24px;

    align-items: center;

    column-gap: 17px;

    border-bottom: 1px solid var(--border);

    color: var(--text);

    transition:
        padding-left 0.25s ease;
}


.project-item:hover {
    padding-left: 5px;
}


/* =========================================================
   15. NUMBER
   ========================================================= */

.project-number {
    color: var(--text-soft);

    font-size: 12px;

    font-weight: 500;

    line-height: 1;
}


/* =========================================================
   16. PROJECT INFO
   ========================================================= */

.project-info {
    min-width: 0;
}


.project-info h2 {
    margin: 0;

    font-family: var(--serif);

    color: var(--text);

    font-size: 30px;

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -0.65px;
}


.project-info p {
    margin-top: 7px;

    color: var(--text-soft);

    font-size: 13px;

    font-weight: 400;

    line-height: 1.5;
}


/* =========================================================
   17. ARROW
   ========================================================= */

.project-arrow {
    color: var(--text);

    font-size: 18px;

    line-height: 1;

    text-align: right;

    transition:
        transform 0.25s ease;
}


.project-item:hover .project-arrow {
    transform:
        translate(3px, -3px);
}


/* =========================================================
   18. END
   ========================================================= */

.project-end {
    width: min(
        calc(100% - 48px),
        var(--content-width)
    );

    margin: 0 auto;

    padding:
        70px 0
        100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    color: var(--text-soft);
}


.project-end span {
    margin-bottom: 8px;

    font-size: 18px;

    line-height: 1;
}


.project-end p {
    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   19. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .project-topbar {
        width: calc(100% - 40px);
    }


    .project-topbar .nav-right {
        gap: 10px;
    }


    .project-intro {
        width: calc(100% - 48px);

        padding-top: 165px;
    }


    .project-intro h1 {
        font-size: 60px;

        letter-spacing: -1.6px;
    }


    .project-list {
        width: calc(100% - 48px);
    }


    .project-end {
        width: calc(100% - 48px);
    }

}


/* =========================================================
   20. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 90px;
    }


    /* -----------------------------------------------------
       NAVBAR
       SAMA DENGAN HOME
    ----------------------------------------------------- */

    .project-topbar {
        top: 16px;

        width: calc(100% - 36px);

        height: 56px;

        padding:
            0 7px 0 18px;
    }


    .project-topbar .nav-right {
        gap: 2px;
    }


    .back-button {
        height: 40px;

        gap: 8px;

        font-size: 14px;
    }


    .back-arrow {
        font-size: 19px;
    }


    /* -----------------------------------------------------
       TOGGLE
    ----------------------------------------------------- */

    .theme-toggle {
        width: 32px;
        height: 32px;
    }


    .theme-track {
        width: 25px;
        height: 14px;
    }


    .theme-dot {
        top: 3px;
        left: 3px;

        width: 8px;
        height: 8px;
    }


    html.dark-mode .theme-dot {
        transform: translateX(11px);
    }


    /* -----------------------------------------------------
       INTRO
    ----------------------------------------------------- */

    .project-intro {
        width: calc(100% - 44px);

        padding-top: 137px;

        padding-bottom: 62px;
    }


    .eyebrow {
        margin-bottom: 21px;

        font-size: 11px;

        letter-spacing: 0.11em;
    }


    .project-intro h1 {
        max-width: 100%;

        font-size: 46px;

        line-height: 0.99;

        letter-spacing: -1.35px;
    }


    .intro-description {
        max-width: 100%;

        margin-top: 29px;

        font-size: 15px;

        line-height: 1.72;
    }


    /* -----------------------------------------------------
       PROJECT LIST
    ----------------------------------------------------- */

    .project-list {
        width: calc(100% - 44px);
    }


    .project-item {
        min-height: 104px;

        grid-template-columns:
            28px
            minmax(0, 1fr)
            22px;

        column-gap: 12px;
    }


    .project-item:hover {
        padding-left: 4px;
    }


    .project-number {
        font-size: 11px;
    }


    .project-info h2 {
        font-size: 27px;

        letter-spacing: -0.55px;
    }


    .project-info p {
        margin-top: 6px;

        font-size: 12px;

        line-height: 1.5;
    }


    .project-arrow {
        font-size: 17px;
    }


    /* -----------------------------------------------------
       END
    ----------------------------------------------------- */

    .project-end {
        width: calc(100% - 44px);

        padding:
            62px 0
            82px;
    }

}


/* =========================================================
   21. SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .project-topbar {
        top: 14px;

        width: calc(100% - 32px);

        height: 54px;

        padding:
            0 6px 0 18px;
    }


    .project-topbar .nav-right {
        gap: 2px;
    }


    .back-button {
        font-size: 13.5px;
    }


    .theme-toggle {
        width: 31px;
        height: 31px;
    }


    .theme-track {
        width: 25px;
        height: 14px;
    }


    .theme-dot {
        top: 3px;
        left: 3px;

        width: 8px;
        height: 8px;
    }


    html.dark-mode .theme-dot {
        transform: translateX(11px);
    }


    .project-intro {
        width: calc(100% - 40px);

        padding-top: 130px;

        padding-bottom: 58px;
    }


    .project-intro h1 {
        font-size: 43px;

        letter-spacing: -1.2px;
    }


    .intro-description {
        font-size: 15px;

        line-height: 1.7;
    }


    .project-list {
        width: calc(100% - 40px);
    }


    .project-item {
        min-height: 100px;

        grid-template-columns:
            25px
            minmax(0, 1fr)
            20px;

        column-gap: 11px;
    }


    .project-info h2 {
        font-size: 25px;
    }


    .project-info p {
        font-size: 11.5px;
    }


    .project-arrow {
        font-size: 16px;
    }


    .project-end {
        width: calc(100% - 40px);

        padding-top: 58px;
    }

}


/* =========================================================
   22. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .project-topbar {
        width: calc(100% - 30px);
    }


    .project-intro {
        width: calc(100% - 32px);

        padding-top: 126px;
    }


    .project-intro h1 {
        font-size: 40px;
    }


    .intro-description {
        font-size: 14.5px;
    }


    .project-list {
        width: calc(100% - 32px);
    }


    .project-info h2 {
        font-size: 23px;
    }


    .project-info p {
        font-size: 11px;
    }


    .project-end {
        width: calc(100% - 32px);
    }

}


/* =========================================================
   23. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition: none !important;
    }

}