@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;

}

.moving-letter {
    display: inline-block;
    position: relative;
    animation-name: moveUpAndDown;
    animation-duration: 0.5s;
}

@keyframes moveUpAndDown {
    0%, 100% {
        top: 0;
    }

    50% {
        top: -20px;
    }
}

button:focus-visible {
    outline: dashed;
}

a:focus-visible {
    outline: dashed;
}


header {
    z-index: 999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 200px;
    transition: 0.5s ease;
}

header .brand {
    color: #605240;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

header .navigation {
    position: relative;
}

header .navigation .navigation-items a {
    position: relative;
    color: #e0e4e0;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s ease;
}

header .navigation .navigation-items a:before {
    content: '';
    position: absolute;
    background: #e0e4e0;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

header .navigation .navigation-items a:hover:before {
    width: 100%;
}

main {
    padding: 100px 200px;
}

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: #81a1a1;

    overflow: hidden;

}

.home:before {
    z-index: 777;
    content: '';
    position: absolute;
    background: rgba(129,161,161, 0.3);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

}

.home .content {
    z-index: 888;
    color: #fff;
    width: 70%;
    margin-top: 50px;
}

.home .content h1 {
    font-size: 4em;
    font-weight: 900;
    text-transform: uppercase;
    /* letter-spacing: 5px; */
    line-height: 60px;
    margin-bottom: 40px;
}

.home .content h1 span:not(.portfolio) {
    letter-spacing: -0.25em;
}

.home .content h1 span.portfolio {
    font-size: .7em;
    font-weight: 200;
}

.home .content p {
    margin-bottom: 65px;
}

.home .content a {
    background: #e0e4e0;
    padding: 15px 35px;
    color: #c4a087;
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
}

.home .media-icons {
    z-index: 888;
    position: absolute;
    right: 30px;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease; 
}

.home .media-icons a {
    color: #e0e4e0;
    font-size: 1.6em;
    transition: 0.3s ease;
}

.home .media-icons a:not(:last-child) {
    margin-bottom: 20px;
}

.home .media-icons a:hover {
    transform: scale(1.3);
}

.home img {
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
    object-position: bottom;
}

.home img:nth-child(2) {
    overflow: hidden;
    translate: 2% -3.5%;
}

.home img:nth-child(3) {
    overflow: hidden;
    translate: 4% -7%;
}

.home img:nth-child(4) {
    overflow: hidden;
    translate: 6% -10.5%;
}

.home img:nth-child(5) {
    overflow: hidden;
    translate: 8% -14%;
}

/* .home img#bas1 {
    z-index: 888;
    top: 10px;
    left: 10px;
}

.home img#bas2 {
    z-index: 888;
    top: 20px;
    left: 20px;
}

.home img#bas3 {
    z-index: 888;
    top: 30px;
    left: 30px;
}

.home img#bas4 {
    z-index: 888;
    top: 40px;
    left: 40px;
} */

.menu-btn {
    display: none;
}

@media (max-width: 1040px) {
    header {
        padding: 12px 20px;
    }

    main {
        padding: 100px 20px;
    }

    .home .media-icons {
        right: 15px;
    }

    header .navigation {
        display: none;
    }

    header .navigation.active{
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(1, 1, 1, 0.5);
    }

    header .navigation .navigation-items a{
        color: #605240;
        font-size: 1.2em;
        margin: 20px;
    }

    header .navigation .navigation-items a:before {
        background: #605240;
        height: 5px;
    }

    header .navigation.active .navigation-items {
        background: #adbba9;
        width: 600px;
        max-width: 600px;
        margin: 20px;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 5px;
        box-shadow: 0 5px 25px rgb(1 1 1 / 20%);
    }

    .menu-btn {
        background: none;
        border: none;
        font-size: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        transition: 0.3s ease;
    }

    .menu-btn.active {
        z-index: 999;
        color: #e0e4e0;
        transition: 0.3s ease;
    }
}

@media (max-width: 640px) {
    main {
        padding: 50px 20px;
    }

    .home .content h1 {
        font-size: 3em;
        letter-spacing: 5px;
        line-height: 45px;
    }
    
    .home .content h1 span {
        font-size: .5em;
    }
    
    .home img {
        object-position: -375px;
    }
}

@media (max-width: 480px) {
    .home img {
        object-position: -450px;
    }
}