* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    display: grid;
    place-items: center;
    background-color: slategrey;
    color: whitesmoke;
}
  
html {
    scroll-behavior: smooth;
}

  
  /* DESKTOP NAV */

  nav {
    display: flex;
    width: 100%;
    padding: 20px;
  }

  nav {
    justify-content: space-between;
    align-items: left;
    height: 17vh;
  }

  .nav-links {
    align-items: end;
    font-size: 1rem;
  }

  a {
    display: inline-block;
    color: black;
    text-decoration: none;
    text-decoration-color: white;
    padding-left: 10px;
    align-items: center;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
  }

  @keyframes slideTop {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  

  a:hover {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    text-decoration-color: rgb(181, 181, 181);
    transition: 3s;
    cursor: pointer;
  }

  .logo {
    font-size: 2rem;
    animation: slideBottom 1s ease forwards;
  }

  @keyframes slideBottom {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .logo:hover {
    cursor: default;
  }

  /* HAMBURGER MENU */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
  animation: slideRight 1s forwards;
  z-index: 1;
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.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: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgb(163, 163, 163);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  position: absolute;
  z-index: 999;
  border-radius: 2rem;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 200px;
  animation: slideDown 0.5s forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.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 {
  transform: none;
}

.hamburger-icon span {
  opacity: 1;
}

/* SECTIONS */

section {
  padding: 7vh;
  height: 100vh;
  margin: 0 5rem;
  box-sizing: border-box;
  min-height: fit-content;
  animation: fadeIn 3s ease forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-container {
  display: flex;
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* PROFILE SECTION */

#profile {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  gap: 5rem;
  max-height: 500px;
  height: max-content;
  animation: scaleIn 1s ease forwards;
  z-index: 1;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.btn {
    transition: all 300ms ease;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
    font-weight: 600;
    padding: 1rem;
    width: 15rem;
    border-radius: 2rem;
    animation: slideLeft 1s ease forwards;
    transition: all 300ms ease;
    animation: alternate-reverse 10s;
}

a #download-cv-btn {
    pointer-events: auto;
    z-index: 1;
}

.btn-color-1 {
    background-color: #007bff;
}

.btn-color-2 {
    background-color: #28a745;
}

#socials-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#socials-container a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-size: 24px;
}

/* Ensure elements are visible and clickable */
.btn, #socials-container a {
    display: inline-block;
    pointer-events: auto;
    z-index: 1;
}

.section__pic-container {
  display: grid;
  height: 400px;
  width: 400px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  padding-bottom: 20px;
  animation: 1s ease forwards;
}

.section__text {
  align-self: center;
  text-align: center;
  padding-top: 20px;
  animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section__text p {
  font-weight: 600;
  animation: fadeIn 1s ease forwards;
}

.section__text__p1 {
  text-align: center;
  animation: slideIn 1s ease forwards;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  animation: slideIn 1s ease forwards;
}

.title {
  font-size: 3rem;
  text-align: center;
  padding: 1rem;
  animation: fadeIn 1s ease forwards;
}

#socials-container {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 1rem;
  gap: 1rem;
  color: black;
  font-size: 3rem;
  animation: fadeIn 1s ease forwards;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  animation: fadeIn 1s ease forwards;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 10rem;
  border-radius: 2rem;
  animation: slideLeft 1s ease forwards;
}

@keyframes slideLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

/* ABOUT SECTION */

#about {
  position: relative;
  padding: 1rem;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.details-container {
  padding: 1rem;
  flex: 1;
  background: grey;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.title {
  font-size: 3rem;
  text-align: center;
  padding: 0.2rem;
}

.text-container {
  text-align: justify;
  width: 100%;
  margin: auto 0;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  line-height: 1.6;
}

/* Techologies SECTION */
#techologies {
  position: absolute;
  top: 20px;
}

.techologies-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.techologies-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
  margin: 2rem;
}

article {
  display: flex;
  width: 7rem;
  gap: 0.5rem;
  text-align: left;
  margin: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  width: 100%;
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

i {
  display: block;
  font-size: 2rem;
  color: black;
  justify-content: center;
  align-items: center;
}

.details-container.color-container {
  padding: 0.3rem;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
  margin: 0 0.2rem;
  margin-top: 10rem;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
}

footer p {
  text-align: center;
}
