/* Variaveis globais de cores principais */
:root {
    --border: 0.1rem solid #157575;
    --main: #11babd;
    font-size: 10px;
}

html {
    scroll-padding-top: 13rem;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Definição de padrão da pagina */
* {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    transition: 0.2s linear;
    font-family: "Mozilla Headline", sans-serif;
}

body {
    background: url("images/banner.png") center/cover fixed;
    padding-top: 10rem;
}

/* Cabeçalho */
header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 99;
    background-color: black;
    padding: 1.5rem 8%;
    border-bottom: var(--border);
}

header section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 60px;
}

.logo img {
    height: 60px;
}

/* Centralização do menu */
.navbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu {
    display: flex;
    gap: 3rem;
}

.menu-item {
    position: relative;
    color: var(--main);
    padding-block: 0.5rem;
    font-weight: 500;
    font-size: 1.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu-item:hover {
    transform: scale(1.1);
    color: white;
}

/* Linha de destaque dos itens do menu */
.menu-item::after {
    content: '';
    width: 0;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, white, teal);
    transition: width 0.5s ease;
}

.menu-item:hover::after {
    width: 100%;
}

/* Animação do nome na pagina inicial*/
.msg {
    border-right: 4px solid #11babd;
    overflow: hidden;
    white-space: nowrap;
    animation: blinkMarker 0.5s infinite, typing 5s infinite steps(15);
}

.msg span {
    color: rgb(0, 255, 238);
}

@keyframes blinkMarker {
    50% {
        border-right-color: transparent;
    }
}

@keyframes typing {
    0% {
        width: 0;
    }

    40% {
        width: 15ch;
    }

    60% {
        width: 15ch;
    }

    100% {
        width: 0;
    }
}

/* Seção home*/
.homebox {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0 8%;
    margin-top: -10rem;
}

.homebox .content {
    max-width: 60rem;
}

.homebox .content h1 {
    color: white;
    font-size: 6rem;
}

.homebox .content p {
    color: white;
    padding: 1rem 0;
    line-height: 1.8;
    font-size: 2rem;
    font-weight: 100;
    font-family: 'Roboto', sans-serif;
}

/* Padrão de titulo */
.section-title {
    font-size: 5rem;
    color: var(--main);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

.section-title span {
    color: white;
    text-transform: uppercase;
}

/* Padrão de box para conteudo*/
.content-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 8rem auto;
    padding: 5rem;
    background-color: rgba(2, 82, 82, 0.309);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgb(0, 255, 238);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Seção sobre mim*/
#about {
    transform: scale(0.8);
    min-width: 80rem;
}

#about:hover {
    transform: scale(0.82);
    box-shadow: rgb(0, 255, 238) 0px 20px 30px -10px;
}

.content-card:hover {
    transform: scale(1.02);
    box-shadow: rgb(0, 255, 238) 0px 20px 30px -10px;
}

.about-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.about-box .image,
.about-box .content {
    flex: 1 1 50%;
}

.about-box .image img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: rgb(0, 255, 242) 0px 2px 4px 0px, rgba(0, 255, 242, 0.32) 0px 2px 16px 0px;
}

.content-card .content h3 {
    font-size: 3rem;
    color: var(--main);
    margin-bottom: 1rem;
}

.content-card .content p,
.content-card .content li {
    line-height: 3rem;
    color: white;
    font-weight: 500;
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
}

/* Seção formação */
#academy .content ul {
    padding-left: 2rem;
    list-style-type: disc;
}

#academy {
    max-width: 122rem;
    min-width: 80rem;
    margin-bottom: 15rem;
    margin-top: 8rem;
}

#academy .about-box {
    justify-content: center;
}

/* icones de skill */
.skills {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.skills .img-skill {
    width: 50px;
    height: 50px;
}

/* Seção projetos*/
.projects {
    padding: 6rem 2rem;
    min-height: 100vh;
}

.projects-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: rgba(2, 82, 82, 0.309);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgb(0, 255, 238);
    overflow: hidden;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: rgb(0, 255, 238) 0px 20px 30px -10px;
    cursor: pointer;
}

.project-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.box-text {
    padding: 1.5rem;
    text-align: center;
}

.title-project {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #11babd;
}

.text-project {
    color: white;
    line-height: 1.25rem;
    font-size: 1.5rem;
}

/* Seção contato*/
#call.content-card {
    transform: scale(0.8);
    margin-top: -5rem;
    margin-bottom: -5rem;
}

#call .section-title {
    font-size: 5rem;
    color: var(--main);
}

#call .section-title span {
    color: white;
}

/* Organização geral do formulario*/
#call form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
}

#call form p {
    font-size: 1.8rem;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-bottom: -10px;
}

#call form input,
#call form textarea {
    width: 100%;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--main);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

#call form input:focus,
#call form textarea:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 15px rgba(17, 186, 189, 0.6);
}

#call form input::placeholder,
#call form textarea::placeholder {
    color: #ccc;
}

#call form textarea {
    min-height: 150px;
    resize: vertical;
}

#call form input[type="submit"] {
    cursor: pointer;
    background-color: var(--main);
    color: rgb(0, 0, 0);
    font-weight: 700;
    font-family: "Mozilla Headline", sans-serif;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#call form input[type="submit"]:hover {
    background-color: #10a3a5;
    transform: scale(1.02);
}

/* Rodapé */
footer {
    background-color: black;
    border-top: var(--border);
    padding: 3rem 8%;
    color: rgba(255, 255, 255, 0.7);
}

#footer-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#copyright {
    font-size: 1.4rem;
    font-family: 'Roboto', sans-serif;
}

/* Icones de redes sociais */
.social-media-buttons {
    display: flex;
    gap: 2.5rem;
}

.social-media-buttons a i {
    font-size: 3rem;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media-buttons a:hover i {
    color: var(--main);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    header {
        padding: 1.5rem 4%;
    }


    .navbar {
        position: static;
        transform: none;
    }

    .menu {
        gap: 1.5rem;
    }

    .menu-item {
        font-size: 1.6rem;
    }

    .about-box {
        flex-direction: column;
        text-align: center;
    }

    .about-box .image img {
        max-width: 250px;
        margin-bottom: 2rem;
    }


    #about,
    #academy {
        min-width: unset;
        width: 90%;
        transform: scale(1);
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    #call.content-card {
        transform: scale(1);
        width: 90%;
        margin: 4rem auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 8rem;
    }

    header section {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
    }

    .navbar {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }

    .homebox .content h1 {
        font-size: 4.5rem;
    }

    .homebox .content p {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 4rem;
        line-height: 1.2;
    }

    .content-card {
        padding: 3rem 2.5rem;
    }

    .skills {
        justify-content: center;
    }

    #footer-items {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .menu {
        gap: 0.5rem 1rem;
    }

    .menu-item {
        font-size: 1.5rem;
    }

    @keyframes typing {
        0% {
            width: 0;
        }

        40% {
            width: 14ch;
        }

        60% {
            width: 14ch;
        }

        100% {
            width: 0;
        }
    }
}