/* ===== Base ===== */
html,
body {
    margin: 0;
    /* background-color: #3b0c0c; */
    font-family: sans-serif;
    /* color: white; */
    font-family: 'Libre Baskerville';
    /* font-style: italic; */
}


.main-bg .bg {
    background: url("bg/bg.jpg") center / cover no-repeat;
    filter: brightness(0.75) contrast(1.2);
}

.about-bg .bg {
    background-color: #075B44;
}

.work-bg .bg {
    background-color: #07485B;
}

.collab-bg .bg {
    background-color: #071E5B;
}
/* ===== Background Image ===== */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140%;
    /* background: url('bg/bg.jpg') center / cover no-repeat; */
    z-index: 0;
    inset: 0;
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
}

.generic-bg {
    position: fixed;
    top: 0;
    background-color: #DBA507;
    left: 0;
    width: 100%;
    height: 125%;
    z-index: 0;
    filter: brightness(0.33);
    transition: opacity 0.1s linear;
}

.page-content {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.fade-overlay {
    position: fixed;
    inset: 0;
    background-color: #071E5B; /* or whatever your page bg color is */
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

/* ===== Main Title ===== */
.nameHeader {
    position: relative;
    align-items: flex-start;
    max-height: 3rem;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 1);
    transition: transform 0.3s, color 0.3s;
}

.nameHeader img {
    height: auto;
    width: 15rem;
    margin-top: -10px;
}

.nameHeader:hover {
    color: #3b0c0c;
    /* transform: scale(1.05); */
}

#p5-bg {
    position: absolute;
    inset: 0;
    /* shorthand for top:0; left:0; right:0; bottom:0 */
    z-index: 0;
    pointer-events: none;
    /* allows clicks to pass through */
}

.gifWrapper {
    /* or fixed height if needed */
    overflow: hidden;
    /*   THIS creates the crop */
}

.gifWrapper img {
    width: 13rem;
    height: auto;
    /* border-radius: 18px; */
}


/* For the Youtube Embed*/
.video-wrapper {
    position: relative;
    z-index: 1;
    padding: 1rem 100px 2rem 100px;
    display: flex;
    justify-content: center;
}

.video-wrapper iframe {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    /* modern responsive method */
    border-radius: 12px;
}

/* for the Soundcloud stuff*/
.player-wrapper {
    position: relative;
    z-index: 1;
    padding: 1rem 0px 5px 0px;
    display: flex;
    justify-content: center;
}

.player-wrapper iframe {
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
}


/* ===== Header Navigation ===== */
header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 20px 50px;
    /* font-size: 16px; */
}

header img {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.header-link {
    color: #0D6986;
    background-color: rgba(255, 0, 0, 0);
    /* border-radius: 12px; */
    font-size: 18px;
    text-decoration: none;
    /* text-decoration: ; */
    transition: transform 0.3s, color 0.3s;
}

.header-link:hover {
    /* color: #DBA507; */
    /* background-color: #DBA507; */
    transform: scale(1.05);
}

/* ========Collab Section=====*/
.collabs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* flex-direction: column; */
    gap: 20px;
    padding: 6px 100px;
}

.collab-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 220px; */
    min-height: 220px;
    height: auto;
    max-width: 100%;
    min-width: 0;
    /* padding-left: 40px; */
    text-decoration: none;
    color: white;
    /* overflow: hidden; */
    border-radius: 12px;
}

/* Background image */
.collab-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    /* darkens image for readability */
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 0;
}

.collab-item:hover::before {
    transform: scale(1.05);
    filter: brightness(0.75);
}

/* Text above image */
.collab-item h2 {
    position: relative;
    z-index: 1;
    /* font-size: 32px; */
    font-size: clamp(8px,3vw,32px);
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: 1px;
}

.collab-item:nth-child(1)::before {
    background-image: url("logos/fronteira_logo.jpg");
}

.collab-item:nth-child(2)::before {
    background-image: url("logos/sopa_logo.jpg");
}

.collab-item:nth-child(3)::before {
    background-image: url("logos/quixote_logo.jpg");
}

.collab-item:nth-child(4)::before {
    background-image: url("logos/cabare_logo.png");
}

