html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto Mono", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a192f;
    background-image: radial-gradient(rgba(14, 135, 163, 0.4) 1.1px, rgba(14, 135, 163, 0) 0px);
    background-size: 52px 52px;
    overflow-x: hidden;
}

.main-header-menu {
    width: 90%;
    display: flex;
    margin: auto;
    font-size: 15px;
    height: 100px;
    align-content: center;
    align-items: center;
    transition: all 0.5s;
}



.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    list-style: none;

    width: 100%;
}

.main-nav img {
    width: 50px;
    height: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.main-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    margin: 0px;
    list-style: none;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-inline-start: 40px;
    counter-reset: list;
    clear: both;
    max-height: 0;
    transition: all .2s ease-out;


}

.main-nav a {
    text-decoration: none;
    color: #fff;

}

.main-nav .main-nav-item {
    margin: 0px 10px;
    position: relative;
    color: #ccd6f6;
    transition: all 0.1s ease-out;
    animation: leftfadeinscroll 1s;
}

.main-nav .main-nav-item::before {
    color: #64ffda;
    content: "0" counter(list) ".";
    margin-right: 5px;
    text-align: right;
    counter-increment: list;
}

.main-nav .main-nav-item:hover {
    color: #fff;
    transform: translate(0, -2px);
}

.main-nav .main-nav-item-important {
    margin-left: 20px;
    position: relative;
    color: #ccd6f6;
    border-radius: 1px;
    outline-style: solid;
    outline-offset: 5px;
    transition: all 0.1s ease-out;
    outline-color: #ccd6f6;
}

.main-header .main-nav-item-important:hover {
    color: #0066ff;
    outline-color: #0066ff;
    transform: scale(1.1);
}

.main-header .menu-icon {
    display: none;
    filter: invert(1);
}

.main-header .menu-button {
    display: none;
}

.main-header .menu-label {
    display: none;
}

.main-header .menu-button:checked~.main-header-menu {
    display: flex;
    flex-direction: column;
    height: 100vh;

}



.main-header .menu-button:checked~.main-header-menu .main-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-header .menu-button:checked~.main-header-menu .main-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-height: 1000px;
}

.main-header .menu-button:checked~.main-header-menu .main-nav .main-nav-item {
    margin: 10px 0px;
}

.main-header .menu-button:checked~.main-header-menu .main-nav .main-nav-item-important {
    margin: 10px 0px;
}




main {
    display: flex;
    width: 90%;
    margin: auto;
    flex-direction: column;
    align-items: center;
}

.welcome-section {
    display: flex;
    height: 90vh;
    width: 100%;
    justify-content: space-around;
    color: #fff;
}


.welcome-text {
    display: flex;
    width: 50%;
    height: 25%;
    flex-direction: column;
    margin-top: 10%;
}

.welcome-image {
    display: flex;
    width: 25%;
    height: 25%;
    flex-direction: column;
    margin-top: 10%;
    animation: fadein .8s;
}


.welcome-text h1 {
    font-size: 50px;
    font-weight: 700;
    padding: 0;
    margin: 10px 0px;
  
}

.welcome-text h2 {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #0066ff;
}

.welcome-text p {
    font-size: 20px;
    font-weight: 300;
    margin: 10px 0px;
    color: #ccd6f6;
}

.welcome-text a {
    display: flex;
    margin-top: 10px;
    width: 8.5em;
    color: #ccd6f6;
    border-radius: 1px;
    outline-style: solid;
    outline-offset: 5px;
    transition: all 0.1s ease-out;
    outline-color: #ccd6f6;
    text-decoration: none;
}

.welcome-text a:hover {
    color: #0066ff;
    outline-color: #0066ff;
    transform: scale(1.1);
    transform: translateY(-2px);
}


.welcome-image-wrapper {
    height: auto;
    width: auto;
    max-width: 300px;
    max-height: 300px;
    display: flex;
}

.welcome-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%;
}

.about-section {
    display: flex;
    height: 80%;
    width: 95%;
    align-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
}

.about-section .about-content {
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;

}

.about-section .about-content .about-text {
    text-align: left;
    width: 60%;
}

.about-section .about-skill-list   {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    grid-template-rows: 1fr 1fr; 
    gap: 10px 10px; 
    grid-template-areas: 
      ". . . ."
      ". . . ."; 
      padding: 0;
      counter-reset: icons;
  }
.about-section .about-skill-list li {
    display: flex;
    width: 50px;
    height: 50px;
    margin-top: 10px;
    align-items: center;
    align-content: center;
    transition: all 0.1s ease-out;
}

.about-section .about-skill-list li:hover {
    transform: scale(1.1);
    transform: translateY(-2px);
}

.about-section .about-skill-list li img {
    width: 100%;
    height: 100%;
    animation: landin 1s;
    animation-delay: calc(var(--i) * 0.1s);
    counter-increment: icons;
}


