/*Reset do Navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    /*tira a borda em volta do elemento*/
    font-family: 'Poppins', sans-serif;
}
 
/* === VARIÁVEIS === */
:root {
    /* Cores */
    --purple-50: #f4eaff;
    --purple-100: #e9dcfa;
    --purple-200: #cdb3f0;
    --purple-300: #b186e5;
    --purple-400: #9460db;
    --purple-500: #6b36c8;
    --purple-600: #5b2ca0;
    --purple-700: #4c2177;
    --purple-800: #441f88;
    --purple-900: #2a0e4d;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-400: #505861;
    --black-800: #171717;
    --white: #ffffff;
    --error: #e63946;
 
    /* Sombras */
    --shadow-sm: 0 0.25rem 0.5rem #0000000D;
    --shadow-md: 0 0.25rem 0.75rem #6B36C84D;
    --shadow-lg: 0 0.5rem 1.5rem #6B36C833;
    --shadow-focus: 0 0 0 0.25rem #6B36C81A;
}
 
html {
    scroll-behavior: smooth;
    /*deixa a rolagem macia*/
}
 
body {
    display: flex;
    /*é o container flexivel tudo um do lado do outro*/
    flex-direction: column;
    /*alinha os itens na vertical*/
    min-height: 100vh;
    background-color: var(--white);
    color: var(--black-800);
}
 
main {
    flex: 1;
 
}
 
a,
button {
    cursor: pointer;
}
 
/* Botões */
.botao,
.botao-outline {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}
 
.botao {
    background-color: var(--purple-500);
    color: var(--white);
    border: none;
    /*-shadow: var(--shadow-sm);*/
}
 
.botao:hover {
    background-color: var(--purple-800);
    -shadow: var(--shadow-md);
    transform: translateY(-0.25rem);
    /*faz o botão subir um pouco*/
}
 
.botao-outline {
    border: 0.25rem solid var(--purple-500);
    color: var(--purple-500);
    background-color: transparent;
}
 
.botao-outline:hover {
    color: var(--white);
    background-color: var(--purple-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-0.25rem);
    /*faz o botão subir um pouco*/
}
 
 
/* Menu */
 
.menu_container {
    position: sticky;
    /*efeito que deixa ele em cima e as coisas passarem por baixo*/
    top: 0;
    width: 100%;
    height: 5rem;
    background-color: var(--purple-400);
    border-bottom: 0.5rem solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    /*garante que o menu fique acima de outros elementos*/
}
 
.menu_content {
    display: flex;
    justify-content: space-between;
    /*joga um pro lado e outro pro outro com espaço entre eles*/
    align-items: center;
    width: 70rem;
    height: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
    /*centraliza o menu*/
}
 
.menu_container a {
    color: var(--white);
    font-weight: 600;
    transition: color 0.3s ease;
}
 
.menu_container a:hover {
    color: var(--purple-200);
}
 
#titulo a {
    font-size: 1.5rem;
    font-weight: 700;
}
 
.menu_list {
    display: flex;
    list-style: none;
    gap: 2rem;
}
 
.menu_list a {
    padding: 0.5rem;
}
 
/* Seção HERO */
.hero_container {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero_content{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero_content h4{
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--purple-500);
}

.hero_content h1{
    font-size: 3rem;
    font-weight: 700;
    line-height: 3.5rem;
    color: var(--black-800);
}

.hero_content p{
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--gray-400);
}

.hero_buttons{
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero_image{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ilustracao{
    width: 100%;
    max-width: 100%;
    border-radius: 2rem;
}

/* ANIMAÇÃO IMAGEM HERO */
@keyframes float{

    0%,
    100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-1.25rem);
    }
}

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

/* SEÇÃO ABOUT */
.about_container{
    margin: 4rem auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--gray-200);
    border-radius: 1rem;
}

.about_image{
    flex: 0 0 17.5rem;
}

.about_image img{
    width: 100%;
    border: 0.35rem solid var(--purple-500);
    border-radius: 50%;
    /* 50% deixa redondo */
    box-shadow: var(--shadow-lg);
}

.about_content h2{
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--purple-800);
}

.about_content p{
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.about_stats{
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.about_stats .botao{
    margin-right: auto;
}

.stat-item{
    text-align: center;
}

.stats-wrapper{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
}

.stats-wrapper .stat-number{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-500);
    margin-bottom: 0;
}

.stats-wrapper .stat-label{
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 0;
}

/* Seções - Estilos Comuns*/
.hero_container,
.about_container,
.contact_container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    scroll-margin-top: 6rem;
}


/* CONTATO */
.contact_container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 4rem auto 2rem;
    gap: 4rem;
}

