* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  transition: scroll-behavior 0.5s;
}
/* Global styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/*Main */
.container {
  display: flex;
  flex-direction: row;
}
.left {
  flex-basis: 80%;
}

/* Aside Contact */
aside {
  flex-basis: 20%;
  padding: 3rem 0;
  background-color: #ffc436;
  color: #000;
  text-align: center;
}
.contact-content {
  padding: 0 2rem;
  position: sticky;
  top: 5.5rem;
  font-size: 0.8rem;
  overflow: hidden;
}
.contact-content ul {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style-type: none;
}
.contact-content img {
  height: 50px;
}
.contact-email {
  color: #191d88;
  text-decoration: none;
  font-weight: bold;
}

.footer {
  background-color: #191d88;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

@media screen and (max-width: 850px) {
  .header {
    padding: 0.5rem;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-list {
    margin-top: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
  .hero-image {
    display: none;
  }
  .cta-button {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
  }
  .container {
    flex-direction: column;
  }
  .tech,
  .portfolio,
  .contact {
    padding: 2rem 0;
  }

  .tech ul{
    justify-content: center;
  }
  .contact-content {
    position: unset;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .cta-button {
    font-size: 0.8rem;
  }

  .contact-content img {
    height: 25px;
  }
  .contact-email {
    font-size: 1rem;
  }
}

@media screen and (max-height: 500px) {
  .contact-content {
    position: unset;
    overflow: hidden;
  }
}
