@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
html{scroll-behavior: smooth;}


:root{
    --BORDER: 3px solid black;
    --HEADER-FOOTER-BGCOLOR:  #333;
    --HEADER-COLOR: whitesmoke;
}

body {
    background-color: bisque;
    color: black;
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    margin: 0;
}

main section{
    margin: 1rem;
}

section h2{
    text-align: center;
}
a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: hsl(0, 100%, 50%);
}

a:active {
    color: hsl(0, 100%, 50%, 0.8);
}



/* || SKILLS SECTION */
.container1 {
    display: flex;
    flex-wrap: wrap;
    border: var(--BORDER);
    width: 500px;
    height: 275px;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    margin-right: 200px;
}

.item{
    box-sizing: border-box;
    padding: 0.5rem;
    text-align: center;
    flex-basis: calc(33.33% - 2.5rem);
    justify-content: center;
    align-items: center;
    flex: 1 1;
}

.container2 {
    display: flex;
    flex-wrap: wrap;
    border: var(--BORDER);
    width: 500px;
    height: 275px;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.item2{
    display: flex;
    box-sizing: border-box;
    text-align: left;
    padding:0.5rem;
    flex-basis: calc(33.33% - 2.5rem);
    justify-content: center;
    align-items: center;
    flex: 1 1 40%;
}

.skills-setting{
    display: flex;
    place-content: center;

}

/* || HEADER */
.header-container{
    background-color: var(--HEADER-FOOTER-BGCOLOR);
    width: 100%; 
    top:0;
    position: sticky;
    height: auto;
    color: #fff;
    z-index: 100;
}

.header-title-line{
    display: flex;
    padding: 0.25rem 0.5rem;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.menu-button{
    background-color: transparent;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 4rem;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    background-color: var(--HEADER-COLOR);
    width: 40px;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    transition: all 0.5s;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
}

.menu-icon::before {
    transform: translate(-20px, -12px);
}

.menu-icon::after {
    transform: translate(-20px, 12px);
}

nav{
    background-color: var(--HEADER-FOOTER-BGCOLOR);
    display: none;
    transform-origin: top center;
    animation: showMenu 0.5s ease-in-out forwards;
}

@keyframes showMenu {
    0% {
        transform: scaleY(0);
    }

    80% {
        transform: scaleY(1.2);
    }

    100% {
        transform: scaleY(1);
    }
}

:is(header:hover, header:focus-within) .menu-icon {
    background-color: transparent;
}

:is(header:hover, header:focus-within) .menu-icon::before {
    transform: translateX(-20px) rotate(45deg);
}

:is(header:hover, header:focus-within) .menu-icon::after {
    transform: translateX(-20px) rotate(-45deg);
}

:is(header:hover, header:focus-within) nav {
    display: block;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-flow: column nowrap;
}

nav li {
    padding: 0.5rem;
    border-top: 1px solid var(--HEADER-COLOR);
}

nav a {
    display: block;
    text-align: center;
    width: 80%;
    margin: auto;
}

nav a:any-link {
    color: var(--HEADER-COLOR);
    font-weight: bold;
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    transform: scale(1.2);
    transition: all 0.2s;
}


/* || ABOUT SECTION */
.row{
    max-width: 1440px;
}

.intro-section{
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 3.6rem;
    position: relative;
}

.introduction {
    margin-top: 4.2rem;
    margin-right: -30px;
    margin-left: -30px;
}
.introduction p{
    text-align: left;
    padding-left: 13rem;
    font-size: 30px;
}

.introduction img{
    height: 12rem;
    width: 12rem;
    border:1px solid #333;
    border-radius: 50%;
    margin: 0.9rem 1rem 0 2rem;
    float: left;
}


/* || SOCIAL LINKS */
.social{
    display: flex;
    place-content: center;
    align-items: center;
    padding: 0;
}

.social li {
    display: inline-block;
    margin: 0 15px;
    padding: 0;
}

/* || EXPERIENCE SECTION */
.timeline-wrap{
    display: flex;
    flex-direction: column;
    place-content: center;
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 6rem;
}
.timeline-block{
    display: flex;
    position: relative;
    padding-top: 1.5rem;
}
.timeline-header{
    float: left;
    width: 25%;
    padding-right: 50px;
    text-align: right;
}
.timeline-header h4{
    margin-bottom: 0;
}
.timeline-header p{
    margin-top: 0;
    font-size: 25px;
}
.timeline-icon{
  height: 4.5rem;
  width: 4.5rem;
  line-height: 4.5rem;
  background: #333;
  border-radius: 50%;
  text-align: center;
  color: whitesmoke;
  position: absolute;
  left: 30%;
  top: 2.5rem;
  margin-left: -2rem;
}

.timeline-content{
    margin-left: 10%;
}
.timeline-content h4{
    margin-bottom: 0;
    margin-top: 30px;
}
.timeline-content li{
    font-size: 25px;
}


/* || PROJECT SECTION */

.project-container{
    display: flex;
    flex-direction: column;
    place-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.project{
    width: 780px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project li{
    font-size: 25px;
}


/* || CONTACT SECTION */
.contact-section{
    display: flex;
    place-content: center;
    justify-content: space-evenly;
    text-align: center;
}

.contact-section h2.wrap{
    display: block;
    text-align: center;
}

.contact-container p{
    text-align: center;
}

.contact-container img{
    display:block;
    margin: 0 auto;
}

/* || FOOTER */
.footer-container{
    background-color: var(--HEADER-FOOTER-BGCOLOR);
    box-sizing: border-box;
    width: 100%;
    bottom: 0;
    text-align: center;
    color: #fff;
    height:auto;
    display: inline-block;
}

/* || SMALL SCREEN */
@media screen and (max-width: 576){
    .introduction {
        text-align: center;
        margin-top: 3rem;
    }
    .introduction img {
        height: 6.6rem;
        width: 6.6rem;
        float: none;
        display: inline-block;
    }
    .introduction p {
        padding-left: 0;
        text-align: center;
    }

    .row {
        padding-left: 25px;
        padding-right: 25px;
    }
}

