*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --white-100: #f5eee6;
    --black-000: #000000;
    --black-020: #060606;
    --black-050: #0c0c0c;
    --black-100: #141414;
    --black-200: #1c1c1c;
    --black-300: #202020;
    --black-400: #242424;
    --black-500: #282828;
    --orange-100: #fe8019;
    --orange-400: #bf5f10;
    --orange-500: #7a3c09;
    --aqua-100: #689d6a;
    --aqua-400: #4d754f;
    --purple-100: #b16286;
    --blue-100: #458588;
    --blue-400: #346467;
    --red-100: #fb4934;
    --red-200: #e7422f;
    --red-400: #c03425;
    --green-100: #98971a;
    --yellow-100: #d79921;
    --yellow-200: #bd871c;
    --yellow-300: #a67617;
    --cream-100: #ebdbb2;
    --cream-200: #ccbe9a;
    --cream-400: #b2a585;
    --cream-500: #877c63;
    --cream-600: #736a53;
    --opct-white-200: #f5eee633;
    --opct-white-500: #f5eee580;
    --opct-white-700: #f5eee5b3;
    --opct-orange-100: #fe80191a;
    --opct-orange-200: #fe801933;
    --opct-orange-300: #fe80194d;
    --opct-aqua-300: #689d6a4d;
    --opct-purple-100: #b162861a;
    --opct-purple-200: #b1628633;
    --opct-purple-300: #b162864d;
    --opct-red-100: #fb49341a;
    --opct-red-200: #fb493433;
    --opct-red-300: #fb49344d;
    --opct-green-100: #98971a1a;
    --opct-green-200: #98971a33;
    --opct-green-300: #98971a4d;
    --opct-yellow-100: #d799211a;
    --opct-yellow-200: #d7992133;
    --opct-yellow-300: #d799214d;
    --opct-cream-020: #ebdbb205;
    --opct-cream-050: #ebdbb20d;
    --opct-cream-100: #ebdbb21a;
    --opct-cream-200: #ebdbb233;
    --opct-cream-300: #ebdbb24d;
}

::-webkit-scrollbar {
    width: 5px;
    background: var(--black-100);
}

::-webkit-scrollbar-thumb {
    background: var(--cream-600);
}

body {
    background: linear-gradient(90deg, var(--black-100), var(--black-500), var(--black-500), var(--black-100));
    border-top: 30px solid var(--black-050);
    padding-top: 65px;
}

.pixels {
    background-size: 260px;
    background-repeat: repeat-x;
    background-blend-mode: multiply;
    margin: auto;
    position: relative;
    max-width: 830px;
    z-index: -2;
}

.pixels-top {
    margin-bottom: -3px;
    height: 157px;
    background-image: url(./assets/images/pixels-top-s.svg);
}

.pixels-bottom {
    margin-top: -2px;
    height: 157px;
    background-image: url(./assets/images/pixels-bottom-s.svg);
}

a {
    text-decoration: none;
}

