:root {
    --color-text-button-hover: #2c1e56;
    --button-color-hover: #fff;
    --button-color: #fff;
    --header-color: #040926;
    --header-text-color: #ffffff;
    --headerLogo-image: #fff;
    --sectionPresentation-image: linear-gradient(90deg, #251351 60%, #7D2E68 50%);
    --sectionPresentationText-color: #ffffff;
    --sectionProjects-image: linear-gradient(90deg, rgba(37, 19, 81, 1) 0%, rgba(76, 58, 105, 1) 50%, rgba(76, 58, 105, 1) 10%, rgba(76, 58, 105, 1) 90%, rgba(125, 46, 104, 1) 100%);
    --textProjects-color: #ffffff;
    --skillssection-image: linear-gradient(0deg, rgba(4, 9, 38, 1) 0%, rgba(76, 58, 105, 1) 74%);
    --contactSection-image: linear-gradient(180deg, rgba(4, 9, 38, 1) 0%, rgba(37, 19, 81, 1) 70%);
    --textContactSection-color: #ffffff;
    --footer-image: linear-gradient(0deg, rgba(4, 9, 38, 1) 0%, rgba(37, 19, 81, 1) 70%);
    --footerText-color: #ffffff;
    --menu-Teleco_color: #040926;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.5s;

}

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* Header CSS */


header {
    font-family: "Stylish", sans-serif;
    background-color: var(--header-color);
    height: 12vh;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;

    #menu-btn {
        display: none;
    }

    aside {
        display: none;
    }

    .logo {
        margin-left: 5%;
        filter: var(--headerLogo-image);
    }

    .menu {
        display: flex;
        justify-content: space-around;
        width: 40%;
        margin-left: 10%;
        margin-right: 5%;

        a {
            color: var(--header-text-color);
            font-size: 1.5rem;
            transition: .3s;

            &:hover {
                color: #00bfff;
            }
        }
    }

    .social-media {
        display: flex;
        justify-content: space-around;
        width: 20%;
        margin-left: 5%;

        a svg {
            height: 4vh;
            transition: .3s;
            fill: var(--header-text-color);

            &:hover {
                transform: scale(1.2);
            }
        }
    }

    .modeClaroEEscuro {
        #icon {
            margin-left: 5%;
            height: 37px;
            width: 37px;
        }

        button {
            background: none;
            border: none;
            cursor: pointer;
            outline: none;
            padding: 0;
        }
    }
}

/* Section Presentation  */
#sectionPresentation {
    display: flex;
    justify-content: space-between;
    padding: 4rem;
    background: var(--sectionPresentation-image);
    color: #fff;
    font-family: "Poppins", sans-serif;
    min-height: 80vh;

    .Texts {
        max-width: 55%;

        .description {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            color: var(--sectionPresentationText-color);
            font-weight: bold;
        }

        .bottomTexts {
            display: flex;
            gap: 2rem;
            font-size: 0.95rem;
            color: #7D2E68;
            max-width: 90%;
            font-weight: bold;
        }

        h1 {
            margin-bottom: 5%;
            font-family: "Stylish", sans-serif;
            font-size: 4.2rem;
            color: #7946CA;
        }

        #typing-container {
            font-family: "Story Script", sans-serif;
            font-size: 4rem;
            color: #7D2E68;
            height: 7rem;
            margin-bottom: 5%;
        }
    }

    .MyPhoto {
        img {
            width: 280px;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
        }
    }

}

/* Section Projects */
#sectionProjects {
    height: auto;
    /* deixa altura fluida */
    width: 100%;
    background: #251351;
    background: var(--sectionProjects-image);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;

    h1 {
        color: var(--textProjects-color);
        font-family: "Stylish", sans-serif;
        font-size: 4rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    #projetos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* responsivo */
        gap: 1.5rem;
        width: 100%;
        max-width: 1200px;

        >div {
            border: var(--textProjects-color) 1px solid;
            border-radius: 20px;
            padding: 1rem;
            background: transparent;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            min-height: 200px;
            /* garante altura mínima */
        }

        p {
            color: var(--textProjects-color);
            font-family: "Stylish", sans-serif;
            font-size: 1.2rem;
            margin: 0.5rem 0;
            word-wrap: break-word;
            /* evita quebrar estranho */
        }

        .linha {
            width: 100%;
            height: 1px;
            border-bottom: var(--textProjects-color) 1px solid;
            margin: 0.5rem 0;
        }
    }

    #visitMyGitHub {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        margin-top: 2rem;
        width: auto;
        min-width: 180px;
        padding: 12px 24px;
        font-size: 1rem;
        border: 2px solid var(--button-color);
        border-radius: 15px;
        background-color: transparent;
        color: var(--button-color);
        font-weight: bold;
        cursor: pointer;
        transition: 0.3s;

    }
}

