/* Order: General - Header - Home - About me - Projects - Certifications - Skills  
Experience - Contact - Mobile*/
/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: rgb(10, 10, 10);
    min-height: 100vh;
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.btn-contact button {
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #D4C9BE;
    background-color: #16213E;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

.btn-content button{
    margin-top: 20px;
    padding: 10px 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    background-color: #0f3460;
    color: #D4C9BE;
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
}

.btn-content button:hover {
    box-shadow: 0px 0px 8px #0f3460;
    transform: scale(1.05);
}

h2.title {
    color: #533483;
    font-size: 38px;
    line-height: 40px;
    margin: 30px 0;
    text-align: center;
    gap: 90px;
}

h2.span {
    color: #0f3460;
}

.container {
    max-width: 1200px;
    width: 95%;
}

.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease, max-height 1s ease;
}

.show {
    opacity: 1;
    max-height: auto; /* Adjust this value based on the content height */
    transition: opacity 1s ease, max-height 1s ease;
}

/* Header */

header {
    width: 100%;
    position: fixed;
    background-color: rgb(10, 10, 10);
    padding: 2px;
    box-shadow: 0 0 10px 5px #1a1a2e;
    z-index: 9999;

}

header>.interface {
    /* Use > to enter the item immediatelly inside header*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: #D4C9BE;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s ease;
}


header a:hover {
    color: #D4C9BE;
    text-decoration: none;
    transform: scale(1.08);
}

header nav ul {
    list-style-type: none;
}

header nav ul li {
    display: inline-block;
    padding: 0 20px;
}

.btn-contact button:hover {
    box-shadow: 0px 0px 8px #1a1a2e;
    transform: scale(1.05);
}

.mobile-menu{
    display: none;
}

.btn-open{
    display: none;
}

/* home me area */

section.home-area {
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 0 10px 5px #1a1a2e;
}

section.home-area .flex {
    align-items: center;
    justify-content: center;
    gap: 90px;
}

.home-area h1 {
    color: #D4C9BE;
    font-size: 58px;
    line-height: 40px;
    margin: 30px 0;
}

.home-area p {
    color: grey;
    font-size: 25px;
    margin: 30px 0;
}

.home-area .txt-home-area h1 p {
    color: whitesmoke;
    line-height: 20px;
    margin: 30px 0;
}

.home-area .txt-home-area h1 span {
    color: #533483;
}

.home-area .img-home-area img {
    position: relative;
    animation: rotate 30s infinite linear;
    width: 250px;
    border-radius: 100%;
    
}

@keyframes rotate {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }


/* About Area */

section.about-area {
    padding: 60px 4%;
    box-shadow: 0 0 10px 5px #16213E;
    background-color: #16213E;
}

section.about-area .flex {
    align-items: center;
    gap: 40px;
}

.about-area .txt-about {
    color: gray;
}

.about-area .title {
    margin-top: 0;
    margin-bottom: 100px;
    color: #533483;
}

.about-area .txt-about h2 {
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 20px;
}

.about-area .txt-about h2 span {
    color: #D4C9BE;
    display: block;
}

.about-area .txt-about p {
    margin: 10px 0;
    text-align: justify;
}

.about-area .txt-about .btn-social button {
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    margin: 0 5px;
    transition: .2s;
    background-color: #1a1a2e;
    color: #533483;
}

.about-area .txt-about .btn-social button:hover {
    transform: scale(1.1);
}

/* Projects Area */

section.projects-area {
    padding: 80px 4%;
}

section.projects-area .flex {
    gap: 60px;
}

.projects-area h2 {
    color: #D4C9BE;
}

.projects-area .projects-box {
    color: #D4C9BE;
    padding: 40px;
    border-radius: 20px;
    margin-top: 35px;
    transition: .2s;
}

.projects-area .projects-box ul li {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    width: 33%;
}

.projects-area .projects-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #0f3460;
}

.projects-area .projects-box i {
    font-size: 48px;
    color: #533483;
}

.projects-area .projects-box h3 {
    font-size: 22px;
    margin: 15px 0;
}

.projects-box .btn-git button {
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: black;
    background-color: black;
    float: right;
    transition: .2s;
}

.projects-box .btn-git button:hover {
    transform: scale(1.1);
    color: #0f3460;
}


/* Certifications Area */

section.certifications-area {
    padding: 60px 4%;
    box-sizing: border-box;
    box-shadow: #1a1a2e;
    background-color: #16213E;
}