header {
    padding-right: 10px;
    display: flex;
    justify-content: space-between;
    margin: 30px auto -5px auto;
    height: 60px;
    max-width: 855px;
    backdrop-filter: blur(3px);
    background: radial-gradient(at 50% 0%, var(--opct-cream-050), var(--opct-cream-100));
    border-radius: 50px;
    border: 1px solid var(--opct-cream-100);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--black-020);
        height: 90px;
        width: 90px;
        border-radius: 50%;
        border: 2px solid var(--cream-400);
        margin-left: -30px;
        margin-top: -16px;
        transition: 0.5s;

        #bolt {
            position: absolute;
            height: 72px;
            opacity: 0.8;
            transition: 0.5s;

            @media (max-width: 970px) {
                height: 58px;
            }
        }

        &:hover {
            box-shadow: 0px 0px 15px var(--black-000);
            background-color: var(--black-050);
            border: 2px solid var(--cream-200);

            #bolt {
                opacity: 1;
            }
        }

        @media (max-width: 970px) {
            margin-left: -3px;
            margin-top: -7px;
            height: 74px;
            width: 74px;
        }

        @media (max-width: 576px) {
            display: none;
        }
    }

    nav {
        display: flex;
        align-items: center;

        ul {
            display: flex;
            list-style-type: none;
            gap: 2px;

            li {
                display: inline-block;

                a {
                    display: inline-block;
                    font-family: "Silkscreen";
                    font-size: 15px;
                    text-align: center;
                    padding: 10px 30px;

                    @media (max-width: 510px) {
                        padding: 10px 0px;
                    }
                }

                .button-one {
                    color: var(--cream-100);
                    background-color: var(--black-050);
                    border-radius: 20px 2px 2px 20px ;
                    width: 100%;
                    transition: 0.2s;

                    &:hover {
                        box-shadow: 0px 4px 0px var(--cream-400);
                        margin-top: -3px;
                    }

                    @media (max-width: 576px) {
                        width: 100%;
                    }
                }

                .button-two {
                    color: var(--cream-100);
                    background: linear-gradient(-50deg, var(--orange-400), var(--black-050), var(--black-050));
                    border-radius: 2px;
                    transition: 0.2s;

                    &:hover {
                        box-shadow: 0px 4px 0px var(--cream-400);
                        margin-top: -3px;
                    }

                    @media (max-width: 576px) {
                        width: 100%;
                    }
                }

                .button-three {
                    color: var(--black-000);
                    background: linear-gradient(160deg, var(--orange-500), var(--orange-400), var(--orange-100));
                    border-radius: 2px 20px 20px 2px;
                    transition: 0.2s;

                    &:hover {
                        box-shadow: 0px 4px 0px var(--cream-400);
                        margin-top: -3px;
                    }

                    @media (max-width: 576px) {
                        width: 100%;
                    }
                }

                @media (max-width: 576px) {
                    width: 33%;
                }
            }

            @media (max-width: 576px) {
                width: 100%;
            }
        }

        @media (max-width: 576px) {
            width: 100%;
        }
    }

    @media (max-width: 970px) {
        width: 92%;
    }

    @media (max-width: 576px) {
        justify-content: center;
        padding: 10px;
    }
}

