@import "../base.css";

#landing-container {
    width: 100%;
}

#landing-container.hide {
    display: none;
}

#landing {
    height: 45vw;
    background: linear-gradient(
            rgba(41, 40, 39, 0.4),
            rgba(58, 57, 56, 0.3),
            rgba(49, 48, 47, 0.2),
            rgba(48, 46, 45, 0.1)
        ),
        url("../../images/homepages-firstphoto.png") no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#landing h5 {
    font-size: 2.5vw;
    font-weight: 700;
    color: var(--bg);
}

#landing p {
    font-size: 2vw;
    font-weight: 300;
    color: var(--bg);
    margin-top: 1%;
}

#about {
    height: 45vw;
    width: 100%;
    margin-top: 5%;
    display: flex;
}

#about .text {
    width: 40%;
    height: 100%;
    padding: 3% 5%;
    color: var(--main);
}

#about .text h2 {
    font-size: 4vw;
    font-weight: 700;
}

#about .text p {
    font-size: 1.5vw;
    margin: 10% 0%;
    font-weight: 300;
    width: 100%;
    line-height: 1.3;
}

#about .text a {
    width: 25vw;
    padding: 2% 10%;
    border-radius: 0.5vw;
    border: 2px solid var(--main);
    background: var(--main);
    color: var(--bg);
    transition: all 0.2s ease-in-out;
    text-align: center;
    text-decoration: none;
    font-size: 2vw;
}

#about .text a:hover {
    color: var(--main);
    background: var(--bg);
    cursor: pointer;
}

#about .image {
    width: 70%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about .image .image-container {
    width: 80%;
    height: 80%;
    background: url("../../images/about/about-1.webp");
    background-size: 100%;
    background-repeat: no-repeat;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#projects {
    height: 55vw;
    width: 100%;

    margin-top: 5%;

    border-top: 4px solid var(--main);
}

#projects .title {
    width: 100%;
    background: none;
    display: flex;
    justify-content: center;

    position: relative;
    bottom: 2.5vw;
}

#projects .title h2 {
    background-color: var(--bg);
    width: 40%;
    text-align: center;
    color: var(--main);
    font-size: 4vw;
}

#projects .items {
    width: 100%;
    height: 100%;

    margin-top: 5%;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#projects .items .item {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
}

#projects .items .item .image {
    width: 100%;
    height: 50%;
}

#projects .items .item .image img {
    width: 100%;
    height: 100%;

    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#projects .items .item .text {
    width: 100%;
    height: 50%;

    color: var(--main);
    font-size: 0.7vw;

    padding: 10%;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#projects .items .item .text h2 {
    font-weight: 400;
}

#projects .items .item-reverse {
    flex-direction: column-reverse;
}

#news {
    width: 100%;
    margin: 25% 0 10% 0;
    border-top: 4px solid var(--main);
}

#news .title {
    width: 100%;
    background: none;
    display: flex;
    justify-content: center;

    position: relative;
    bottom: 2.5vw;
}

#news .title h2 {
    background-color: var(--bg);
    width: 80%;
    text-align: center;
    color: var(--main);
    font-size: 2vw;
}

#news p {
    margin-bottom: 5%;
    text-align: center;

    color: var(--main);
    font-size: 2vw;
}

#news .items {
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#news .items .item {
    width: 30%;
    padding: 20px;
    border: 1px solid var(--main);
    display: flex;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    flex-direction: column;
}

#news .items .item .image {
    display: flex;
    justify-content: center;
}

#news .items .item .image img {
    width: 80%;
    display: flex;
}

#news .items .item .text {
    width: 100%;
    height: 50%;

    color: var(--main);
    font-size: 1vw;

    padding-top: 1%;
}

#news .items .item .text h6 {
    font-size: 0.9vw;
    margin: 2% 0%;
    font-weight: 210;
    color: rgba(97, 58, 58, 0.637);
}

@media screen and (max-width: 900px) {
    #landing {
        height: 50vw;
    }

    #landing h5 {
        font-size: 4vw;
        width: 90%;
        text-align: center;
    }

    #landing p {
        font-size: 2.5vw;
        text-align: center;
        margin-top: 5%;
    }

    #about {
        margin-top: 5%;
        display: flex;
        flex-direction: column;
        height: 110vw;
    }

    #about .text {
        width: 100%;
        height: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #about .text h2 {
        font-size: 4vw;
        text-align: center;
    }

    #about .text p {
        font-size: 3vw;
        text-align: center;
        margin: 3% 0% 5% 0%;
        width: 90%;
        line-height: 1.6;
    }

    #about .text a {
        font-size: 3vw;
        width: 30%;
    }

    #about .image {
        width: 100%;
        height: 40%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 5% 0%;
    }

    #about .image .image-container {
        width: 70%;
        height: 100%;
        background: url("../../images/about/about-1.webp");
        background-size: 100%;
        background-repeat: no-repeat;
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }

    #projects {
        height: 150vw;
        width: 100%;
        margin-top: 15%;
        border-top: 4px solid var(--main);
    }

    #projects .items {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }

    #projects .items .item {
        width: 90%;
        height: 30%;
        /* margin: 5% 0%; */
        display: flex;
        flex-direction: row;
    }

    #projects .items .item .image,
    #projects .items .item .text {
        width: 50%;
        height: 100%;
    }

    #projects .items .item .text {
        padding: 0% 2%;
    }

    #projects .items .item .image img {
        width: 100%;
        height: 100%;
    }

    #projects .items .item .text h2 {
        font-size: 2.5vw;
        font-weight: 400;
        width: 100%;
    }

    #projects .items .item-reverse {
        flex-direction: row-reverse;
    }

    #news p {
        font-size: 3vw;
    }

    #news .title h2 {
        font-size: 3.5vw;
    }

    #news {
        width: 100%;
        margin: 30% 0 10% 0;
        border-top: 4px solid var(--main);
        height: 365vw;
    }

    #news .items {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    #news .items .item {
        width: 80%;
        margin: 5% 0%;
    }

    #news .items .item h2 {
        font-size: 4vw;
    }

    #news .items .item .text h6 {
        font-size: 3vw;
        font-weight: 400;
    }

    #news .items .item {
        display: flex;
        flex-wrap: wrap;
    }
}
