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

:root {
    /* Paleta de Cores - Beach */
    --green-forest-100: #142407; 
    --green-emerald-200: #125538;
    --green-trebol-300: #17a72e;
    --green-pistache-400: #bae66b;
    --cream: #f8efae;

    /* cores neutras */
    --gray-200: #e8e8e8;
    --gray-400: #505861;
    --black: #171717;
    --white: #faf7ff;

    /* 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(107, 54, 200, 0.3);
    --shadow-lg: 0 0.5rem 1.5rem rgba(107, 54, 200, 0.2);

    /* 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 Padrã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 {
    flex: 1;
}

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

.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);
}

/* botão preenchido primário */

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

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

/* botão outline (secundário) */
.botao-outline {
    border-color: var(--green-trebol-300);
    background-color: transparent;
    color: var(--green-forest-100);
}

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

/* Modificar botões pequenos (usado em projetos) */
.botao.botao-sm,
.botao-outline.botao-sm {
    min-width: none;
    padding: 0.25rem var(--spacing-sm);
    border-width: 0.125rem;
    border-radius: 0.25rem;
    font-size: var(--text-sm);
}

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

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

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

#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-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,
.hero-content h1 .green-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);
}

.green-h1  {
    display: block;        
    color: var(--green-emerald-200);
}

/* Tecnologias - Hero */
.tech-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.tech-label {
    font-size: var(--text-sm) !important;
    font-weight: 600 !important;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.tech-icons img {
    width: 2.5rem;
    height: 2.5rem;
    transition: var(--transition-default);
    filter: grayscale(20%);
}

.tech-icons img:hover {
    transform: translateY(-0.25rem) scale(1.15);
    filter: grayscale(0%);
}

/* animação flutuante */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

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

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

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

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

.about-image img {
    width: 100%;
    border: 0.3rem solid var(--green-emerald-200);
    border-radius: var(--radius-lg);
    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-trebol-300);
}

.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-emerald-200);
}

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

/* seção projects (container) */
.projects-container {
    scroll-margin-top: 3rem;
    margin: var(--spacing-2xl) auto;
    text-align: center;
    
}

/* carrossel de projetos #7 */
.projects-swiper {
    position: relative;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-xl);
    overflow: hidden;
}

/* card do projeto */
.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(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-default);
}

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

/* card do projeto - imagem do projeto */

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

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


.project-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    width: 100%;
    height: 10rem;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--green-emerald-200) 0%, var(--gray-200) 100%);
}

/* .project-image img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 0.3rem;
} */

.project-image img:hover {
    transform: translateY(-0.25rem) scale(1.15);
}

/* Card do projeto - dados do projeto */
.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: 0.95rem;
    color: var(--gray-400);
}

.project-img {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
}

/* Card do projeto -tag */
.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-pistache-400);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--green-emerald-200);
}

/* Card do projeto - botões */
.project-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--spacing-sm);
}

/* Containers do swipper */
.swiper-wrapper {
    align-items: stretch;
}

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

/* Botões do swipper (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-emerald-200);
}

/* 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-emerald-200);
}

/* Seção Contact (container) */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

/* Informações de contato */
.contact-info h2 {
    margin-bottom: var(--spacing-md);
}

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

/* Redes socialis (comntainer) */
.social-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

/* Redes sociais - Icones */
.social-icon {
    width: 5rem;
    height: 5rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-default);
}

.social-icon img {
    width: 100%;
    filter: brightness(0) saturate(100%);
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0)
            invert(48%) 
            sepia(88%) 
            saturate(444%) 
            hue-rotate(85deg) 
            brightness(94%) 
            contrast(92%);
}

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

/* Formulario -label */

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

/* Formulario - Input e Text Area */
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.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: var(--green-emerald-200);
    outline: none;
}

/* Formulario - Text Area e Span */
form textarea {
    min-height: 5rem;
    resize: none;
}

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

/* Footer */
footer {
    padding: 2.5rem;
    background: linear-gradient( var(--green-emerald-200), var(--green-forest-100));
    font-weight: 600;
    text-align: center;
    color: var(--white);
}

/* Seção Success (Container) */
.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 - Conteúdo */
.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-forest-100);
}

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

/* Success - Icone */
.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: var(--radius-full);
    background-color: var(--cream);
}

.success-icon img {
    width: 6rem;
    height: 6rem;
    filter: brightness(0)
            invert(48%) 
            sepia(88%) 
            saturate(444%) 
            hue-rotate(85deg) 
            brightness(94%) 
            contrast(92%);

}

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

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

    /* Tipografia */
    .section-container h1,
    .hero-content h1 .green-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-xl);
    }
    

    /* Header - Oculta menu em telas pequenas */
    @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: 0.95rem;
    white-space: nowrap;
    }

    .tech-container {
        align-items: center;
    }

    .tech-icons img {
        width: 2rem;
        height: 2rem;
    }

    /* 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: 100%;
    }

    /* 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 Page */
    .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 - MOBILE */

    @media screen and (max-width: 480px) {

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

    /* Tipografia Mobile */
    .section-container h1,
    .hero-content h1 .green-h1 {
        font-size: var(--text-xl);
    }

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

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

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

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

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

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

    .menu-list {
        display: none;
    }

    /* Hero */
    .hero-container {
        gap: var(--spacing-sm);
    }

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

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

    .buttons-container .botao,
    .buttons-container .botao-outline {
        width: 100%;
    }

    .hero-container .botao,
    .hero-container .botao-outline {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        max-width: 20rem;
    }

    .tech-container {
        align-items: center;
    }

    .tech-icons img {
        width: 1.75rem;
        height: 1.75rem;
    }

    /* About */
    .about-container {
        margin: var(--spacing-lg) 0.5rem;
        padding: var(--spacing-md);
    }

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

    .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;
    }

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

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

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

    .projects-swiper {
        position: relative;
        margin: 0;
        padding: var(--spacing-sm) 0 2rem 0;
        overflow: visible;
    }

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

    .project-image {
        height: 10rem;
    }

    .project-content {
        padding: var(--spacing-md);
    }

    .project-content h3 {
        font-size: 1.25rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    /* Contact */
    .contact-container {
        width: 100%;
    }

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

    .social-container {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xs);
    }

    .social-icon {
        width: 4rem;
        height: 4rem;
    }

    /* Formulário */
    form {
        gap: var(--spacing-sm);
    }

    form label {
        font-size: 0.95rem;
    }

    form input,
    form textarea {
        padding: 0.75rem;
        font-size: var(--text-base);
    }

    form button {
        padding: 0.75rem var(--spacing-md);
        font-size: var(--text-base);
    }

    /* Footer */
    footer {
        padding: var(--spacing-md) var(--spacing-sm);
        font-size: var(--text-sm);
    }

    /* Success Page */
    .success-container {
        padding: var(--spacing-lg) var(--spacing-sm);
        min-height: calc(100vh - 8rem);
    }

    .success-content {
        gap: var(--spacing-md);
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

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

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

    .success-content .botao {
        width: 100%;
        max-width: 20rem;
        padding: 0.75rem var(--spacing-lg);
    }
}