.contact_info h4{
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--purple-500);
}

.contact_info p{
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.social_container{
    display: flex;
    gap: 3rem;
}

.social_icon{
    width: 4rem;
    height: 4rem;
    padding: 0.75rem;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.social_icon:hover{
    background-color: var(--purple-600);
    transform: translateY(0.25rem);
    box-shadow: var(--shadow-md);
}

.social_icon img{
    width: 100%;
    filter: brightness(0) saturate(100%);
}

.social_icon:hover img{
    filter: brightness(0) invert(100%);
}

/* FORMULARIO */
form{
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

form label{
    font-size: 1rem;
    font-weight: 600;
    color: var(--black-800);
}

form input,
textarea{
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 0.25rem solid var(--gray-200);
    font-size: 1rem;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus{
    border-color: var(--purple-500);
    box-shadow: var(--shadow-focus);
}

form textarea{
    resize: vertical;
    min-height: 7rem;
}

form span{
    font-size: 0.75rem;
    color: var(--error);
    margin-top: -0.75rem;
    font-weight: 500;
}

/* FOOTER */
footer{
    padding: 2.5rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(to right top, var(--purple-400), var(--purple-600));
    color: var(--white);
}

/* SUCESS */
.sucess_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 12.5rem);
    padding: 3rem 1.5rem;
}

.sucess_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 37.5rem;
}

.sucess_icon {
    width: 7.5rem;
    height: 7.5rem;
    background-color: var(--purple-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sucess_icon svg {
    width: 3.75rem;
    height: 3.75rem;
    fill: var(--purple-500);
}

.sucess_content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-800);
}

.sucess_content h4 {
    font-size: 1.25rem;
    color: var(--gray-400);
    line-height: 1.875rem;
}

/* RESPONSIVIDADE */

/* SMARTPHONES(até 490px */
@media screen and (max-width: 490px){
    .Menu_content{
        justify-content: center;
        padding: 0 1 rem;
    }

    .menu_list{
        display: none;
    }

    #titulo a{
        font-size: 1.25rem;
        text-align: center;
    }

    /* HERO */
    .hero_container{
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .hero_content h4{
        font-size: 1rem;
    }

    .hero_content h1{
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .hero_content p{
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .hero_buttons{
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    /* ABOUT */
    .about_container{
        flex-direction: column;
        gap: 2rem;
    }

    .about_content h2{
        font-size: 1.75rem;
    }

    .about_content p{
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .about_stats{
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about_stats .botao{
        width: 100%;
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem;
    }

    /* FORMULARIO */
    form input,
    form textarea {
        padding: 0.55rem;
        font-size: 0.95rem;
    }

    form label {
        font-size: 1rem;
    }

    .botao,
    .botao-outline {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
    }

    /* SUCESS */
    .sucess_container {
        padding: 2rem 1rem;
    }

    .sucess_icon {
        width: 6rem;
        height: 6rem;
    }

    .sucess_icon svg {
        width: 3rem;
        height: 3rem;
    }

    .sucess_content h1 {
        font-size: 1.75rem;
    }

    .sucess_content h4 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

}


/* SEÇÃO PROJETOS */
.projetos_container {
    margin: 4rem auto;
    padding: 3rem 1.5rem;
    scroll-margin-top: 6rem;
}

.projetos_content {
    max-width: 70rem;
    margin: 0 auto;
}

.projetos_content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--purple-800);
    text-align: center;
}

.projetos_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Garante que todos os cards se estendam igualmente */
}

.projeto_card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    transition: all 0.3s ease;
    position: relative;
}

.projeto_card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-300);
}

.projeto_info {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.projeto_info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-600);
    margin-bottom: 0.5rem;
}

.projeto_subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-400);
    margin-bottom: 1rem;
    font-style: italic;
}

.projeto_descricao {
    font-size: 1rem;
    line-height: 1.6rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    flex: 1; 
    overflow: hidden; /* Garante que conteúdo muito longo não quebre o layout */
}

.projeto_descricao strong {
    color: var(--purple-500);
    font-weight: 600;
}

.ver-projeto-btn {
    width: 100%;
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    flex-shrink: 0; 
}

/* RESPONSIVIDADE PARA PROJETOS */
@media screen and (max-width: 490px) {
    .projetos_content h2 {
        font-size: 1.75rem;
    }

    .projetos_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projeto_card {
        padding: 1.5rem;
        min-height: 380px;
    }

    .projeto_info h3 {
        font-size: 1.25rem;
    }

    .projeto_descricao {
        font-size: 0.9rem;
        line-height: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .projetos_grid {
        grid-template-columns: 1fr;
    }
    
    .projeto_card {
        min-height: 370px;
    }
}