/* ========================================
   RESET
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.7;
    color: #eef8e9;

    /* Fundo de floresta */
    background:
        radial-gradient(circle at 15% 20%, rgba(76, 175, 80, 0.18), transparent 25%),
        radial-gradient(circle at 85% 70%, rgba(46, 125, 50, 0.20), transparent 30%),
        linear-gradient(
            135deg,
            #031f0d 0%,
            #063b19 25%,
            #0b5425 50%,
            #063617 75%,
            #02180a 100%
        );

    background-attachment: fixed;
    min-height: 100vh;
}


/* ========================================
   EFEITO DE FLORESTA NO FUNDO
======================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(115, 190, 90, 0.12),
            transparent 20%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(130, 200, 110, 0.10),
            transparent 18%
        );

    pointer-events: none;
    z-index: -1;
}


/* ========================================
   MENU
======================================== */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(2, 28, 12, 0.92);
    backdrop-filter: blur(10px);

    border-bottom: 2px solid #3d8b4d;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.45);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    padding: 18px;
    gap: 10px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;

    color: #c8edc3;
    text-decoration: none;

    padding: 10px 18px;
    border-radius: 25px;

    font-weight: bold;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

nav ul li a:hover {
    background-color: #286b38;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(76, 175, 80, 0.3);
}


/* ========================================
   SEÇÕES
======================================== */

section {
    width: 90%;
    max-width: 1100px;

    margin: 40px auto;
    padding: 50px 40px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 70, 31, 0.86),
            rgba(4, 39, 17, 0.90)
        );

    border: 1px solid rgba(120, 190, 100, 0.25);
    border-left: 5px solid #4d9b59;

    border-radius: 18px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(5px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(76, 175, 80, 0.08);
}


/* ========================================
   TÍTULOS
======================================== */

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);

    text-align: center;

    color: #d8f8d0;

    text-shadow:
        0 0 10px rgba(134, 239, 134, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.5);

    margin-bottom: 25px;
}

section h2 {
    position: relative;

    font-size: 2rem;

    color: #b9edb0;

    margin-bottom: 30px;
    padding-bottom: 12px;

    border-bottom: 2px solid #4e9655;
}

section h2::before {
    content: "🌿";

    margin-right: 10px;
}

h3 {
    color: #9fe49b;

    margin-top: 25px;
    margin-bottom: 10px;

    font-size: 1.35rem;
}


/* ========================================
   PARÁGRAFOS
======================================== */

p {
    margin-bottom: 18px;

    color: #e1f0dc;
}

#hero p {
    text-align: center;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}


/* ========================================
   HERO
======================================== */

#hero {
    min-height: 75vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(60, 130, 65, 0.25),
            transparent 60%
        ),
        linear-gradient(
            145deg,
            rgba(9, 65, 27, 0.92),
            rgba(2, 28, 12, 0.96)
        );

    border: 2px solid rgba(111, 190, 101, 0.3);

    position: relative;
    overflow: hidden;
}


/* Luz decorativa */

#hero::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    background: rgba(108, 191, 93, 0.12);

    border-radius: 50%;

    top: -100px;
    right: -80px;

    filter: blur(5px);
}


/* ========================================
   BOTÃO
======================================== */

#hero a {
    display: inline-block;

    background:
        linear-gradient(
            135deg,
            #65b86b,
            #347a42
        );

    color: #06240e;

    padding: 13px 30px;

    border-radius: 30px;

    text-decoration: none;

    font-weight: bold;

    margin-top: 15px;

    border: 2px solid #8bd889;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.3);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

#hero a:hover {
    background:
        linear-gradient(
            135deg,
            #9bea95,
            #5cad65
        );

    transform: translateY(-5px) scale(1.03);

    box-shadow:
        0 10px 25px rgba(89, 190, 90, 0.35);
}


/* ========================================
   HABILIDADES
======================================== */

#habilidades ul {
    list-style: none;

    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );

    gap: 20px;
}

#habilidades li {
    padding: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(42, 103, 49, 0.7),
            rgba(7, 49, 20, 0.8)
        );

    border: 1px solid #477e4d;

    border-radius: 15px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

#habilidades li:hover {
    transform: translateY(-7px);

    border-color: #8bd889;
}

#habilidades li strong {
    display: block;

    color: #a8eaa3;

    font-size: 1.2rem;

    margin-bottom: 10px;
}