main {
    margin-bottom: 0px;

    .container {
        margin: auto;
        max-width: 830px;
    }

    .subtitle {
        font-family: "Silkscreen";
        font-size: 50px;
        background-color: var(--black-020);
        color: var(--cream-200);
        text-align: center;
        padding: 60px 0px 60px 0px;
        border-bottom: 4px solid var(--opct-cream-100);

        @media (max-width: 490px) {
            font-size: 44px;
        }

        @media (max-width: 430px) {
            font-size: 34px;
        }
    }

    #about-me-section {
        background-color: var(--black-050);
        padding-bottom: 60px;

        .my-name {
            background-color: var(--black-050);
            font-family: "Silkscreen";
            text-align: center;
            padding: 20px 0px 60px 0px;
            border-bottom: 4px solid var(--opct-cream-050);
            width: 85%;
            margin: auto;

            h1 {
                text-align: center;
                font-size: 62px;
                color: var(--cream-100);
                margin: 0px auto 5px auto;

                @media (max-width: 620px) {
                    font-size: 62px;
                }

                @media (max-width: 560px) {
                    font-size: 56px;
                }

                @media (max-width: 500px) {
                    font-size: 50px;
                }

                @media (max-width: 470px) {
                    font-size: 46px;
                }

                @media (max-width: 440px) {
                    font-size: 42px;
                }
            }

            h2 {
                font-size: 22px;
                font-weight: 200;
                color: var(--cream-600);
                padding-top: 10px;
                margin-bottom: -20px;

                @media (max-width: 500px) {
                    font-size: 18px;
                }
            }

            h3 {
                font-size: 18px;
                font-weight: 200;
                margin-top: -6px;
                color: var(--cream-600);

                @media (max-width: 500px) {
                    font-size: 16px;
                }
            }

            strong {
                font-size: 22px;
                font-weight: 900;
                color: var(--cream-400);

                @media (max-width: 500px) {
                    font-size: 18px;
                }
            }
        }

        .description {
            width: 85%;
            margin: 60px auto 20px auto;
            background-color: var(--black-100);
            border-left: 6px solid var(--blue-400);
            border-radius: 0px 3px 3px 0px;
            padding: 20px 25px;

            p {
                font-family: "IBM PLex Mono";
                font-weight: 300;
                font-size: 13px;
                color: var(--cream-400);
                text-align: justify;
                line-height: 1.8;
                padding: 10px 0px;

                strong {
                    font-weight: 600;
                }

                .yellow {
                    color: var(--yellow-200);
                }

                .red {
                    color: var(--red-400);
                }
            }
        }
    }

    #projects-section {
        margin: 40px auto 2px auto;
        background-color: var(--black-050);
        padding-bottom: 20px;
        border-top: 4px solid var(--black-020);
        border-radius: 3px 3px 0px 0px;

        .project {
            background-color: var(--black-100);
            border-radius: 3px;
            display: flex;
            margin: 40px auto;
            flex-direction: column;
            width: 85%;

            .project-title {
                display: flex;
                background-color: var(--black-200);
                font-family: "IBM Plex Mono";
                align-items: center;
                border-bottom: 2px solid var(--opct-cream-050);
                border-radius: 3px 3px 0px 0px;

                h3 {
                    font-size: 22px;
                    color: var(--red-400);
                    margin: 25px 10px 25px 25px;
                }

                p {
                    font-size: 11px;
                    font-weight: 400;
                    padding: 2px 5px;
                    border-radius: 50px;
                }

                .purple {
                    color: var(--purple-100);
                    background-color: var(--opct-purple-100);
                    border: 1px solid var(--opct-purple-300);
                }

                .green {
                    color: var(--green-100);
                    background-color: var(--opct-green-100);
                    border: 1px solid var(--opct-green-300);
                }
            }

            .project-text {
                padding-top: 25px;
                
                .app-image {
                    display: flex;
                    float: left;
                    margin: 5px 25px 15px 25px;
                    max-width: 250px;
                    border-radius: 3px;
                    opacity: 0.6;

                    @media (max-width: 580px) {
                        float: none;
                        margin: 0px auto 25px auto;
                        max-width: 270px;
                    }
                }

                .website-image {
                    display: flex;
                    float: left;
                    background-color: var(--black-300);
                    margin: 5px 25px 10px 25px;
                    padding: 10px;
                    max-width: 120px;
                    border-radius: 3px;
                    opacity: 0.7;

                    @media (max-width: 450px) {
                        max-width: 90px;
                    }
                }

                p {
                    text-align: justify;
                    font-family: "IBM Plex Mono";
                    color: var(--cream-400);
                    font-size: 12px;
                    line-height: 1.5;
                    margin: 0px 25px 15px 25px;
                }

                .techs {
                    display: flex;
                    flex-flow: row;
                    justify-content: center;
                    margin: 10px 0px 25px 0px;
                    gap: 15px;

                    .tech-item {
                        display: flex;
                        flex-flow: column;
                        align-items: center;
                        gap: 2px;

                        .fa-brands, .fa-solid {
                            color: var(--cream-400);
                            font-size: 28px;
                        }

                        p {
                            font-size: 10px;
                            margin: 0px;
                            color: var(--cream-600);
                        }
                    }
                }

                .link-button {
                    border-top: 2px solid var(--opct-cream-020);
                    text-align: right;
                    padding: 15px 25px;

                    a {
                        background-color: var(--opct-cream-020);
                        font-family: "IBM Plex Mono";
                        font-size: 12px;
                        font-weight: 600;
                        padding: 2px 4px;
                        border: 1px solid var(--opct-cream-050);
                        border-radius: 3px;
                        transition: 0.2s;
                        margin-left: 5px;

                        &:hover {
                            background-color: var(--opct-cream-050);
                            border: 1px solid var(--opct-cream-100);
                        }
                    }

                    .repository {
                        color: var(--blue-400);

                        &:hover {
                            color: var(--blue-100);
                        }
                    }

                    .website {
                        color: var(--aqua-400);

                        &:hover {
                            color: var(--aqua-100);
                        }
                    }
                }
            }
        }
    }

    #contact-section {
        color: var(--cream-400);
        font-family: "IBM PLex Mono", monospace;
        font-size: 14px;
        background-color: var(--black-050);
        border-top: 5px solid var(--aqua-400);
        border-bottom: 5px solid var(--aqua-400);
        border-radius: 2px;
        box-shadow: 0px 0px 30px var(--black-020);
        padding-bottom: 40px;
        margin-top: 40px;
        margin-bottom: 40px;

        p {
            padding: 60px 30px 20px 30px;
            font-size: 12px;
            text-align: center;
            
            strong {
                font-weight: 600;
                color: var(--orange-400);
            }
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 85%;
            margin: auto;
            
            input, textarea {
                background-color: var(--black-100);
                color: var(--cream-400);
                border: 2px solid var(--black-100);
                transition: 0.5s;
                font-family: "IBM PLex Mono", monospace;
                font-weight: 300;
                font-size: 12px;
                padding: 10px;
                outline: none;
                border-radius: 3px;

                &:focus {
                    background-color: var(--black-200);
                    border: 2px solid var(--black-200);
                }

                &::placeholder {
                    color: var(--cream-400);
                }
            }

            textarea {
                resize: none;
                height: 140px;
            }

            #submit {
                background-color: var(--yellow-300);
                color: var(--black-020);
                font-family: "Silkscreen";
                font-size: 22px;
                margin-top: 10px;
                padding: 8px;
                border: none;
                cursor: pointer;

                &:hover {
                    background-color: var(--yellow-100);
                }
            }
        }
    }

    #submitted-section {
        background-color: var(--black-050);
        padding-bottom: 50px;
        margin-bottom: 30px;
        border-radius: 0px 0px 2px 2px;
        border-bottom: 5px solid var(--yellow-300);

        .thank-message {
            background-color: var(--black-050);
            font-family: "Silkscreen";
            text-align: center;
            padding: 1px 0px 60px 0px;
            border-bottom: 4px solid var(--opct-cream-050);
            width: 85%;
            margin: auto;

            h1 {
                text-align: center;
                font-size: 56px;
                color: var(--cream-100);
                margin: 0px auto 5px auto;

                @media (max-width: 560px) {
                    font-size: 56px;
                }

                @media (max-width: 500px) {
                    font-size: 50px;
                }

                @media (max-width: 470px) {
                    font-size: 46px;
                }

                @media (max-width: 440px) {
                    font-size: 40px;
                }
            }

            h2 {
                font-size: 32px;
                font-weight: 200;
                color: var(--cream-600);
                margin-top: -10px;

                @media (max-width: 500px) {
                    font-size: 26px;
                }

                @media (max-width: 440px) {
                    font-size: 24px;
                }
            }
        }

        .success-message {
            width: 85%;
            margin: 60px auto 20px auto;
            background-color: var(--opct-aqua-300);
            border-left: 6px solid var(--aqua-400);
            border-radius: 0px 3px 3px 0px;
            padding: 20px 25px;

            p {
                font-family: "IBM PLex Mono";
                font-weight: 600;
                font-size: 14px;
                color: var(--aqua-100);
                text-align: justify;

                strong {
                    font-size: 13px;
                    color: var(--cream-400);
                    font-weight: 400;

                    i {
                        font-size: 18px;
                        margin-right: -10px;
                    }
                }
            }
        }

        .home-button {
            text-align: center;
            margin: 40px 25px 20px 0px;

            a {
                font-family: "IBM Plex Mono";
                color: var(--cream-400);
                font-size: 12px;
                font-weight: 600;
                padding: 5px;
                border: 1px solid var(--opct-cream-050);
                border-radius: 3px;
                transition: 0.5s;

                &:hover {
                    color: var(--cream-100);
                    background-color: var(--opct-cream-020);
                    border: 1px solid var(--opct-cream-100);
                }
            }
        }
    }
}

footer {
    position: relative;
    margin: -4px auto 0px auto;
    max-width: 830px;
    background-color: var(--black-050);
    bottom: 0;

    span {
        display: flex;
        justify-content: center;
        gap: 30px;
        padding: 40px 0px 60px 0px;

        .fa-brands {
            color: var(--cream-400);
            padding-top: 0px;
            font-size: 34px;
            transition: 0.2s;

            &:hover {
                color: var(--cream-100);
                text-shadow: 0px 0px 22px var(--black-200);
            }
        }
    }
    
    p {
        font-family: "IBM Plex Mono";
        font-size: 11px;
        font-weight: 500;
        color: var(--black-020);
        text-align: center;
        padding: 5px 0px 8px 0px;
        border-top: 3px solid var(--cream-400);
        background-color: var(--blue-400);
        
        big {
            font-weight: 900;
        }
    }
}