@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

::selection {
    background-color: #F4F4F4;
    color: #0B0B0B;
}

body,
html {
    width: 100%;
    height: 100vh;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-style: normal;
    background: #0B0B0B;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 305px;
    height: 100vh;
    background: #0B0B0B;
    border-right: 1px solid #4E5053;
    color: white;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;

    animation: fadeIn 0.7s ease-in-out;
}

#logo-sidebar {
    padding: 20px;
}

#line {
    border-bottom: 1px solid #4E5053;
}

.menu-icon {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

.menu-icon img {
    width: 30px;
    height: 30px;
}

#square1 {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #9A9DA2;
    margin-right: 10px;
    vertical-align: baseline;
}

nav ul {
    list-style: none;
    padding: 20px;
    gap: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

nav ul li a {
    color: #F4F4F4;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    transition: 0.3s;
    text-transform: uppercase;
}

.activate:hover {
    padding-left: 10px;
}

.contact {
    color: #F4F4F4;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    margin-top: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.contact:hover {
    margin-left: 10px;
}

.icon-arrow {
    width: 15px;
    height: 15px;
    margin-right: 10px;
    margin-bottom: 3px;

    transition: 0.3s;
}

.contact:hover .icon-arrow {
    margin-right: 17px;
}

#square2 {
    display: none;
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    background: #4E5053;
    vertical-align: baseline;
}

.content {
    animation: fadeIn 0.8s ease-in-out;
    margin-left: 305px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #4E5053;
}

.icons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end
}

.text-right {
    font-weight: 500;
    font-size: 80px;
    line-height: 90px;
    color: #F4F4F4;
    text-align: justify;
    padding: 10px 20px 15px 20px;
}

#square3 {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 0px;
    background-color: #4E5053;
}

.projetos {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    place-items: center;
    gap: 50px 40px;  
    padding: 20px;
    border-bottom: 1px solid #4E5053;
    animation: fadeIn 0.5s cubic-bezier(.06,.34,.11,.95);
}

.projeto {
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(.06,.34,.11,.95);
}

.projeto:hover {
    transform: scale(1.02);
}

.projeto img {
    width: 100%;
    max-width: 20em;
    transition: 0.3s all cubic-bezier(.83,.06,0,1);
}

.projeto:hover #img-projeto {
    transform: scale(1.05) rotate(5deg);
}

#texts {
    display: flex;
    flex-direction: column;
}

#titulo {
    margin-top: 25px;
    font-weight: 700;
    font-size: 28px;
    line-height: 38px;
    text-transform: uppercase;
    color: #F4F4F4;
    transition: color 0.3s;
    text-wrap: nowrap;
}

#titulo:hover {
    color: #9A9DA2;
}

#num {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #9A9DA2;
    margin-left: 10px;
    position: relative;
    bottom: 8px;
    transition: color 0.3s;
}

#num:hover {
    color: #9A9DA2;
}

#p {
    max-width: 26em;
    font-weight: 600;
    font-size: 13px;
    line-height: 15px;
    text-align: justify;
    color: #9A9DA2;
    transition: color 0.3s;
}

#p:hover {
    color: #9A9DA2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.projeto {
    animation: fadeIn 0.5s ease-in-out;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

footer span {
    font-weight: 600;
    font-size: 22px;
    line-height: 29px;
    color: #F4F4F4;
}

@keyframes bounce {
    0% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(2px);
    }
}

#btn-top {
    animation: bounce 1.5s cubic-bezier(.84,0,.13,.98) infinite;
    cursor: pointer;
}