@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Herr+Von+Muellerhoff&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
}

body {
    font-family: 'Poppins', sans-serif;
}

a,
a:link,
a:visited {
    text-decoration: none;
    outline: none;
    border: none;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

section,
span,
p {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
}

.container {
    max-width: 1620px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background-image: url("../images/bg.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
}

.header-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
}

.header-logo {
    font-size: 16px;
    letter-spacing: 2px;
    /* border-bottom: 5px solid black; */
    border-radius: 35px;
    padding-bottom: 5px;
}

ul {
    display: flex;
}

li {
    margin-left: 27px;
}

a {
    /* color: black; */
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1 {
    font-size: 8.5rem;
    font-weight: 100;
    line-height: 0.4;
    letter-spacing: 2px;
    font-family: 'Herr Von Muellerhoff', cursive;
    color: #ffffff;
}

.first-latter {
    font-size: 10.3rem;
    font-family: 'Herr Von Muellerhoff', cursive;
    color: #ffffff;
}

h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.btn-coffee {
    display: block;
    background-color: #a80c48;
    color: white;
    padding: 10px 15px;
    border-top-left-radius: 35px;
    border-bottom-right-radius: 35px;
    overflow: hidden;
    position: relative;
}

.btn-catalog {
    display: block;
    background-color: #a80c48;
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 10px 15px;
    border-top-left-radius: 35px;
    border-bottom-right-radius: 35px;
    overflow: hidden;
    position: relative;
}

/* .btn-coffee:after{
    content: "BUY";
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #a80c48;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
} */

.btn-coffee:hover::after {
    top: 0;
}

/*ABOUT*/

.about {
    margin-bottom: 15px;
}

.about-title {
    margin: 60px 0;
}

.about-title h2 {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    color: #a80c48;
    font-size: 30px;
    font-weight: 600;
}

.about-title h2::after {
    content: "";
    width: 30px;
    height: 3px;
    background-color: #a80c48;
    margin: 10px auto 0 auto;
    display: block;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.about-img {
    width: 45%;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    width: 45%;
}

h4 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 40px;
    color: #a80c48;
    font-family: 'Herr Von Muellerhoff', cursive;
    letter-spacing: 0.5rem;
}

.about-text p {
    font-size: 15px;
    text-align: center;
    color: #2c2727;
}

/* PORTFOLIO */

.portfolio {
    display: flex;
    flex-wrap: wrap;
    margin-top: 100px;
}

.portfolio-item {
    width: 25%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: #a80c48;
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0.8;
    color: white;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.portfolio-item:hover .overlay {
    top: 0;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}


/*DISCOVER*/

.discover {
    margin-bottom: 15px;
}

.discover-title {
    margin: 60px 0;
}

.discover-title h2 {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    color: #a80c48;
    font-size: 30px;
    font-weight: 600;
}

.discover-title h2::after {
    content: "";
    width: 30px;
    height: 3px;
    background-color: #a80c48;
    margin: 10px auto 0 auto;
    display: block;
}

.discover-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.discover-img {
    width: 45%;
}

.discover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-text {
    width: 45%;
}

h4 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 40px;
    color: #a80c48;
    font-family: 'Herr Von Muellerhoff', cursive;
    letter-spacing: 0.5rem;
}

.discover-text p {
    font-size: 15px;
    text-align: center;
    color: #2c2727;
}

/* CONTACT START */

.contact {
    padding: 10px 0;
}

.contact-title {
    margin: 60px 0;
}

.contact-title h2 {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    color: #a80c48;
    font-size: 30px;
    font-weight: 600;
}

.contact-title h2::after {
    content: "";
    width: 30px;
    height: 3px;
    background-color: #a80c48;
    margin: 10px auto 0 auto;
    display: block;
}

.contact-content {
    display: flex;
    justify-content: space-evenly;
    margin-top: 60px;
}

.contact-item {
    width: 30%;
    text-align: center;
    align-items: center;
    display: flex;
    flex-basis: 33%;
    margin-bottom: 100px;
    flex-direction: column;
}

.contact-item i {
    font-size: 25px;
    margin-bottom: 30px;
    color: #a80c48;
}

.contact-item p {
    font-size: 16px;
    line-height: 30px;
}

/* CONTACT FINISH */

/* FOOTER START */

.footer {
    padding: 10px 0;
    background-color: black;
}

.footer-title {
    margin: 60px 0;
}

.footer-title h2 {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    color: #a80c48;
    font-size: 30px;
    font-weight: 600;
}

.footer-title img {
   padding-left: 20px;
}

.footer-title h2::after {
    content: "";
    width: 30px;
    height: 3px;
    background-color: #a80c48;
    margin: 10px auto 0 auto;
    display: block;
}

.footer-content {
    display: flex;
    justify-content: space-evenly;
    margin-top: 60px;
}

.footer-content p {
    margin-bottom: 60px;
    color: white;
    font-size: 13px;
    line-height: 30px;
}

.social {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 400px;
    margin: 0 auto 60px auto;
}

.social i {
    color: white;
    font-size: 25px;
}

.social i:hover {
    opacity: 0.7;
}

/* FOOTER FINISH */

/* MENU */

#menu-icon {
    font-size: 25px;
    display: none;
    margin-left: 20px;
}

@media only screen and (max-width: 800px) {
    .header-menu ul {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        /* background-color: #2b1402da; */
        background-color: #ffffff;
        width: 100%;
        overflow: hidden;
        transition: max-height 0.5s;
    }

    .header-menu ul li {
        margin-right: 50px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .header-menu ul li a {
        color: white;
    }

    .header-menu #menu-icon {
        display: block;
        cursor: pointer;
    }


}


/* ABOUT */

@media only screen and (max-width: 990px) {
    .about-img {
        width: 100%;
        margin-bottom: 30px;
    }

    .about-text {
        width: 100%;
    }
}

/* PORTFOLIO */

@media only screen and (max-width: 990px) {
    .portfolio .portfolio-item {
        flex-basis: 50%;
    }
}

@media only screen and (max-width: 580px) {
    .portfolio .portfolio-item {
        flex-basis: 100%;
    }
}

/* DISCOVER */

@media only screen and (max-width: 990px) {
    .discover-img {
        width: 100%;
        margin-bottom: 30px;
    }

    .discover-text {
        width: 100%;
    }
}

/* CONTACT */

@media only screen and (max-width: 800px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        margin-top: 30px;
    }

    .contact-item p {
        width: 100%;
        text-align: center;
    }
}

#back-to-top {
    position: fixed;
    bottom: 3em;
    right: 3em;
    background-color: rgba(255, 255, 255, .9);
    color: #313943;
    border: none;
    border-radius: 5px;
    padding: 1em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 0 2em 0 rgba(0, 0, 0, .25);
    transition: all .3s ease-in-out;
    display: inline-block;
    opacity: 0;
    text-decoration: none;
    font-size: .75em;
}

#back-to-top:hover {
    background-color: #a80c48;
    color: white;
    padding: 1em 3em;
}

#back-to-top.visible {
    opacity: 1;
}