/* Colors root */
:root {
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #17171b;
}

/* Font root */
:root {
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Main style */
body {
  font-family: var(--font-family-sans-serif);
  max-width: 100%;
  max-height: 100vh;
  display: flex;
  overflow-x: hidden;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: var(--white);
  background-color: var(--dark);
}

/* Header style */
.header {
  display: flex;
  position: fixed;
  height: 400px;
  width: 150px;
  right: 50px;
  align-items: end;
  justify-content: center;
  flex-direction: column;
  padding: 1%;
  background-color: transparent;
  z-index: 1;
}

/* Styles for the nav list */
.nav-list {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Styles for the navigation list item*/
.nav-item {
  position: relative;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  margin-right: 0px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding-left: 0px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--gray-dark);
  transition: background-color 0.9s ease, width 0.9s ease, height 0.9s ease;
  list-style: none;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Pseudo class hovering navigation */
.nav-item:hover {
  width: 100px;
  height: 50px;
  justify-content: center;
  text-align: center;
  background-color: var(--yellow);
}

/* General style for links */
.nav-link {
  display: flex;
  position: absolute;
  text-decoration: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* hide link */
}

.nav-item:hover .nav-link {
  opacity: 1;
  /* show link */
}

/* Style for h1 in nav */
.nav-items h1 {
  margin: 0;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Style nav img */
.nav-items img {
  opacity: 1;
  color: var(--white);
  width: 50%;
  height: auto;
  filter: brightness(10%) invert(100%);
  transition: opacity 0.3s ease;
}

/* Hide nav img when hovering */
header li:hover img {
  opacity: 0;
}

/* Show name nav item */
header li:hover h1 {
  opacity: 1;
}

/* Style for current nav html */
#icon-box-current {
  background-color: var(--yellow);
}

/* Style for index.html Home */
.content-home {
  position: relative;
  margin-right: 200px;
  left: 50px;
  padding: 1%;
  display: flex;
  justify-content: start;
  align-items: flex-start;
}

/* Style article home */
.content-home article {
  width: 40%;
  max-width: 300px;
  margin-right: 20px;
}

.content-home article img {
  max-width: 200%;
  height: auto;
}


.content-home article img {
  width: 100%;
  height: auto;
  border: 2px solid var(--yellow);
  border-radius: 5%;
  transition: width 0.7s ease;
}

.content-home img:hover {
  width: 110%;
  height: auto;
  border: 3px solid var(--yellow);
}

.content-home div {
  width: 500px;
  margin-left: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style text for uppercase */
.text-uppercase h2 {
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0;
}

h2 {
  font-size: 42px;
  line-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.text-uppercase h2 span {
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.text-uppercase p {
  line-height: 1.7;
  color: var(--white);
  margin-top: 50px;
}

.content-nav {
  position: absolute;
  top: 60%;
  left: 40%;
  transform: translate(-50%, -50%);
  margin-top: 50px;
  margin-left: 50px;
  display: flex;
  justify-content: start;
  align-items: flex-start;
}

.nav-item-about {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 10px 20px;
  height: 50px;
  width: 200px;
  border-radius: 25px 25px 25px 25px;
}

.nav-item-about:hover {
  width: 200px;
}

.nav-item-about img {
  width: 20%;
  position: absolute;
  right: 10%;
  transition: transform 0.3s ease;
}

.nav-item-about:hover img {
  transform: translateX(20px);
}

.nav-item-about h3 {
  margin: 0;
  position: absolute;
  left: 20%;
  transform: translateX(-20%);
  transition: transform 0.3s ease;
}

.nav-item-about:hover h3 {
  transform: translateX(0);
}

.projects-section {
  min-height: 100vh;
  max-width: 800px;
  margin: auto;

  display: flex;
  justify-content: center;
  position: relative;
  top: 10%;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
}

.project-item {
  border: 5px solid var(--yellow);
  margin: 10px;
  list-style: none;
  text-align: center;
  max-width: 200px;
  max-height: 200px;
  overflow: hidden;
  transition: max-width 0.5s ease, max-height 0.5s ease;
}

.project-link {
  display: block;
}

.project-link img {
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  transition: max-width 0.5s ease, max-height 0.5s ease;
}

.projects-section div {
  margin-bottom: 20px;
  font-size: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.project-item:hover {
  background-color: var(--blue);
  transition: background-color 0.7s ease;
  max-width: 250px;
  max-height: 250px;
}

.project-item:hover img {
  max-width: 250px;
  max-height: 250px;
}

.contact-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.contact-info {
  margin-bottom: 20px;
  line-height: 1.3;
}

.navigation-buttons {
  margin-bottom: 20px;
}

.navigation-buttons button {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.contact-form {
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: var(--gray-dark);
  color: var(--light);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  height: 40px;
  width: 120px;
  background-color: var(--gray-dark);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-info span {
  font-size: 20px;
}

.contact-form button:hover {
  background-color: var(--yellow);
}

.centered-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  margin: 0 auto;
}

.text-container {
  max-width: 800px;
}

#text-about-me {
  font-size: 30px;
  color: var(--gray);
}

#first-project {
  max-width: 80%;
  max-height: 70%;
  width: 100%;
  height: 100%;
  transition: max-width 0.5s ease, max-height 0.5s ease;
}

#first-project:hover {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
}

#first-project img {
  max-width: 100%;
  max-height: 100%;
}




/* Styles for responsiveness on different devices */
@media (max-width: 992px) {

  /* Styles for devices with screen width up to 992px */
  body {
    flex-direction: column;
  }

  .content-home img:hover {
    width: 110%;
    border: 0px solid;
  }

  .input-mobile-header {
    display: flex;
    flex-direction: row;
    position: relative;
    top: 0px;
    left: 0px;
    z-index: 1;
    user-select: none;
    border-radius: 5px;
    height: 80px;
    width: auto;
  }

  .input-mobile-header .nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 400px;
  }

  .input-mobile-header .nav-item {
    margin-left: 20px;
    margin-right: 20px;
  }

  .content-home {
    margin-right: auto;
    left: 0px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
  }

  .content-home div {
    margin-left: 0px;
    width: 100%;
  }

  .content-home article {
    overflow: hidden;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: relative;
    left: 12px;
    border: 3px solid var(--secondary);
    margin-bottom: 35px;
    box-sizing: border-box;
  }

  .content-home .text-uppercase {
    width: 100%;
  }

  .content-home article img {
    position: relative;
    bottom: 30px;
    width: 100%;
    height: auto;
    border: 0px solid;
    object-fit: cover;
    overflow: hidden;
  }

  .content-home p {
    font-size: 25px;
    width: 70%;
  }

  .content-home h2 {
    font-size: 50px;
  }

  .content-nav {
    top: 0px;
    left: 50%;
  }

  .centered-section {
    margin-top: 30px;
  }

  #text-about-me {
    font-size: 17px;
    line-height: 1.7;
  }
}


@media screen and (max-width: 576px) {

  /* Styles for devices with screen width up to 576px */
  .content-home article {
    opacity: 0;
    width: 0px;
    height: 0px;
  }

  .content-home h2 {
    font-size: 30px;
  }

  .content-home p {
    font-size: 20px;
  }

  .contact-section {
    width: 220px;
  }
}