/*
========================
    RESET NAVEGADOR 
========================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-decoration: none;
    outline: none
}

/* Variáveis */
:root {

    /* Paleta de Cores - Green (suave) */
    --green-50: #f2f7f4;
    --green-100: #e3efe7;
    --green-200: #c7dfd0;
    --green-300: #a9cfb7;
    --green-400: #86b89a;
    --green-500: #5f9f7a;
    --green-600: #4c8062;
    --green-700: #3a624b;
    --green-800: #2a4635;
    --green-900: #1a2b21;
    --green-950: #0e1712;

    /* Cores Neutras */
    --gray-200: #e8e8e8;
    --gray-400: #5f6b66;
    --black: #1a1f1c;
    --white: #f7faf8;

    /* Cores de Estado */
    --error: #e63946;

    /* Sombras */
    --shadow-sm: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    --shadow-md: 0 0.25rem 0.75rem rgba(95, 159, 122, 0.25);
    --shadow-lg: 0 0.5rem 1.5rem rgba(95, 159, 122, 0.18);

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Tamanhos de Fonte */
    --text-sm: 0.75rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    --radius-full: 50%;

    /* Animação */
    --transition-default: all 0.3s ease;
}



html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--white);
    line-height: 1.6;
    color: var(--black);
}

/*
========================
        MAIN 
========================
*/
main {
    flex: 1;
}

/* 
========================
        SECTION 
========================
(Configurações das Seções)
*/

.section-container {
    max-width: 70rem;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    scroll-margin-top: 6rem;
}

/* 
========================
        BOTÃO 
========================
*/

.buttons-container {
    display: flex;
    gap: var(--spacing-sm);
}

.botao,
.botao-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 0.15rem solid transparent;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-default);
}

.botao {
    border-color: var(--green-500);
    background-color: var(--green-500);
    color: var(--white);
}

.botao:hover {
    border-color: var(--green-800);
    background-color: var(--green-800);
    box-shadow: var(--shadow-md);
    transform: translateY(-0.25rem);
}

.botao-outline {
    border-color: var(--green-500);
    background-color: transparent;
    color: var(--green-500);
}

.botao-outline:hover {
    border-color: var(--green-500);
    background-color: var(--green-500);
    color: var(--white);
    transform: translateY(-0.25rem);
}

/* Botões pequenos - Card Projetos */

.botao.botao-sm,
.botao-outline.botao-sm {
    min-width: 6rem;
    padding: 0.25rem var(--spacing-sm);
    border-width: 0.125rem;
    border-radius: 0.25rem;
    font-size: var(--text-sm);
}

/* 
========================
        HEADER  
========================
(Cabeçalho + Menu)
*/

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 5rem;
    border-bottom: var(--spacing-xs) solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    background-color: var(--green-800);
}

header a {
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--green-100);
}

#titulo {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 70rem;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.menu-list {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.menu-list a {
    padding: var(--spacing-xs);
}

/* 
========================
        HERO 
========================
*/
.hero-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    min-height: calc(100vh - 5rem);
}

.hero-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--spacing-md);

}

.hero-content span {
    font-size: var(--text-xl);
    font-weight: 700;
}

.hero-content h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
}

.hero-content p,
.about-content p,
.contact-info p {
    font-size: var(--text-lg);
    color: var(--gray-400);
}

.hero-image {
    display: flex;
    flex: 1;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xl);
}

/* 
========================
    ANIMAÇÃO FLUTUANTE
========================
*/

@keyframes float {

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

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

}

/* Usa animação */
.float-animation {
    animation: float 3s ease-in-out infinite;
}


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

.about-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) auto;
    border-radius: var(--radius-lg);
    background-color: #c4d7cc;
}

.about-image {
    flex: 0 0 17.5rem;
}

.about-image img {
    width: 100%;
    border: 0.35rem solid var(--green-500);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.about-content h2,
.projects-container h2,
.contact-info h2 {
    margin-bottom: var(--spacing-md);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--green-800);
}

.about-content p {
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

.about-buttons-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.about-buttons-data .botao {
    margin-right: auto;
}

.data-container {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: 0;
}

.data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-number {
    font-size: var(--text-xl);
    font-weight: 700;
    text-align: center;
    color: var(--green-500);
}

.data-label {
    font-size: var(--text-base);
    text-align: center;
    color: var(--gray-400);
}


/* 
========================
        PROJECTS 
========================
*/

.projects-container {
    scroll-margin-top: 3rem;
    margin: var(--spacing-2xl) auto;
    text-align: center;
}

.projects-swiper {
    position: relative;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-xl);
    overflow: hidden;
}