.collab-item:nth-child(5)::before {
    background-image: url("logos/amor_logo.png");
}

.collab-item:nth-child(6)::before {
    background-image: url("logos/sonho_logo.jpg");
}

.collab-item:nth-child(7)::before {
    background-image: url("logos/ophelia_logo.jpg");
}


.collab-description {
    position: relative;
    z-index: 1;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* justify-content: space-between; */
    /* align-items: center; */
    padding: 1rem 10rem;
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}

.collab-description>div {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.collab-description>div.visible {
    opacity: 1;
    transform: translateY(0);
}

.collab-image {
    grid-column: 1 / -1;
    /* display: flex; */

    /* flex-direction: column; */
    /* justify-content: center; */
    /* align-items: center; */

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.collab-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.collab-image img:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    /* span full width */
    justify-self: center;
    /* center the item */
}

.collab-image img.visible {
    opacity: 1;
    transform: translateY(0);
}




/* ====== Work Section =======*/
.works {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* flex-direction: column; */
    gap: 20px;
    padding: 6px 100px;
}

.work-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 220px; */
    min-height: 220px;
    height: auto;
    max-width: 100%;
    min-width: 0;
    /* padding-left: 40px; */
    text-decoration: none;
    color: white;
    /* overflow: hidden; */
    border-radius: 12px;
}

/* Background image */
.work-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    /* darkens image for readability */
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 0;
}

/* Text above image */
.work-item h2 {
    position: relative;
    z-index: 1;
    /* font-size: 32px; */
    font-size: clamp(8px,3vw,32px);
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: 1px;
}

.work-item:nth-child(1)::before {
    background-image: url("logos/caim.jpg");
}

.work-item:nth-child(2)::before {
    background-image: url("logos/necrovisage.jpg");
}

.work-item:nth-child(3)::before {
    background-image: url("logos/ecolalia.png");
}

.work-item:nth-child(4)::before {
    background-image: url("logos/quarto.jpg");
}

.work-item:nth-child(5)::before {
    background-image: url("bagatelas/BAGATELAS0004.jpg");
}

.work-item:nth-child(6)::before {
    background-image: url("logos/sons_logo.png");
}

.work-item:nth-child(7)::before {
    background-image: url("logos/ultimas_logo.jpg");
}

.work-item:nth-child(8)::before {
    background-image: url("passos/passos\ \(3\).jpg");
}

.work-item::before {
    transition: transform 0.5s ease;
}

.work-item:hover::before {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.work-description {
    position: relative;
    z-index: 1;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* justify-content: space-between; */
    /* align-items: center; */
    padding: 1rem 10rem;
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}

.work-description>div {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.work-description>div.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-image {
    grid-column: 1 / -1;
    /* display: flex; */

    /* flex-direction: column; */
    /* justify-content: center; */
    /* align-items: center; */

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.work-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.work-image img:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    /* span full width */
    justify-self: center;
    /* center the item */
}

.work-image img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== About Section ===== */
.about {
    position: relative;
    z-index: 1;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 100px;
    gap: 80px;
    margin-top: 0px;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    font-size: 18px;
}

.about-text p {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}

.about-image {
    flex: 1;
    text-align: right;
}

.about-image img {
    width: 360px;
    height: auto;
    border-radius: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .about-image {
        text-align: center;
    }

    .about-text p {
        /* text-align: left; */
        text-align: justify;
    }

    .works {
        grid-template-columns: 1fr;
    }

    .work-description {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .work-image {
        grid-template-columns: 1fr;
        /* single column on small screens */
    }

    .collabs {
        grid-template-columns: 1fr;
    }

    .collab-description {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .collab-image {
        grid-template-columns: 1fr;
        /* single column on small screens */
    }
}

/* @media (max-width: 768px) {
  header img {
    max-width: 80px;
  }
} */


.main-wrapper {
    min-height: 60vh;
}

.site-footer {
    text-align: center;
    position: relative;
    font-size: 0.85rem;
    color: #ffffff;
    /* padding: 15px 0; */
    margin-top: 1rem;
    z-index: 10;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #DBA507;
}