html {
  scroll-behavior: smooth;
}

nav{
    position: sticky;
    top: 0;
    z-index: 1;
    margin-bottom: 5%;

}

nav ul{
    width: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;

}

nav li{
    float: right;
    border-right: 1px solid #bbb;

}

nav li:first-child{
    margin-left: 10%;
    float: left;
    border: none;

}

nav li:first-child a{
    font-size: 2em;
    padding: 13.5px 16.875px;

}

nav li:nth-child(2){
    margin-right: 10%;

}

nav a{
    display: block;
    padding: 24px 30px;
    text-decoration: none;
    text-align: center;
    color: white;
    font-size: 1em;
    font-weight: bold;

}

.active{
    background-color: #04AA6D;
}

nav li:not(:first-child) a:hover{
    background-color: #04AA6D;

}

nav button, #closeNav {
    display: none;
    float: right;
    cursor: pointer;
    background-color: #ffffff00;
    color: white;
    border: #ffffff00;
    font-weight: bolder;
    font-size: 3em;
    margin-right: 15px;

}

#side-nav {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #333;
    width: 0;
    transition: 0.3s;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin: 0;

}

#side-nav button {
    float: right;

}

#side-nav ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;

}

#side-nav li:not(:first-child){
    border-bottom: 1px solid #bbb;

}

#side-nav a {
    display: block;
    padding: 24px 30px;
    text-decoration: none;
    text-align: center;
    color: white;
    font-size: 1em;
    font-weight: bold;
}

body{
    background-image: url("pics/background.jpg");
    background-repeat: repeat;
    background-size: cover;
    background-color: orange;
    color: white;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

.introduction{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 65%;
    margin: auto;
    color: #333333;

}

.introduction-text{
    display: flex;
    flex-direction: column;
    max-width: 60%;
    order: 1;

}

.introduction-text h1{
    font-size: 3em;
    margin: 0;
    padding: 0;
    font-weight: bold;

}

.introduction-text h2{
    font-size: 1.5rem;
    margin: 15px 0 0 0.5em;
    padding: 0;
    font-weight: normal;

}

.intro-img{
    width: 35%;
    border: 5px solid orange;
    box-shadow: 0 0 18px 3px rgba(0, 0, 0, .3);
    border-radius: 50%;
    order: 2;

}

.info-section{
    color: #111;
    background-color: rgba(186, 186, 186, 0.85);
    width: 100%;
    transform: skewY(-4deg);
    box-shadow: 0 0 18px 3px rgba(0, 0, 0, .3);

}

.info-section::after {
    background-color: rgba(255, 255, 255, .6);
    bottom: 49.65%;
    content: '';
    filter: blur(8px);
    left: .865%;
    position: absolute;
    right: .865%;
    top: 49.65%;
    transform: rotate(-45deg) skewX(20deg);
    z-index: -1;

}

#contact::before {
    content: '';
    height: 50px;
    margin: 25px;

}

.info-section h1{
    position: relative;
    font-size: 3em;
    width: min-content;
    white-space: nowrap;
    margin: 0 auto;
    margin-bottom: 40px;

}

.info-section h1::after{
    background-color: #10ac84;
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 10px;

}

.info-section-content {
    margin: 5em 10%;
    padding: 5% 15%;
    transform: skewY(4deg);
    min-height: 500px;

}

.info-section-content p{
    font-size: 1.5em;
    line-height: 1.5;
    margin-top: 5em;
    text-align: justify;
    text-justify: inter-word;

}

.skills-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

}

.skill{
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 18px 3px rgba(0, 0, 0, .3);
    background-color: #eeeeee;
    margin: 10px;
    width: 100px;
    height: 100px;

}

.skill img{
    display: block;
    width: 70%;
    border-radius: 10px;
    margin: 0 auto;

}

.skill p{
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    margin-top: 10px;

}

.contact-form {
    max-width: 400px;
    margin: 100px auto 200px auto;
    padding: 24px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Arial, sans-serif;

}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;

}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;

}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 16px auto;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.2s;

}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0077ff;
    outline: none;

}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #0077ff;
    color: #fff;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;

}

.contact-form button:hover {
    background: #005fcc;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;

}


@media screen and (max-width: 870px) {
    nav li:not(:first-child){
        display: none;

    }

    nav button{
        display: block;

    }

    .introduction{
        width: 100%;

    }

    .introduction-text{
        margin: auto;
        order: 2;

    }

    .introduction-text h1{
    font-size: 1.5em;

    }

    .introduction-text h2{
    font-size: 1em;
    margin-bottom: 50px;

    }

    .intro-img{
        width: 50%;
        height: 50%;
        margin: auto;
        order: 1;

    }

    .info-section::before{
        content: '';
        margin: 25px;

    }

    #contact::before {
        margin: 15px;

    }

    .info-section-content {
        padding: 5%;

    }

    .info-section-content p{
        font-size: 1em;
        line-height: 1.5;
    }

    .info-section h1{
        font-size: 1.5rem;

    }

    .skill{
        width: 60px;
        height: 60px;

    }

    .skill p{
        font-size: 12px;

    }


}