section.certifications-area .flex {
    justify-content: space-around;
    margin-top: 60px;
}

.certifications-area .img-cert {
    width: 600px;
    height: 360px;
    object-fit: cover;
    background-size: cover;
    background-position: 100% 0%;
    transition: 2s;
    cursor: pointer;
    position: relative;
}

.certifications-area .img-cert:hover {
    background-position: 100% 100%;
}

.certifications-area .overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.411);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    color: #D4C9BE;
    opacity: 0;
    transition: .4s;
}

.certifications-area .overlay:hover {
    opacity: 1;
}

.certifications-area .overlay button {
    padding: 8px 20px;
    background-color: rgba(0, 0, 0, 0.411);
    color: #D4C9BE;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: .2s;
}

.certifications-area .overlay button:hover {
    transform: scale(1.1);
}

.container {
    max-width: 1200px;
    width: 95%;
}

.slider-wrapper {
    position: relative;
}

.slider-wrapper .image-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px;
    grid-auto-flow: column;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 0;
}

.slider-wrapper .image-list::-webkit-scrollbar {
    display: none;
}

.container .scrollbar {
    height: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #0f3460;
}

.scrollbar .scrollbar-track {
    height: 4px;
    width: 100%;
    background-color: #D4C9BE;
    position: relative;
    border-radius: 4px;
}

.scrollbar .scrollbar-thumb {
    position: absolute;
    height: 100%;
    width: 50%;
    background-color: #000;
    border-radius: inherit;
}

.scrollbar .scrollbar-thumb:hover {
    height: 6px;
}

.scrollbar .scrollbar-thumb:active {
    background-color: #444;
    height: 6px;
}

.scrollbar .scrollbar-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
}

.slider-wrapper .slide-button {
    position: absolute;
    height: 50px;
    width: 50px;
    border: #0f3460;
    border-radius: 50%;
    outline: none;
    color: #D4C9BE;
    background-color: #533483;
    font-size: 2.2rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: .5s;
}

.slider-wrapper .slide-button:hover {
    background-color: #0f3460;
}

.slider-wrapper .slide-button#prev-slide {
    left: -100px;
    top: 50%;
    display: none;
}

.slider-wrapper .slide-button#next-slide {
    right: -100px;
    top: 50%;
}

@media (max-width: 1023px) {
    .slider-wrapper .slide-button {
        display: none !important;
    }

    .slider-wrapper .image-list {
        gap: 10px;
        margin-bottom: 15px;
    }

    .slider-wrapper .image-list .img-cert {
        width: 280px;
        height: 380px;
    }

    .scrollbar .scrollbar-thumb {
        width: 20px;
    }
}

/* Skills area */

section.skills-area {
    padding: 60px 4%;
    margin-top: 80px;
    box-shadow: #1a1a2e;
}

.skills-area .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skills-area .title {
    margin-top: 0;
    margin-bottom: 60px;
    color: #D4C9BE;
}

.skills-area h2 {
    margin-top: 30px;
    color: #533483;
}

.skills-area p {
    margin-top: 10px;
    margin-bottom: 80px;
    max-width: 80%;
    text-align: justify;
    color: #D4C9BE;
}

.skills-area .grid-container {
    margin-top: 0;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 120px;
}

/* Experience area */

section.experience-area {
    padding: 40px 4%;
    box-shadow: 0 0 10px 5px #16213E;
    background-color: #16213E;
}

.experience-area .title {
    margin-bottom: 80px;
    color: #533483;
}

.txt-experience h2 {
    color: #533483;
}

.txt-experience .span-time {
    font-style: italic;
    color: gray;
}

.txt-experience p {
    margin-top: 20px;
    margin-bottom: 60px;
    text-align: justify;
    color: #D4C9BE;
}

/* Contact area */

