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

html {
    scroll-behavior: smooth;
}

body {
    background: white;
    font-family: 'Helvetica Neue', sans-serif;
    color: black;
}

/* MENU */
.menu {
    position: fixed;
    top: 30px;
    right: 50px;
    display: flex;
    gap: 30px;
    z-index: 200;
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.menu a:hover {
    opacity: 0.5;
}

/* INTRO */
.intro {
    position: absolute;
    top: 100px;
    left: 50px;
}

.intro h1 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
}

.intro span {
    display: block;
    white-space: nowrap;
}

/* HOMEPAGE GRID */
.projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 250px 50px 50px 50px;
}

.project {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.project img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hover overlay */
.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255,255,255,0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.project:hover::after {
    background-color: rgba(255,255,255,0.3);
}

/* PROJECT PAGE BASE */
.project-page {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    padding: 100px 50px;
    overflow-y: auto;
    z-index: 100;
}

.back-btn {
    position: fixed;
    top: 40px;
    left: 50px;
    font-size: 28px;
    cursor: pointer;
}

/* PROJECT TOP */
.project-top {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 80px;
}

.project-text h2 {
    font-size: 28px;
    font-weight: 600;
}

.project-text p {
    font-size: 16px;
    font-weight: 300;
}

.desc-text {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    max-width: 500px;
    margin-top: 40px;
}

/* AROMÁTICAS */
.aromaticas-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    gap: 20px;
    justify-content: center;
    margin-bottom: 120px;
}

.aromaticas-grid img,
.aromaticas-grid .slideshow {
    width: 350px;
    height: 450px;
    object-fit: cover;
}

/* SLIDESHOW */
.slideshow {
    position: relative;
    width: 350px;
    height: 450px;
}

.slide {
    position: absolute;
    width: 350px;
    height: 450px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

/* NORTADA / CHRISTMAS COOKIE */
.nortada-grid,
.christmas-cookie-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    gap: 20px;
    justify-content: center;
    margin-bottom: 120px;
}

.nortada-grid img,
.christmas-cookie-grid img {
    width: 350px;
    height: 450px;
    object-fit: cover;
}

/* POSTCARD */
.postcard-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 120px;
}

.postcard-grid .left-col img {
    width: 495px;
    height: auto;
}

.postcard-grid .right-col {
    display: flex;
    flex-direction: column;
    height: 702px;
    gap: 20px;
}

.postcard-grid .right-col img.top-img,
.postcard-grid .right-col img.bottom-img {
    width: 520px;
    height: auto;
}

.postcard-grid .right-col img.bottom-img {
    margin-top: auto;
}

/* ABOUT */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-title h2 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 350px 1fr;
    align-items: end;
    gap: 60px;
}

.about-image img {
    width: 350px;
    height: 450px;
    object-fit: cover;
}

/* Texto do About */
.about-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
}

.left-text {
    align-self: start;
}

.right-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cv-link {
    text-decoration: none;
    color: black;
    font-weight: 600;
    font-size: 26px;
    transition: opacity 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.cv-link:hover {
    opacity: 0.5;
}

.right-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
}

/* PROJECT 5 GRID */
.project5-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    gap: 20px;
    justify-content: center;
    margin-bottom: 120px;
}

.project5-grid img {
    width: 350px;
    height: 450px;
    object-fit: cover;
}

.project5-grid img.horizontal {
    width: 1145px;
    height: 390px;
    object-fit: cover;
    grid-column: span 3;
}

.project5-grid img:nth-child(4) {
    width: 370px;
    height: 475px;
    object-fit: cover;
}

/* PROJECT 6 GRID */
.project6-grid img {
    object-fit: cover;
}

/* PROJECT 7 GRID */
.project7-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
    margin-bottom: 120px;
}

.project7-grid img:nth-child(1),
.project7-grid img:nth-child(2),
.project7-grid img:nth-child(3) {
    width: 350px;
    height: 450px;
    object-fit: cover;
}

.project7-grid img:nth-child(4) {
    width: 585px;
    height: 370px;
    object-fit: cover;
    grid-column: span 2;
}

/* PROJECT 8 GRID */
.project8-grid {
    display: grid;
    grid-template-columns: 350px 755px;
    gap: 20px;
    justify-content: center;
    margin-bottom: 120px;
}

.project8-grid img.vertical {
    width: 350px;
    height: 637px;
    object-fit: cover;
}

.project8-grid img.horizontal {
    width: 755px;
    height: 637px;
    object-fit: cover;
}

/* RESPONSIVE */
@media screen and (max-width: 1200px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
    .project7-grid {
        grid-template-columns: 1fr;
    }
    .project7-grid img:nth-child(4) {
        width: 100%;
        height: auto;
        grid-column: auto;
    }
    .postcard-grid {
        flex-direction: column;
        align-items: center;
    }
    .postcard-grid .right-col {
        flex-direction: column;
        height: auto;
    }
    .postcard-grid .right-col img {
        width: 100%;
        height: auto;
    }
    .project8-grid {
        grid-template-columns: 1fr;
    }
    .project8-grid img.vertical,
    .project8-grid img.horizontal {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 600px) {
    .intro h1 {
        font-size: 24px;
    }
    .menu {
        top: 20px;
        right: 20px;
        gap: 20px;
    }
    .project-top {
        flex-direction: column;
        gap: 40px;
    }
    .desc-text {
        max-width: 100%;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-image img {
        width: 100%;
        height: auto;
    }
}