body {
    background-color: #1F1F1F;
    margin: 0;
    padding: 0;
    font-family: "Roboto Flex", sans-serif;
}

.wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-main {
    width: 100%;
    background-image: url(images/header-background.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
}

.header-main-logo {
    width: fit-content;
    height: 60px;
    display: flex;
    position: fixed;
    top: 0;
}

.header-main-logo img {
    align-self: center;
}

.header-main-nav {
    width: fit-content;
    position: fixed;
    top: 60px;
}

.header-main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.header-main-nav ul li a {
    font-family: "Roboto Flex", sans-serif;
    line-height: 60px;
    color: #ffff;
    font-size: 10px;
    transition: all 0.5s ease-in-out;
    z-index: 10000;
}

.header-main-nav ul li a:hover {
    font-size: 15px;
    color: #D13E3E;
    font-weight: bold;
    text-shadow: 0 0 10px #D13E3E;
}

.box-header-items {
    display: flex;
    flex-direction: column;
    margin-left: 30px;
    margin-top: 50px;
    align-items: center;
    text-align: center;
}

.box-header-text {
    display: flex;
    flex-direction: column;
    line-height: 30px;
    align-items: center;
}

.box-header-text h2 {
    font-family: "Roboto Flex", sans-serif;
    color: #ffff;
}

.box-header-text h2:hover {
    font-size: 25px;
    color: #ffff;
}

.box-header-text h1 {
    font-family: "Roboto Flex", sans-serif;
    font-weight: bold;
    color: #ffff;
}

.box-header-text h1:hover {
    font-weight: bold;
    color: #ffff;
    text-shadow: 0 0 30px #ffff;
}

.profile-picture {
    width: 300px;
    height: 300px;
}

.contact-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #D13E3E;
    border: none;
    border-radius: 5px;
    font-family: "Roboto Flex", sans-serif;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    max-width: 130px;
    text-align: center;
    color: #ffff;
    font-weight: bold;
    box-shadow: 0 0 10px #D13E3E;
    transition: all 0.2s ease-in-out;
}

.contact-button:hover {
    font-size: 20px;
    max-width: 150px;
    box-shadow: 0 0 10px #D13E3E;
}

.box-image {
    background-color: #1F1F1F;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    border-radius: 1000px;
}

/* -------------------------main section------------------------- */

.wrapper-main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    background-color: #1F1F1F;
}

.main-aboutme {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 180px;
    margin-top: 20px;
}

.main-image {
    width: 300px;
    background-color: #1F1F1F;
    margin-top: 30px;
    border-radius: 15px;
    text-align: center;
    display: flex;
}

.main-image-text {
    justify-content: center;
}

.main-image-text h1 {
    font-family: "Roboto Flex", sans-serif;
    color: #ffff;
    font-size: 100px;
    font-weight: bold;
    opacity: 0.7;
}

h1.text-code {
    color: #D13E3E;
    opacity: 100%;
    text-shadow: 0 0 10px #1F1F1F;
}

.main-image-text h2 {
    font-family: "Roboto Flex", sans-serif;
    color: #ffff;
    font-size: 50px;
    font-weight: bold;
    opacity: 0.7;
}

#aboutme {
    display: flex;
    font-family: "Roboto Flex", sans-serif;
    width: 300px;
    height: 300px;
    color: #ffff;
    background-color: #1F1F1F;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.5;
    transition: all 0.5s ease-in-out;
    margin-top: 45px;
    cursor: pointer;
    padding: 10px;
}

/* ----------------projects----------- */
.main-projects {
    display: flex;
    width: 100%;
    flex-direction: column;
    background-color: #1F1F1F;
    height: auto;
}