/*Skills Section*/
#skillssection {
    height: 120vh;
    width: 100%;
    background-image: var(--skillssection-image);
    display: flex;
    justify-content: center;
    align-items: center;

    #SquareSkills {
        background-color: white;
        width: 80%;
        height: 100%;
        border-top-left-radius: 3%;
        border-top-right-radius: 3%;

        h1 {
            color: #040926;
            font-family: "Stylish", sans-serif;
            font-size: 5rem;
            margin-left: 5%;
            margin-top: 5%;
        }

        #typeSkills {
            margin-top: 5%;
            width: 100%;
            height: 20%;
            display: flex;
            justify-content: space-around;
            align-items: center;

            p {
                font-family: "Stylish", sans-serif;
                font-size: 2rem;
                color: #040926;
                font-weight: bold;
                text-align: center;
                margin-top: 5%;
            }
        }

        #textSkills {
            margin-top: 1%;
            width: 100%;
            height: 5%;
            display: flex;

            #SoftSkillsText {
                width: 50%;

                p {
                    font-family: "Stylish", sans-serif;
                    font-size: 1.5rem;
                    color: #7D2E68;
                    text-align: center;
                    font-weight: bolder;
                }
            }

            #hardSkillsText {
                width: 50%;

                p {
                    font-family: "Stylish", sans-serif;
                    font-size: 1.5rem;
                    color: #7D2E68;
                    text-align: center;
                    font-weight: bolder;
                }
            }
        }

        #HardSkillsandSoftSkills {
            display: flex;
            width: 100%;
            height: 51%;

            #Languages {
                width: 50%;
                text-align: center;

                h1 {
                    font-family: "Stylish", sans-serif;
                    font-size: 2.5rem;
                    color: #6C00F3;
                    margin-left: 5%;
                    margin-top: 5%;
                    margin-bottom: 5%;
                }

                p {
                    font-family: "Stylish", sans-serif;
                    font-size: 1.5rem;
                    color: #7D2E68;
                    font-weight: bolder;
                }
            }

            #SoftSkillsList {
                width: 50%;
                text-align: center;

                h1 {
                    font-family: "Stylish", sans-serif;
                    font-size: 2.5rem;
                    color: #6C00F3;
                    margin-left: 0%;
                    margin-top: 5%;
                    text-align: center;
                }

                p {
                    font-family: "Stylish", sans-serif;
                    font-size: 1.5rem;
                    color: #7D2E68;
                    font-weight: bolder;
                    text-align: center;
                }
            }
        }
    }
}

/* Contact Section */
#contactSection {
    height: 80vh;
    width: 100%;
    background-image: var(--contactSection-image);
    background-size: cover;
    display: flex;
    justify-content: center;

    div {
        width: 50%;
        margin-left: 2%;

        h1 {
            color: var(--textContactSection-color);
            font-family: "Stylish", sans-serif;
            font-size: 6rem;
            margin-left: 5%;
            margin-top: 5%;

        }

        p {
            color: var(--textContactSection-color);
            font-family: "Stylish", sans-serif;
            font-size: 2rem;
            margin-left: 5%;
            margin-top: 2%;

            a {
                color: var(--textContactSection-color);
                font-weight: bold;
                transition: 0.2s;
                cursor: pointer;
                text-decoration: underline;
            }

            a:hover {
                color: #7946CA;
            }
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
        }

        input,
        textarea {
            background: transparent;
            border: 1px solid #D9D9D9;
            color: var(--textContactSection-color);
            padding: 10px;
            font-size: 1rem;
            margin-top: 1%;
        }

        textarea {
            min-height: 120px;
        }

        button {
            width: 15%;
            height: 10%;
            padding: 10px 20px;
            background-color: transparent;
            border: 2px solid var(--textContactSection-color);
            text-decoration: none;
            color: var(--textContactSection-color);
            font-weight: bold;
            box-shadow: rgb(63, 63, 63) 5px 5px;
            transition: background 0.3s;
            cursor: pointer;
        }

        button:hover {
            background-color: var(--button-color-hover);
            color: var(--color-text-button-hover);
            box-shadow: rgb(0, 0, 0) 5px 5px;
        }
    }
}

