/* ---------- SPECIFIC PROJECT PAGE ---------- */

body,
main {
    margin: 0;
    padding-top: 0;
}

/* ---------- TOP BAR (specififc porject) ---------- */

.header-wrapper {
    position: relative;
    height: auto;
}

.header-container {
    width: 100%;
    height: auto;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: height 0.6s ease;

    position: relative;
    bottom: 0;
    left: 0;

    z-index: 99;
}


/* --- TOP BAR --- */

.topbar.not-index {
    position: absolute;

    width: 100%;
    height: auto;

    padding: var(--half-margin) var(--margin);

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    overflow: hidden;

    transition:
        height 0.6s ease,
        padding 0.6s ease,
        background-color 0.4s ease;

    z-index: 5;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topbar.not-index .col {
    justify-content: flex-start;
}


/* -- left column -- */

.topbar .col:first-child {
    flex: 0 0 40%;
    justify-content: flex-start;
    align-items: start;
}

.logo-not-index {
    height: 50px;
    width: auto;
    object-fit: contain;

    transform: scale(1);
    opacity: 1;

    transform-origin: center;

    transition:
        height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
}


/* -- center column -- */

.topbar .col:nth-child(2) {
    flex: 1;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
}

.col.center-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lang-selector {
    display: flex;
    align-items: center;
}

.lang-selector a {
    text-decoration: none;
    margin: 0 5px;

    font-size: var(--topbar-font-size);
    color: white;

    opacity: var(--opacity-value);
    transition: color var(--opacity-value);

    cursor: pointer;
}

.lang-selector a.active {
    opacity: 1;
}

.lang-selector .separator {
    display: inline-block;
    margin: 0 3px;

    font-size: var(--topbar-font-size);
    color: white;

    opacity: var(--opacity-value);
    transition: transform 0.6s ease, color 0.4s ease;

    pointer-events: none;
}

.topbar.not-index .lang-selector {
    transition:
        opacity 0.4s ease,
        transform 0.6s ease;
}


/* -- right column -- */

.topbar .col:last-child {
    flex: 1;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

.topbar button {
    background: none;
    border: none;

    font-family: 'Switzer-Medium';
    font-size: var(--topbar-font-size);
    color: white;

    cursor: pointer;

    transition:
        font-size 0.6s cubic-bezier(.19, 1, .22, 1),
        color 0.4s ease;
}


/* ---------- MAIN CONTENT TRANSITIONS/ANIMATIONS WITH MENU OPENING AND CLOSING ---------- */

main {
    padding: 0 var(--margin) var(--margin) var(--margin);

    position: relative;
    height: auto;

    transform: translateY(0);

    transition:
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        padding-top 0.9s cubic-bezier(.19, 1, .22, 1),
        opacity 0.6s ease;

    will-change: transform, opacity, padding-top;

    z-index: 0;
}

body.menu-aberto main {
    transition:
        transform 10s cubic-bezier(0.22, 1, 0.36, 1);
}


/* MENU OPEN */

body.menu-aberto main {
    transform: translateY(80vh);
}


/* --- SECTION 1 - HERO LANDING --- */

.project-hero {
    position: relative;
    height: 100dvh;
    width: 100vw;

    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    margin-top: 0;
    overflow: hidden;
}

.project-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
    z-index: 0;
}

.project-hero.fade {
    opacity: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: opacity 1s ease;
}

.bg1 {
    z-index: 0;
    opacity: 1;
}

.bg2 {
    z-index: 0;
    opacity: 0;
}


/* corner nav options */

.corner-nav {
    position: absolute;

    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;

    display: flex;
    flex-direction: column;

    bottom: var(--margin);
    right: var(--margin);
}

.corner-nav a {
    text-decoration: none;
    display: inline-block;

    font-size: var(--topbar-font-size);
    color: white;

    opacity: var(--opacity-value);

    transform-origin: right center;
    transition: transform 0.3s ease, opacity 0.3s ease;

    font-family: 'Switzer-Medium';
}

.corner-nav a:hover {
    opacity: 1;
    transform: scale(1.3);
}


/* --- SECTION 2 - INFO --- */

#images {
    scroll-margin-top: 40px;
}

.project-info {
    display: flex;
    justify-content: space-between;

    padding: var(--twothird-margin) 0;
    gap: var(--margin);

    font-family: 'Switzer-Medium';
}

.info-blocks {
    display: flex;
    flex-direction: column;

    gap: var(--half-margin);
}

.info-item span {
    font-size: var(--main-font-size);
    opacity: var(--opacity-value);
}

.info-item p {
    font-size: var(--main-font-size);
}

.info-description {
    max-width: 600px;
}


/* -- project imgs --- */

.project-images {
    display: flex;
    flex-direction: column;

    gap: var(--half-margin);
}

.project-images img {
    width: 60%;
}

.project-images img:nth-child(even) {
    align-self: flex-end;
}