.main-header-text {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.main-header-text h1 {
    font-family: "Roboto Flex", sans-serif;
    font-size: 30px;
    font-weight: bold;
    margin-left: 20px;
    color: #D13E3E;
}

.main-header-text h2 {
    font-family: "Roboto Flex", sans-serif;
    margin-left: 20px;
    opacity: 0.5;
    color: #ffff;
}

.projects-boxes-column {
    display: flex;
    flex-direction: column;
}

.project-boxes-1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.project-box-link {
    width: 350px;
    height: 150px;
    background-color: #100f0f;
    margin-left: 20px;
    margin-right: 20px;
    opacity: 0.7;
    transition: all 0.5s ease-in-out;
    text-align: center;
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-box-text {
    font-family: "Roboto Flex", sans-serif;
    color: #ffff;
    font-weight: bold;
    margin-top: 30px;
}

.project-box-link:hover .project-box-text {
    color: #1F1F1F;
}

.project-box-link:hover {
    opacity: 100%;
    background-color: #D13E3E;
}

.boxes-icons {
    font-size: 30px;
    margin: 5px;
    color: #D13E3E;
}

.project-box-link:hover .boxes-icons i {
    color: #100f0f;
}

/* --------------footer----------------- */
footer {
    margin-top: 60px;
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-box1 {
    display: flex;
    flex-direction: row;
}

.footer-logo {
    align-content: center;
    width: 100px;
}

#contacts {
    line-height: 30px;
}

#contacts h1 {
    color: #D13E3E;
    font-size: 20px;
    font-family: "Roboto Flex", sans-serif;
    font-weight: bold;
}

#contacts a {
    color: #ffff;
    opacity: 0.5;
    font-family: "Roboto Flex", sans-serif;
}

#contacts h2 {
    color: #ffff;
    opacity: 0.5;
    font-family: "Roboto Flex", sans-serif;
}

.linkedin-icon {
    display: flex;
    column-gap: 20px;
    align-items: center;
}

.github-icon {
    column-gap: 20px;
    display: flex;
    align-items: center;
}

.phone-icon {
    column-gap: 20px;
    display: flex;
    align-items: center;
}

.email-icon {
    column-gap: 20px;
    display: flex;
    align-items: center;
}

.copyright {
    padding-top: 30px;
    font-family: "Roboto Flex", sans-serif;
    color: #D13E3E;
    opacity: 0.5;
    margin-left: 20px;
    text-align: center;
}

#contacts i {
    color: #D13E3E;
    font-size: 20px;
}

.none-link {
    opacity: 0.5;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .header-main-nav ul {
        flex-direction: row;
        gap: 10px;
    }

    .header-main-nav ul li a {
        font-size: 14px;
    }

    .box-header-items {
        margin-top: 20px;
    }

    .main-aboutme {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        align-items: center;
        justify-content: center;
    }

    .main-header-text{
        align-items: center;
        justify-content: center;
    }

    .main-header-text h1 {
        font-size: 24px;
    }

    .main-header-text h2 {
        font-size: 18px;
    }

    .project-boxes-1 {
        flex-direction: column;
        align-items: center;
    }

    .project-box-link {
        width: 100%;
        max-width: 350px;
    }

    .project-box-text {
        margin-top: 10px;
    }

    .boxes-icons {
        font-size: 24px;
    }

    .footer-box1 {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-logo {
        width: 80px;
    }

    #contacts h1 {
        font-size: 18px;
    }

    #contacts i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-main-nav ul {
        gap: 5px;
    }

    .header-main-nav ul li a {
        font-size: 12px;
    }

    .box-header-text h1 {
        font-size: 18px;
    }

    .profile-picture {
        width: 200px;
        height: 200px;
    }

    .contact-button {
        font-size: 14px;
        max-width: 100px;
    }

    .main-image-text h1 {
        font-size: 30px;
    }

    .main-image-text h2 {
        font-size: 20px;
    }

    #aboutme {
        font-size: 14px;
        padding: 5px;
    }

    .project-box-link {
        width: 100%;
        max-width: 300px;
    }

    .project-box-text {
        margin-top: 5px;
    }

    .boxes-icons {
        font-size: 20px;
    }
}
