/* Common CSS */
html {
    font-size: 1rem;
    scroll-behavior: smooth;
    filter: drop-shadow(10px 10px 4px #00000026);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
line-height: 200%;
}

.title {
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.title-h2 {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.box-border {
    outline: #484848ab 1px solid;
    border-radius: 40px;
    margin: 30px;
    padding: 30px;
}


h1, .logo-name, .logo-frontend, .banner {
    font-family: "Italiana", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.logo-name {
    font-size: 1.5rem;
}

.text {
    line-height: 200%;
}

.logo-frontend {
    font-size: 1rem;
    padding-left: 2rem;
}

.logo-frontend:hover, .logo-name:hover {
    cursor: default;
}

h2, .nav-links, .menu-links, .nav-top-btn {
    font-family: "Rokkitt", serif;
    font-weight: 400;
}

.nav-top-btn {
    padding-top: 50px;
}

p, button {
    font-family: "Gudea", sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: black;
    letter-spacing: 1px;
    
}

button {
    font-size: 1rem;
    background-color: #ffffff00;
    padding: 10px 25px 10px 25px;
    border-radius: 30px;
    border: none;
}


a, button {
    transition: all 300ms ease;
}


button:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.185);
    cursor: pointer;
    filter: drop-shadow(10px 10px 4px #00000026);
}

/* Banner */

/*
.banner{
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    background-color: #484848;
    overflow: hidden;
    color: #ffffffff;
    white-space: nowrap;
}

.banner-slide {
    display: inline-block;
    animation: 10s slide infinite linear;
    padding-right: 200vh;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

*/

/* NAV */

nav, .nav-links {
    display: flex;
}

.nav-links {
    list-style: none;
    gap: 2rem;
    font-size: 1rem;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 15vh;
}


a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    cursor: pointer;
    color: gray;
}

/* Hamburger menu */

#hamburger-nav {
    display: none
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;

}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
  }
  
  .menu-links li {
    list-style: none;
  }

  .menu-links.open {
    max-height: 300px;
  }

  .menu-link {
    box-shadow: 0.5px 0.5px 0.5px 0.5px #4848480f;
  }

  .hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
  }

  .hamburger-icon.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
  }


  .hamburger-icon span:first-child {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .hamburger-icon span:first-child {
    opacity: 1;
  }

  /*
  .hamburger-icon span:first-child {
    transform: none;
  }
    */

.hamburger-icon span:last-child {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}



/* Buttons */

.btn-white {
    outline: 1px solid #484848;
    color: #484848;
    margin: 10px;
}

.btn-gray {
    background-color: #484848;
    color: white;
    margin: 10px;
}

.btn-white:hover {
    background-color: #484848;
    color: white;
}

.btn-gray:hover {
    outline: 1px solid #484848;
    color: #484848;
    background-color: white;

}

.logo-link, .logo-github {
    width: 40px;
    height: 40px;
    padding: 5px;
}

.logo-link:hover, .logo-github:hover {
    cursor: pointer;
}

.btn-projects {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 30px;
}

/* Sections */
section {
    padding-top: 10vh;
    margin: 0 1rem;
    box-sizing: border-box;
    min-height: fit-content;
  }
  

/* Profile section */
.profile-pic img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.text-profile-pic {
    display: grid;
    margin: 0;
    justify-content: center;
    text-align: center;
}

.text {
    padding-bottom: 30px;
    font-size: 1.5rem;
}


.button-home {
    display: flex;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

.logo-home {
    display: flex;
    justify-content: center;
}

/* About section */
.box-about, .box-interests {
    display: flex;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
    align-items: start;
    padding: 20px;
    justify-content: center;

}


.box-1-about {
    padding: 20px 20px 20px 20px;
}

.box-2-about {
    padding: 20px 20px 0px 20px;
}

.box-about h2, .box-interests h2 {
    text-align: center;
    padding-bottom: 20px;
}


.image-pole img, .image-dog img {
    padding: 20px;
    width: 300px;
    border-radius: 40px;
    height: 300px;
    object-fit: cover;
    object-position: top;
    justify-content: center;
    
}

/* Experience section */
.experience h2 {
    text-align: center;
    padding-bottom: 20px;
    padding-top: 40px;
}

.box-education {
    display: flex;
    padding: 30px;
    justify-content: center;
    text-align: center;
    line-height: 2rem;
}

.box-knowledge {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


.box-1-knowledge {
    padding: 20px 20px 0px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    text-align: center;
    flex: 100%;
}

.title-frontend, .title-backend {
    grid-column-start: 1;
    grid-column-end: 3;
}


.box-2-knowledge {
    padding: 20px 20px 0px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    text-align: center;
    flex: 100%;
}

.smaller-text {
    font-size: 0.7rem;
    font-style: italic;
    color: #484848;
    
}

/* Projects */

.project-flex {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1300px;
    justify-content: center;
    margin: 0 auto;
    padding-top: 40px;
}

.project-flex img {
    width: 300px;
    height: auto;
    object-fit: cover;
    object-position: center;
}


.hotview, .rainy-days, .csm {
padding: 20px;
width: 100%;
}

.text-projects {
margin: 20px 0px 20px 0px;
display: flex; 
justify-content: center; 
}

.image-projects {
    justify-self: center;
    padding-bottom: 30px;
}


/* Contact */

.contact-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding-top: 40px;
}

.mail, .linkedin {
    flex: 100%;
    padding: 20px;
}

.linkedin-link {
    cursor: pointer;
}

/* Footer */

footer {
font-family: "Rokkitt", serif;
padding: 20px;
box-shadow: 5px 5px 5px 5px #48484868;
margin-top: 60px;
font-size: 0.75rem;
}