@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

main {
    background: radial-gradient(46.97% 53.54% at 50% 46.46%, rgba(0, 250, 220, 0.2) 0%, rgba(0, 1, 2, 0) 100%), #232532;
}

#home {
    min-height: calc(100vh - 80px); 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 70px;
    background-color: #252323;
}

.navbar .logo h1 {
    margin: 0;
}

.logo {
    text-transform: uppercase;
    color: #f5f1ed; 
    font-size: 25px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 60px; 
}

.navbar ul li {
    display: flex;
    align-items: center;
}

.navbar ul li a {
    text-decoration: none;
    color: #f5f1ed; 
    font-weight: bold;
}

.logo span {
    color: #01bb88;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.intro h1 {
    font-size: 80px;
    color: #f5f1ed;
}

.intro h3 {
    font-size: 25px;
    margin: 0; 
}

.msg {
    display: inline-block; 
    color: #fff;
    border-right: 5px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: mark .9s step-end infinite, write 8s steps(22, end) infinite;
}

@keyframes mark {
    50% {
        border-right-color: transparent;
    }
}

@keyframes write {
    20% {
        width: 19.1ch;
    }
    70% {
        width: 19.1ch;
    }
    85% {
        width: 0;
    }
    100% {
        width: 0;
    }
}

.memoji {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
}

.img {
    text-align: right;
    margin-left: 100px;
}

.intro {
    text-align: left;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 30px;
    color: #000; 
}

.social-icons a {
    text-decoration: none;
    color: inherit; 
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #555; 
}

.navbar ul li.portf a {
    color: black; 
    font-weight: bold;
    background-color: #f5f1ed;
    padding: 10px;
    border-radius: 10px;
}

.navbar ul li.portf a:hover {
    background-color: #252323;
    transition: .3s ease-out;
    color: #f5f1ed;
    border: solid 2px #f5f1ed;
}

button {
    padding: 10px 40px;
    background-color: transparent;
    border-radius: 20px;
    font-weight: 700;
    border: none;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2); 
    text-transform: uppercase;
    cursor: pointer;
    color: #f5f1ed;
}

button:hover {
    background-color: rgba(0, 250, 220, 0.2);
    transition: .3s ease;
}

.icon-container {
    position: absolute;
    bottom: 50px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: 100%;
}

.icon-container svg {
    width: 42px;
    height: 42px;
    cursor: pointer;
    fill: #fff;
}

.icon-container a {
    text-decoration: none;
}

/* ABOUT ME ========*/


.container-about {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 100px;
}

.txt-esquerda {
    max-width: 500px;
    margin-top: 30px;
}

.img-direita {
    border-radius: 50%;
}

.txt-esquerda h1 {
    font-size: 50px;
    color: #F8F8F8;
    letter-spacing: 1px;
}

.txt-esquerda ul li {
    font-size: 20px;
    color: #9b9b9b;
    margin-top: 20px;
    letter-spacing: 1px;
    list-style: none;
}

.container-about {
    background-color: #1d1c1c;
    padding: 20px 20px;
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px; 
    min-height: calc(100vh - 80px);
}

#aboutme {
    min-height: calc(100vh - 80px);
}

.img-direita {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* SECAO SKILLS ========*/

#skills {
    position: relative;
    min-height: calc(110vh - 80px);
    overflow: hidden;
}

.floating-text {
    margin-top: 300px;
}

.container-skill {
    padding: 20px 0;
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px; 
    /* min-height: calc(100vh - 80px); */
}

.fafa {
    color: white;
    font-size: 5rem;
    display: block;
    margin: 0 auto 10px auto;
}

.wrapper-skill {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; 
    padding: 0 20px;
}

.skill-item {
    border: solid 2px #CFCFCF;
    padding: 20px;
    width: 200px; 
    text-align: center; 
    background-color: #2d2d2d; 
}

.skill-item h2 {
    color: white;
    margin: 10px 0;
}

.skill-item p {
    color: #CFCFCF;
    font-size: 14px;
}

.container-skill h1 {
    font-size: 50px;
    text-align: center;
    color: white;
    padding: 30px 0;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.floating-text {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.floating-text span {
    display: inline-block;
    letter-spacing: 10px;
    animation: float 3s ease-in-out infinite;
}

.floating-text span:nth-child(odd) {
    animation-duration: 3.5s;
}

.floating-text span:nth-child(even) {
    animation-duration: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.tras {
    margin-left: 30px;
}

footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%);
    font-size: .8rem;
    letter-spacing: .2rem;
}

/* PROJETOS */

#projetos {
    min-height: calc(110vh - 80px); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem; 
}

#projetos .titulo {
    text-align: center; 
    margin-bottom: 3rem; 
}

#projetos .titulo h1 {
    font-size: 2rem; 
    padding: 1rem; 
}

#projetos .container-projetos {
    width: 100%;
}

#projetos .wrapper-projetos {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 6rem; 
}

.card-right, .card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem; 

}

.image-direita img {
    max-width: 100%;
    height: auto; 
    border-radius: 8px; 
}

.text-direita h3 {
    text-align: center; 
    margin: 0;
}

.titulo {
    margin-top: 200px; 
    text-transform: uppercase;
    font-size: 50px;
}

.titulo h1 {
    font-size: 50px;
}

#aboutme {
    margin-top: 250px;
}

.card-efect {
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.card-efect img {
    transition: transform 0.3s ease;
}

.card-efect:hover img {
    transform: translateY(-10px); 
}

/* Geral para dispositivos móveis */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .navbar ul li {
        text-align: center;
    }

    .intro {
        text-align: center;
    }

    .intro h1 {
        font-size: 40px;
    }

    .intro h3 {
        font-size: 20px;
    }

    .memoji {
        width: 300px;
        height: 300px;
    }

    .container {
        flex-direction: column;
    }

    .social-icons {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .icon-container {
        bottom: 20px;
    }

    .container-about {
        padding: 20px;
    }

    .wrapper {
        flex-direction: column;
        align-items: center;
    }

    .txt-esquerda {
        text-align: center;
        margin: 0;
    }

    .txt-esquerda h1 {
        font-size: 40px;
    }

    .txt-esquerda ul li {
        font-size: 18px;
    }

    .wrapper-skill {
        flex-direction: column;
        align-items: center;
    }

    .skill-item {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    #projetos .wrapper-projetos {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-right, .card-left {
        padding: 10px;
    }

    .titulo h1 {
        font-size: 30px;
    }

    footer {
        font-size: 0.7rem;
        letter-spacing: 0.1rem;
    }
}

/* Para telas menores que 480px */
@media (max-width: 480px) {
    .navbar {
        padding: 5px;
    }

    .intro h1 {
        font-size: 30px;
    }

    .intro h3 {
        font-size: 18px;
    }

    .memoji {
        width: 250px;
        height: 250px;
    }

    .social-icons {
        font-size: 20px;
    }

    .txt-esquerda h1 {
        font-size: 30px;
    }

    .txt-esquerda ul li {
        font-size: 16px;
    }

    .skill-item {
        width: 100%;
        max-width: 250px;
    }

    .titulo h1 {
        font-size: 25px;
    }

    footer {
        font-size: 0.6rem;
        letter-spacing: 0.05rem;
    }
}