/* Card Projetos */

.project-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 0.15rem solid var(--gray-200);
    border-radius: var(--radius-lg);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-default);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10rem;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
}

.project-image img {
    width: 75%;
    height: 75%;
    max-width: 7rem;
    max-height: 7rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: var(--spacing-md);
    text-align: left;
}

.project-content h3 {
    margin-bottom: 0.75rem;
    font-size: var(--text-lg);
    font-weight: 700;
}

.project-content p {
    flex: 1;
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-base);
    color: var(--gray-400)
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs)
}

.tag {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    background-color: var(--green-100);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--green-800);
}

.project-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--spacing-sm);
}

/* 
========================
        SWIPER 
========================
*/

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    height: auto;
}

/* Botões do Swiper (navegação) */
.swiper-button-next,
.swiper-button-prev {
    width: 3rem;
    height: 3rem;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: var(--text-lg);
    color: var(--green-500);
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    color: var(--green-800);
}

/* Indicadores de paginação */
.swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--gray-200);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: var(--spacing-lg);
    border-radius: var(--radius-sm);
    background-color: var(--green-500);
}

/* 
========================
        CONTACT 
========================
*/

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    background-color: #c4d7cc;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);

}

/*Redes Sociais*/

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-info h2 {
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-lg);
}

.social-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.social-icon {
    width: 5rem;
    height: 5rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-default);
    display: flex;
    align-items: center;
    justify-content: center;

}

.social-icon i {
    font-size: 3rem;
    color: var(--green-800);
    transition: 0.3s ease;

}

.social-icon i:hover {
    color: var(--green-500);
}

/* 
========================
    FORMULÁRIO CONTATO 
========================
*/

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

form label {
    font-size: var(--text-base);
    font-weight: 600;
}

form input,
form textarea {
    width: 100%;
    padding: 0.5rem var(--spacing-sm);
    border: 0.25rem solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color 0.3 ease;
}

form input:focus,
form textarea:focus {
    border-color: var(--green-500)
}

form textarea {
    min-height: 5rem;
    resize: none;
}

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

/* 
========================
        FOOTER 
========================
*/


.footer {
    background-color: var(--green-800);
    color: var(--white);
    padding: var(--spacing-lg) 0;
}


.footer-bottom-content {
    display: flex;
    flex-direction: column;
    /* empilha */
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-dev {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-dev i {
    margin: 0 6px;
    font-size: 1.2rem;
    color: var(--green-400);
    transition: 0.3s;
}

.footer-dev i:hover {
    color: var(--white);
    transform: scale(1.2);
}

.footer-topo {
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--gray-600);
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-topo:hover {
    background-color: var(--green-500);
    color: white;
    border-color: transparent;
}

/* 
========================
    PÁGINA SUCCESS 
========================
*/

.success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 12.5rem);
    padding: var(--spacing-xl) var(--spacing-md);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 37.5rem;
    text-align: center;
}

.success-content h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--green-800);
}

.success-content h2 {
    font-size: var(--text-lg);
    color: var(--gray-400);
}

.success-texto {
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: var(--radius-full);
    background-color: var(--green-100);
}

.success-icon img {
    width: 6rem;
    height: 6rem;
    filter: brightness(0) saturate(100%) invert(46%) sepia(11%) saturate(1176%) hue-rotate(93deg) brightness(94%) contrast(94%);
}