/* Section Footer  */
footer {
    height: 55vh;
    width: 100%;
    background-image: var(--footer-image);
    background-size: cover;
    display: flex;

    img {
        filter: var(--headerLogo-image);
    }

    #footerContent {
        margin-top: 5%;
        width: 100%;
        text-align: center;

        .footerText {
            color: var(--footerText-color);
            font-family: "Stylish", sans-serif;
            font-size: 1.5rem;
        }

        .rights {
            color: var(--footerText-color);
            font-family: "Stylish", sans-serif;
            font-size: 1rem;
            margin-top: 1%;
        }

        #socialMediaFooter {
            margin-top: 2%;

            a svg {
                height: 4vh;
                margin: 0 1%;
                transition: .3s;
                fill: var(--footerText-color);

                &:hover {
                    transform: scale(1.2);
                }
            }
        }

        p {
            margin-top: 2%;
            color: var(--footerText-color);
        }
    }
}

.lightMode {
    --color-text-button-hover: black;
    --button-color-hover: #9B75D8;
    --button-color: #4d3b6a;
    --header-color: #fff;
    --header-text-color: #000000;
    --headerLogo-image: invert(1);
    --sectionPresentation-image: #fff;
    --sectionPresentationText-color: #000000;
    --sectionProjects-image: #fff;
    --textProjects-color: #000000;
    --skillssection-image: #fff;
    --contactSection-image: #fff;
    --textContactSection-color: #000000;
    --footer-image: #fff;
    --footerText-color: #000;
    --menu-Teleco_color: #9a74d7;
}

