* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --main-color: #e53232;
    --second-color: #2c3e50;
    --other-color: #7f8c8d;
    --big-font: 4.5rem;
    --h2-font: 2.6rem;
    --p-font: 1.1rem;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-color);
    padding: 23px 15%;
    transition: all .38s ease;
}

header.sticky {
    padding: 15px 15%;
    box-shadow: 0px 4px 15px rgb(0 0 0 / 8%);
}

.logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-color);
}

.navlist {
    display: flex;
}

.navlist a {
    color: var(--text-color);
    font-size: var(--p-font);
    font-weight: 600;
    margin: 0 25px;
    transition: all .38s ease;
}

.navlist a:hover {
    color: var(--main-color);
}

#menu-icon {
    font-size: 34px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

section {
    padding: 120px 15% 90px;
    scroll-margin-top: 80px; /* Adiciona margem para scroll */
}

.home {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
}

.slide {
    margin-bottom: 20px;
}

.one {
    font-size: var(--p-font);
    font-weight: 500;
    margin-right: 15px;
}

.two {
    font-size: var(--p-font);
    font-weight: 500;
    margin-left: 15px;
}

.home-text h1 {
    font-size: var(--big-font);
    font-weight: 700;
    margin-bottom: 15px;
}

.home-text h3 {
    color: var(--text-color);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.home-text h3 span {
    color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 13px 25px;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    transition: all .38s ease;
}

.btn:hover {
    transform: translateY(-5px);
    background: var(--second-color);
}

.about, .experience {
    background: #f9f9f9;
}

section h2 {
    font-size: var(--h2-font);
    margin-bottom: 30px;
    color: var(--second-color);
}

.about-text p {
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 20px;
}

.education {
    margin-top: 50px;
}

.education-item {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all .38s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.education-item h3 {
    color: var(--second-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.education-item p {
    color: var(--text-color);
    margin-bottom: 5px;
}

.education-item span {
    color: var(--other-color);
    font-size: 0.9rem;
}

.experience-item {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all .38s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.experience-item h3 {
    color: var(--second-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.experience-item h4 {
    color: var(--main-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.experience-item span {
    color: var(--other-color);
    font-size: 0.9rem;
}

.experience-item .location {
    color: var(--other-color);
    font-style: italic;
    margin: 8px 0;
}

.experience-item .description {
    margin-top: 15px;
    line-height: 1.6;
}

footer {
    background: var(--second-color);
    padding: 50px 15%;
    color: var(--bg-color);
}

footer h2 {
    text-align: center;
    color: var(--bg-color);
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 24px;
    color: var(--main-color);
}

.contact-item a {
    color: var(--bg-color);
    transition: all .38s ease;
}

.contact-item a:hover {
    color: var(--main-color);
}

@media (max-width: 1240px) {
    header {
        padding: 18px 4%;
    }
    section {
        padding: 100px 4% 70px;
        scroll-margin-top: 70px;
    }
    footer {
        padding: 50px 4%;
        scroll-margin-top: 70px;
    }
}

@media (max-width: 840px) {
    #menu-icon {
        display: block;
    }
    .navlist {
        position: absolute;
        top: -600px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        transition: all .38s ease;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    .navlist a {
        display: block;
        padding: 15px;
        margin: 5px 0;
        border-radius: 5px;
    }
    .navlist a:hover {
        background: var(--main-color);
        color: var(--bg-color);
    }
    .navlist.active {
        top: 100%;
    }
    .home {
        height: auto;
        padding-top: 150px;
    }
    :root {
        --big-font: 3.2rem;
        --h2-font: 2rem;
    }
}

@media (max-width: 460px) {
    :root {
        --big-font: 2.8rem;
        --h2-font: 2rem;
        --p-font: 1rem;
    }
    .home {
        padding-top: 120px;
    }
    .about, .experience {
        padding: 70px 4% 50px;
    }
    .education-item, .experience-item {
        padding: 20px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