/* 
========================
RESPONSIVIDADE TABLET
========================
*/
@media screen and (max-width: 1024px) {

    /* Layout */
    .section-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    /* Tipografia */
    .section-container h1 {
        font-size: var(--text-3xl);
    }

    .section-container h2 {
        font-size: var(--text-2xl);
    }

    .section-container p  {
        font-size: var(--text-base);
    }

    .section-container span {
        font-size: var(--text-lg);
    }

    .success-content h1 {
        font-size: var(--text-3xl);
    }

    .success-content h2 {
        font-size: var(--text-lg); 
    }

    /* Header */
    #titulo {
        font-size: var(--text-xl); 
    }

    /*Oculta menu*/
    @media (max-width: 768px) {
        .menu-list {
            display: none;
        }
    }

    /* Hero*/
    .hero-container {
        flex-direction: column-reverse;
        gap: var(--spacing-lg);
        min-height: 60vh;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        width: 90%;
    }

    .hero-image img {
        object-fit: cover;
    }

    .buttons-container {
        justify-content: center;
        width: 100%;
    }

    .hero-container .botao,
    .hero-container .botao-outline {
        padding: 0.75rem 1.5rem;
        font-size: var(--text-base);
        white-space: nowrap;
    }

    /* About*/
    .about-container {
        flex-direction: column;
        gap: var(--spacing-md);
        margin: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-image img {
        max-width: 16rem;
        width: 100%;
    }

    .about-content {
        width: 100%;
    }

    .about-buttons-data {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .about-buttons-data .botao {
        margin-right: 0;
    }

    .data-container {
        justify-content: center;
        width: 156%;
    }

    /* Projects*/
    .projects-container {
        margin: var(--spacing-lg) auto 0;
    }

    .projects-swiper {
        margin: 0;
        padding: var(--spacing-sm) var(--spacing-lg) 2.5rem;
    }

    .project-card {
        width: 100%;
        height: 30rem;
        min-height: 30rem;
        max-height: 30rem;
        max-width: 100%;
    }

    .project-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .project-content p {
        flex: 1;
        overflow: hidden;
    }

    .project-tags {
        min-height: 2.5rem;
        align-items: flex-start;
    }

    .swiper-wrapper {
        align-items: stretch;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: stretch;
        height: auto;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    /* Contact*/
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        width: 90%;
        margin: 0 auto;
    }

    /* Success*/
    .success-container {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: calc(100vh - 10rem);
    }

    .success-content {
        gap: var(--spacing-lg);
        max-width: 35rem;
    }

    .success-icon {
        width: 6rem;
        height: 6rem;
    }

    .success-icon img {
        width: 5rem;
        height: 5rem;
    }
}

/* 
========================
RESPONSIVIDADE CELULAR
========================
*/

@media screen and (max-width: 480px) {
    .section-container {
        padding: var(--spacing-md) var(--spacing-sm);

    }

    .section-container h1 {
        font-size: var(--text-xl);
    }

    .section-container h2 {
        font-size: var(--text-lg);
    }

    .section-container span {
        font-size: var(--text-lg);
    }

    header {
        border-bottom: none;
        box-shadow: var(--shadow-lg);
    }

    /*Menu*/
    .menu-content {
        justify-content: center;
    }

    #titulo {
        font-size: var(--text-xl);
    }

    .menu-list {
        display: none;
    }

    /* Hero */
    .hero-container {
        flex-direction: column-reverse;
        gap: var(--spacing-xs);
        padding-top: var(--spacing-lg);
    }

    .hero-content {
        gap: var(--spacing-xs);
        width: 100%;
    }

    .buttons-container {
        gap: 0.75rem;
        width: 100%;
    }

    .buttons-container .botao,
    .buttons-container .botao-outline {
        padding: 0.75rem 1rem;
        font-size: var(--text-base);
        white-space: nowrap;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        width: 100%;
        max-width: 22rem;
    }

    /*About*/

    .about-container {
        flex-direction: column;
        margin: var(--spacing-lg) 0.5rem;
        padding: var(--spacing-md);
    }

    .about-image img {
        max-width: 50rem;
    }

    .about-content {
        width: 100%;
    }

    .about-buttons-data {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }

    .about-buttons-data .botao,
    .about-buttons-data .botao-outline {
        width: 100%;
        padding: 0.75rem var(--spacing-lg);
        font-size: var(--text-base);
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }

    .data-container {
        justify-content: center;
        width: 100%;
    }

    .data-number {
        font-size: var(--text-lg);
    }

    .data-label {
        font-size: var(--text-sm);
    }

    /*Project*/

    .section-container.projects-container {
        margin: 0 auto;
    }

    /* .project-tags{
        display: ;
    } */

    .projects-swiper {
        padding: 0 var(--spacing-xl);
    }

    /*Contact*/

    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        width: 100%;
        margin: 0 auto;
    }

    .contact-info {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    form {
        width: 100%;
    }
}