section.contact {
    padding: 60 4%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contat .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact .title {
    margin-bottom: 60px;
    color: #D4C9BE;
}

form {
    max-width: 500px;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    margin-right: 100px;
}

form input,
form textarea {
    width: 100%;
    background-color: #1a1a2e;
    outline: 0;
    padding: 10px 15px;
    margin: 15px;
    border: #0f3460;
    border-radius: 15px;
    color: #1a1a2e;

}

form textarea {
    resize: none;
}

form .btn-send input[type=submit] {
    background-color: #533483;
    cursor: pointer;
    color: #D4C9BE;
    font-size: 14px;
    font-weight: 700;
    transition: .2s;
}

form .btn-send input[type=submit]:hover {
    background-color: #16213E;
}

.contact h4 {
    text-align: justify;
    border: none;
    width: fit-content;
    color: #533483;
    font-size: 20px;
    margin: 10px 0;
}

.contact .txt-contact {
    justify-content: center;
    color: #D4C9BE;
}

.contact .btn-social button {
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    margin: 0 5px;
    transition: .2s;
    background-color: gray;
    display: inline-block;
}

.contact .btn-social button:hover {
    transform: scale(1.1);
}

/* Footer */

footer {
    padding: 40px 4%;
    text-align: center;
    font-weight: 700;
    color: #D4C9BE;
}

@media screen and (max-width: 1030px) {

    /* General */
    
    * {
        max-width: 100%;
    }
    
    .flex {
        flex-direction: column;
    }

    h2.title{
        font-size: 30px;
    }

    .home-area .flex,
    .skills-area .flex {
        flex-direction: column-reverse;
    }

    /* Header */
    
    .menu-desktop,
    .btn-contact {
        display: none;
    }

    /*Header mobile */

    .mobile-menu{
        display: grid;
        grid-template-columns: 1fr 1fr;
        background-color: #000;
        height: 70vh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99999;
        width: 0%;
        overflow: hidden;
        overflow-x: hidden;
        transition: 0.7s;
        box-shadow: 0 0 50px 10px #D4C9BE;
    }

    .mobile-menu.open-menu{
        width: 70%;
    }

    .mobile-menu.open-menu ~ .overlay-menu{
        display: block;
    }

    .mobile-menu nav ul{
        text-align: left;
        padding: 40px 4%;
    }
    
    .mobile-menu nav ul li a{
        color: #D4C9BE;
        font-size: 24px;
        font-weight: 500;
        padding: 20px 2%;
        text-wrap: nowrap;
    }

    .mobile-menu .btn-close{
        padding: 10px 6%;
    }

    .btn-open{
        display: block;
        color: #533483;
        font-size: 50px;
        padding: 0 15px;
    }

    .mobile-menu .btn-close i{
        color: #533483;
        font-size: 32px;
    }

    .overlay-menu{
        background-color: #000000bb;
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 88888;
        display: none;
    }

    /* Home area */

    section.home-area {
        height: 110vh;
        min-width: 110%;
        padding: 20px 4%;
        box-shadow: none;
    }

    .home-area h1 {
        font-size: 30px;
        text-align: center;
    }

    .home-area p {
        font-size: 18px;
        text-align: center;
    }

    .home-area .img-home-area img {
        display: none;
        /*width: 180px;*/
    }

    .home-area h1, .home-area p {
        position: relative;
        animation: floating 2s ease-in-out infinite alternate;
        /*call the animation, duration of each cycle, floating effect, looping, walking fowards and backwards*/
    }
    
    @keyframes floating {
    
        /* floating img animation*/
        0% {
            top: 0;
        }
    
        100% {
            top: 30px;
        }
    }

    /* About area */

    .about-area{
        min-width: 110%;
        padding: 20px 4%;
        box-shadow: none;
    }
    
    .about-area .title {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    /* Projects Area */

    section.projects-area {
        min-width: 110%;
        padding: 20px;
        box-shadow: none;
    }

    /* Certifications Area */

    section.certifications-area {
        min-width: 110%;
        padding: 20px;
        box-shadow: none;
    }

    .certifications-area .img-cert {
        background-position: 10% 0%;
        transition: 5s;
    }

    /* Skills area */

    section.skills-area {
        margin-top: 60px;
        min-width: 110%;
        padding: 20px;
        box-shadow: none;
    }

    .skills-area h2 {
        margin-top: 30px;
    }
    
    .skills-area p {
        max-width: 100%;
        text-align: justify;
        margin-bottom: 30px;
    }

    /* Experience area */

    section.experience-area {
        min-width: 110%;
        padding: 20px;
        box-shadow: none;
    }
    
    .experience-area .title {
        margin-bottom: 40px;
    }
    
    .txt-experience .span-time {
        font-style: italic;
        color: #444444b2;
    }
    
    .txt-experience p {
        margin-top: 20px;
    }

    /* Contact */

    form {
        width: 100%;
    }

    .contact h4 {
        padding-left: 5px;
    }
    
    .contact .txt-contact {
        padding-left: 20px;
    }
    
} 