/* ========================================
   PROJETOS
======================================== */

#projetos article {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Subtítulo do projeto */
#projetos h3 {
    background:
        linear-gradient(
            135deg,
            rgba(42, 103, 49, 0.85),
            rgba(7, 49, 20, 0.9)
        );

    color: #a8eaa3;

    padding: 18px 22px;

    margin-top: 20px;
    margin-bottom: 0;

    border-left: 5px solid #67ad6c;

    border-radius: 12px 12px 0 0;

    font-size: 1.35rem;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.25);

    transition: 0.3s ease;
}

/* Animação do subtítulo */
#projetos h3:hover {
    transform: translateX(5px);

    color: #d4ffd0;

    border-left-color: #a1ee9d;

    box-shadow:
        0 0 15px rgba(103, 173, 108, 0.25);
}


/* Texto que fica ABAIXO do subtítulo */
#projetos p {
    background:
        rgba(5, 40, 17, 0.8);

    color: #e1f0dc;

    padding: 18px 22px;

    margin: 0 0 10px 20px;

    border-left: 3px solid #477e4d;

    border-radius: 0 0 12px 12px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   CURRÍCULO
======================================== */

#curriculo {
    text-align: center;
}

#curriculo a {
    display: inline-block;

    margin-top: 10px;

    padding: 12px 25px;

    background-color: #397c44;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    border: 1px solid #72c878;

    transition: 0.3s;
}

#curriculo a:hover {
    background-color: #64aa69;

    transform: scale(1.05);
}


/* ========================================
   FORMULÁRIO
======================================== */

#contato form {
    max-width: 700px;

    margin: auto;
}

label {
    display: block;

    color: #c8ebc3;

    font-weight: bold;

    margin-bottom: 5px;
}

input,
textarea {
    width: 100%;

    padding: 13px;

    border: 2px solid #3f7647;

    border-radius: 8px;

    font-size: 1rem;

    margin-bottom: 18px;

    background-color: rgba(239, 250, 235, 0.95);

    color: #18351d;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #80d67e;

    outline: none;

    box-shadow:
        0 0 10px rgba(99, 201, 96, 0.25);
}

textarea {
    resize: vertical;
}


/* ========================================
   BOTÃO DO FORMULÁRIO
======================================== */

button[type="submit"] {
    background:
        linear-gradient(
            135deg,
            #54b960,
            #286e36
        );

    color: white;

    padding: 13px 30px;

    border: 1px solid #83db83;

    border-radius: 25px;

    cursor: pointer;

    font-size: 1rem;

    font-weight: bold;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    background:
        linear-gradient(
            135deg,
            #80d980,
            #3f914b
        );

    transform: translateY(-3px);

    box-shadow:
        0 7px 18px rgba(55, 160, 65, 0.3);
}


/* ========================================
   RODAPÉ
======================================== */

footer {
    background:
        linear-gradient(
            135deg,
            #021b09,
            #063519
        );

    color: #9bd59b;

    text-align: center;

    padding: 30px;

    margin-top: 50px;

    border-top: 2px solid #3c7845;

    box-shadow:
        0 -5px 20px rgba(0, 0, 0, 0.3);
}


/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 600px) {

    nav ul {
        flex-direction: column;
        gap: 5px;
    }

    nav ul li a {
        padding: 8px 15px;
    }

    section {
        width: 94%;
        padding: 35px 20px;
        margin: 25px auto;
    }

    #hero {
        min-height: 80vh;
    }

    h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 1.7rem;
    }

    #habilidades ul {
        grid-template-columns: 1fr;
    }
}

/* FOTO DE PERFIL */
.foto-perfil {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #8bd889;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.4);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.foto-perfil:hover {
    transform: scale(1.05);
}


/* CARTÃO DO CURRÍCULO */
.curriculo-card {
    max-width: 550px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
    background: rgba(4, 39, 17, 0.8);
    border: 1px solid #4e9655;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.icone-curriculo {
    font-size: 55px;
    margin-bottom: 10px;
}

.curriculo-card h3 {
    margin-top: 10px;
}

.botao-curriculo {
    display: inline-block;
    margin: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    background: #65b86b;
    color: #06240e;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.botao-curriculo:hover {
    background: #9bea95;
    transform: translateY(-3px);
}

.botao-curriculo.secundario {
    background: transparent;
    border: 1px solid #8bd889;
    color: #d8f8d0;
}
