@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oleo+Script:wght@400;700&display=swap');

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(154, 0, 0);
    color: white;
    padding: 15px 10%;
}

.logo {
    font-size: 34px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: rgb(0, 0, 0);
}


body {
    margin: 0;
    font-family: "Arvo", serif;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 65px;
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.titulo-menor {
    font-size: 44px;
}

.section-red, .section-white, .section-black {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 84vh;
    width: 100%;
}

.section-red {
    background: rgb(154, 0, 0);
    color: white;
    justify-content: center;
    gap: 15%;
}

.section-red .text-container {
    max-width: 50%;
}

.section-red .photo-container img {
    width: 300px;
    height: auto;
    border-radius: 5%;
}

.section-white {
    background: white;
    flex-direction: column;
    gap: 20%;
    height: 66vh;
}

.section-white h2 {
    margin-bottom: 20px;
}

.gallery {
    display: flex;
    gap: 100px;
    align-items: center;
    padding-block-end: 5%;
}

.gallery img {
    width: 92px;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.section-black {
    background: black;
    color: white;
    flex-direction: column;
    text-align: center;
    gap: 10%;
}

.projects {
    display: flex;
    gap: 180px;
}

.project {
    justify-items: center;
    align-items: center;
}

.project img {
    width: 500px;
    height: auto;
    border-radius: 5px;
}

.project h3 {
    margin: 10px 0 5px;
}

.project p {
    max-width: 400px;
}

.img-link {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.img-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    * {
        box-sizing: border-box;
    }

    header {
        text-align: center;
        padding: 15px 5%;
        width: 100%;
        gap: 10px;
        max-width: 100%;
    }

    nav ul {
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
    }

    .section-red, .section-black {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        height: auto;
        padding: 50px 5%;
        width: 100%;
    }

    .section-red .text-container {
        max-width: 100%;
    }

    .section-red .photo-container img {
        width: 250px;
    }

    .section-white {
        height: auto;
        padding: 50px 5%;
        width: 100%;
    }

    .gallery {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .projects {
        flex-direction: column;
        gap: 50px;
        align-items: center;
        width: 100%;
    }

    .project {
        width: 90%;
        text-align: center;
    }

    .project img {
        width: 100%;
        max-width: 500px;
    }

    .project p {
        max-width: 90%;
    }
}

@media (max-width: 768px) {

    header {
        flex-direction: column;

    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 20px;
    }

    .titulo-menor {
        font-size: 28px;
    }

    .section-red {
        gap: 10px;
        padding: 40px 5%;
    }

    .section-red .photo-container img {
        width: 180px;
    }

    .gallery {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .gallery img {
        width: 70px;
    }

    .project img {
        width: 100%;
        max-width: 400px;
    }

    .project p {
        max-width: 100%;
    }
}