@media (max-width: 550px) {

    /* Estilos para dispositivos móveis */
    header {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        .modeClaroEEscuro {
            justify-self: end;
        }

        #menu-btn {
            display: block;
            position: absolute;
            border: none;
            cursor: pointer;
            width: 100%;
            height: 100%;
            opacity: 0;
            z-index: 99;
        }

        #dropdown {
            display: grid;
            grid-template-rows: 2fr repeat(4, 1fr) repeat(3, 2fr);
            grid-template-columns: repeat(2, 1fr);
            position: fixed;
            top: 0;
            left: -550px;
            width: 250px;
            height: 100%;
            background-color: var(--menu-Teleco_color);
            transition: left 0.3s ease;

            svg {
                margin-top: 18%;
            }



            #projectsMenu {
                grid-column: span 2;
                grid-row: 2;
                align-self: self-end;

                a {
                    font-family: "Poppins", sans-serif;
                    font-size: 30px;
                    color: var(--textProjects-color);
                    transition: .3s;

                    &:hover {
                        color: #00bfff;
                    }
                }

                .linha {
                    width: 100%;
                    height: 5px;
                    border-bottom: 3px solid var(--footerText-color);
                }
            }

            #skillsMenu {
                grid-column: span 2;
                grid-row: 3;
                align-self: self-end;

                a {
                    font-family: "Poppins", sans-serif;
                    font-size: 30px;
                    color: var(--textProjects-color);
                    transition: .3s;

                    &:hover {
                        color: #00bfff;
                    }
                }

                .linha {
                    width: 100%;
                    height: 5px;
                    border-bottom: 3px solid var(--footerText-color);
                }
            }

            #contactMenu {
                grid-column: span 2;
                grid-row: 4;
                align-self: self-end;

                a {
                    font-family: "Poppins", sans-serif;
                    font-size: 30px;
                    color: var(--textProjects-color);
                    transition: .3s;

                    &:hover {
                        color: #00bfff;
                    }
                }

                .linha {
                    width: 100%;
                    height: 5px;
                    border-bottom: 3px solid var(--footerText-color);
                }
            }

            #ResumeMenu {
                grid-row: 5;
                grid-column: span 2;
                align-self: self-end;

                a {
                    font-family: "Poppins", sans-serif;
                    font-size: 30px;
                    color: var(--textProjects-color);
                    transition: .3s;

                    &:hover {
                        color: #00bfff;
                    }
                }

                .linha {
                    width: 100%;
                    height: 5px;
                    border-bottom: 3px solid var(--footerText-color);
                }
            }

            .logo {
                grid-column: span 2;
            }

            .footerText {
                font-size: 30px;
                text-align: center;
                grid-column: span 2;
                justify-self: center;
                color: var(--footerText-color);
            }

            .footerText2 {
                font-size: 15px;
                text-align: center;
                grid-column: span 2;
                justify-self: center;
                color: var(--footerText-color);
            }

            #socialMediaFooter {
                justify-self: center;
                grid-column: span 2;

                p {
                    color: var(--footerText-color);
                }
            }
        }

        #menu-btn:checked~#dropdown {
            display: grid;
            grid-template-rows: 2fr repeat(4, 1fr) repeat(3, 2fr);
            position: fixed;
            top: 0;
            left: 0px;
            width: 100%;
            height: 100%;
            background-color: var(--menu-Teleco_color);
            transition: 0.5s;
        }

        .logo {
            grid-column: 2;
            align-self: center;
            justify-self: center;
        }

        &>*:not(.logo, .modeClaroEEscuro) {
            display: none;
        }
    }

    #menu1 {
        display: block;
        grid-column: 1;

        width: 40px;
        position: relative;
        z-index: 99;

        svg {
            fill: var(--header-text-color);
            width: 40px;
        }
    }

    #sectionPresentation {
        flex-direction: column;

        .Texts {
            max-width: 100%;

            h1 {
                font-size: 3rem;
                margin-bottom: 2rem;
            }

            #typing-container {
                font-size: 2.5rem;
                width: 50%;
                margin-bottom: 3rem;
            }

            .bottomTexts {
                display: flex;
                flex-direction: column;
                gap: 2rem;
                font-size: 0.95rem;
                color: #7D2E68;
                max-width: 50%;
                font-weight: bold;
            }
        }

        .MyPhoto {
            margin-top: 2rem;
            text-align: center;

            img {
                width: 200px;
            }
        }
    }

    #SectionProjects {
        grid-template-columns: 1fr;
        height: auto;
        padding: 2rem 1rem;

        h1 {
            font-size: 4rem;
            text-align: center;
            margin-bottom: 2rem;
        }

        #projetos {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
            gap: 1.5rem;

            div {
                width: 90%;
                height: auto;
                min-height: unset;
                padding: 1rem;
            }

            p {
                font-size: 20px;
            }

            .textbelara,
            .textBitMap,
            .textTulen,
            .textEcommerce {
                font-size: 20px;
            }
        }

        #visitMyGitHub {
            grid-column: 1;
            text-align: center;

            button {
                width: 60%;
                font-size: 1rem;
            }
        }
    }

    #skillssection {
        height: auto;
        padding: 2rem 0;

        #SquareSkills {
            width: 95%;
            height: auto;
            padding: 1rem;

            h1 {
                font-size: 3rem;
                margin-left: 0;
                text-align: center;
            }

            #typeSkills {
                height: auto;
                gap: 1rem;

                img {
                    height: 67px;
                    margin-left: 20%;
                }
            }

            #textSkills {
                align-items: center;
                height: auto;

                #SoftSkillsText,
                #hardSkillsText {
                    width: 100%;
                    margin-top: 1rem;
                }
            }

            #HardSkillsandSoftSkills {
                flex-direction: column;
                align-items: center;
                height: auto;

                #Languages,
                #SoftSkillsList {
                    width: 100%;
                    margin-bottom: 2rem;

                    h1 {
                        margin: 1rem 0;
                        font-size: 2rem;
                    }

                    p {
                        font-size: 1.2rem;
                    }
                }

            }
        }
    }

    #contactSection {
        div {
            width: 80%;
            margin: 0 auto;

            h1 {
                font-size: 4rem;
                text-align: center;
            }

            p {
                font-size: 1.6rem;
                text-align: center;
            }

            button {
                width: 50%;
                margin: 0 auto;
                display: block;
            }
        }
    }

    footer {
        display: none;
    }
}