.section-header {
    display: flex;
    width: 85%;
    height: 25%;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    word-break: break-all;
}

.section-header h1 {
    width: 20%;
    color: white
}

.section-header .line {
    width: 75%;
    height: 0;
    border: 1px solid #fff;
    display: inline-block;
}

.about-section .about-text {
    display: flex;
    width: 90%;
    height: 50%;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

.about-section .about-text p {
    font-size: 20px;
    font-weight: 300;
    /* margin: 10px 0px; */
    color: #ccd6f6;
}

.projects-section {
    display: flex;
    height: auto;
    width: 95%;
    align-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;

}

.projects-section .projects-list {
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    width: 90%;
    height: 100%;
    outline: none;
}

.projects-section .projects-list .project-item {
    position: relative;
    margin-top: 20px;
    outline: none;
    width: 80%;
    height: 300px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(100, 100, 100, .1);
    border-radius: 2px;
}

.projects-section .projects-list .project-item .project-image-wrapper {
    display: flex;
    width: 50%;
    height: 100%;

    align-content: center;
    align-items: center;
    justify-content: center;
}

.projects-section .projects-list .project-item .project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.projects-section .projects-list .project-item .project-content {
    display: flex;
    width: 40%;
    height: 100%;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 5%;
    outline: none;

}

.projects-section .projects-list .project-item .project-content .project-content-text {
    text-align: end;

    max-width: 90%;
    height: 50%;
    margin-bottom: 0;
    position: relative;
    /*
    background-color: #005fed; 
    border-radius: 2px; */
}

.projects-section .projects-list .project-item .project-content .project-content-tags {
    margin-top: 5%;
    padding: 0;
    color:#ccd6f6;
    display: flex;
    list-style: none;
    gap: 10px;
    flex-direction: row;
}

.projects-section .projects-list .project-item .project-popup {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 0;
    text-decoration: none;
    color: white;
    
}


.projects-section .projects-list .project-item:nth-child(odd) {
 
    flex-direction: row;
}

.projects-section .projects-list .project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.projects-section .projects-list .project-item:nth-child(even) .project-content {
    align-items: flex-start;
    margin-left: 5%;
}


.projects-section .projects-list .project-item:nth-child(even) .project-content .project-content-text {
    text-align: start;
    flex-direction: row-reverse;
}

.projects-section .projects-list .project-item:nth-child(even) .project-popup {
    left: 0;
}

.contact-section {
    display: flex;
    height: 80vh;
    width: 95%;
    align-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
}

.contact-section .contact-content {
    font-size: 20px;
    display: flex;
    align-items: center;
    align-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    width: 60%;
    height: 100%;
    text-align: center;
}

.contact-section .contact-content .contact-content-button {
    display: flex;
    padding: 0;
    width: 8.5em;
    height: 10%;
    color: #ccd6f6;
    border-radius: 1px;
    outline-style: solid;
    outline-offset: 5px;

    transition: all 0.1s ease-out;
    outline-color: #ccd6f6;
    text-decoration: none;
    text-align: center;
    justify-content: center;
    align-content: center;
    align-items: center;

    margin-top: 5%;
}

.contact-section .contact-content .contact-content-button:hover {
    color: #0066ff;
    outline-color: #0066ff;
    transform: scale(1.1);
    transform: translateY(-2px);
}

.contact-section .contact-content .contact-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    gap: 10px;
    padding: 0;
    margin-top: 50px;
}

.contact-section .contact-content .contact-socials li {
    display: flex;
    width: 50px;
    height: 50px;
    margin-top: 10px;
    align-items: center;
    align-content: center;
    transition: all 0.1s ease-out;
    margin: 0;
}

.contact-section .contact-content .contact-socials li img {
    width: 100%;
    height: 100%;
}

.contact-section .contact-content .contact-socials li:hover {
    transform: scale(1.1);
    transform: translateY(-2px);
}

@media screen and (max-width: 800px) {
    .main-header .main-nav {
        display: none;
    }

    .main-header .menu-icon {
        display: block;
        position: absolute;
    }

    .main-header .menu-label {
        display: block;
        position: absolute;
        left: 93%;
        top: 1%;
    }
    .main-nav ul {
        padding-inline-start: 0px;
    }

    .projects-section .projects-list .project-item .project-image-wrapper {
        display: none;
    }
    .projects-section .projects-list .project-item .project-content  {
        height: auto;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-right: 0;
        margin-left: 0;

    }

    .projects-section .projects-list .project-item:nth-child(even) .project-content {
        align-items: center;
        margin-left: 0;
        text-align: center;
    }

    .projects-section .projects-list .project-item .project-content .project-content-text {
        text-align: left;
    }
    
}

@keyframes  leftfadeinscroll {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
    
}

@keyframes fadeinscroll {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
    
}


@keyframes fadein {
    0% {
        transform: translateX(550%) scale(0.5);

        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
       
    }
}



@keyframes landin {
    0% {
        transform: translateY(200%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
