#home {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 9rem 0 9rem;
  margin: 0 0 10rem 0;
}

#home .background-image {
  position: absolute;
  background-image: url(../../assets/img/88609.webp);
  width: 200px;
  height: 50vh;
  background-position: -300px 0;
  top: 0;
  right: 10%;
  z-index: 0;
}

#home .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

#home .content {
  display: flex;
  flex-direction: column;
}

#home .title {
  display: flex;
  flex-direction: column;
}

#home-title {
  display: flex;
  color: var(--primary-color);
  font-size: 7rem;
}

#home-subtitle {
  display: flex;
  color: var(--highlight-color);
  font-size: 2rem;
  font-weight: 600;
}

#home .info {
  display: flex;
}

.autoRotateAnimation {
  animation: autoRotateAnimation;
  animation-timeline: view();
}

@keyframes autoRotateAnimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#about {
  display: flex;
  padding: 10rem 9rem 10rem 9rem;
}

#about .content {
  display: flex;
}

#about-title {
  color: var(--primary-color);
  font-size: 4.5rem;
}

.highlight {
  color: var(--highlight-color);
}

#about .info {
  display: flex;
  gap: 15rem;
  justify-content: space-between;
  align-items: center;
}

#about .text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

#about .text p {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75rem;
}

#curriculum {
  text-decoration: none;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: var(--tone-color);
}

#about .image {
  position: relative;
}

#profile-picture {
  display: block;
  max-width: 300px;
  border-radius: 0 2rem 0 0;
  pointer-events: none;
}

.notion {
  position: absolute;
  z-index: 3;
  top: -35px;
  left: -35px;
}

#notion-avatar {
  max-width: 100px;
  border-radius: 50%;
  transition: 0.3s ease;
}

#notion-avatar:hover,
#notion-avatar:focus {
  transform: scale(1.1);
}

#skills {
  display: flex;
  height: 100%;
  padding: 10rem 9rem 10rem 9rem;
  gap: 0.625rem;
}

#skills .content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 4rem;
}

#skills .title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#skills-title {
  color: var(--primary-color);
  font-size: 4.5rem;
}

#skills-subtitle {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 300;
}

#skills .icons {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  max-width: 2560px;
  position: relative;
  height: 100px;
  overflow: hidden;
  mask-image: linear-gradient(to right, #fff0, rgb(0 0 0) 20%, rgb(0 0 0) 80%, #fff0);
}

@keyframes scrollLeft {
  to {
    left: -200px;
  }
}

#skills .icon {
  height: 6rem;
  width: 6rem;
  position: absolute;
  left: max(calc(50px * 5), 100%);
  animation-name: scrollLeft;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.java {
  animation-delay: calc(10s / 5 * (5 - 1) * -1);
}

.javascript {
  animation-delay: calc(10s / 5 * (5 - 2) * -1);
}

.html {
  animation-delay: calc(10s / 5 * (5 - 3) * -1);
}

.css {
  animation-delay: calc(10s / 5 * (5 - 4) * -1);
}

.uxui {
  animation-delay: calc(10s / 5 * (5 - 5) * -1);
}

#skills .text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--tertiary-color);
}

#skills .text p {
  cursor: pointer;
  transition: 0.2s ease;
}

#skills .text p:hover,
#skills .text p:focus {
  color: var(--highlight-color);
}

#projects {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10rem 9rem 15rem 9rem;
}

#projects .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

#projects .title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#projects-title {
  color: var(--primary-color);
}

#projects-subtitle {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 300;
}

.seemore {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.75rem;
}

.container {
  display: flex;
}

.card-item {
  list-style: none;
  max-width: 30%;
}

.swiper-slide {
  width: fit-content;
}

.card-wrapper {
  margin: 0 0 2rem 0;
  padding: 20px 0;
  gap: 10%;
  overflow: hidden;
}

.card-link {
  user-select: none;
  display: flex;
  flex-direction: column;
  background: #222;
  border-radius: 15px;
  text-decoration: none;
  border: 2px solid #fff0;
  margin-right: 10%;
  box-shadow: 0 10px 10px rgb(0 0 0 / 0.05);
  transition: 0.2s ease;
}

.card-content {
  padding: 1.5rem;
}

.card-link:hover {
  border-color: var(--secondary-color);
  transform: scale(1.035);
}

.card-image {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  margin: 0;
}

.badges {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  gap: 0.75rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  margin: 1rem 0 1.1rem;
  font-size: 0.75rem;
  width: fit-content;
  border-radius: 15px;
  transition: 0.2s ease;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-button {
  height: 2rem;
  width: 2rem;
  color: var(--primary-color);
  border-radius: 50%;
  margin: 1rem 0 0.3rem;
  background: none;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  transform: rotate(-45deg);
  transition: 0.4s ease;
}

.card-link:hover .card-button {
  color: #222;
  background-color: var(--primary-color);
}

.swiper-pagination-bullet {
  height: 10px;
  width: 10px;
  opacity: 0.5;
  background: var(--primary-color);
}

#contact {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 30.4375rem;
  padding: 10rem;
  align-items: center;
  gap: 0.625rem;
  background: var(--primary-color);
}

#contact .content {
  display: flex;
  gap: 6.125rem;
}

#contact .contact {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2.5rem;
}

#contact .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

#contact-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: normal;
}

#contact-phone,
#contact-mail {
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--background-color);
}

#contact-mail:visited {
  text-decoration: none;
}

#social-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: normal;
}

#contact .social {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2.5rem;
}

#contact .icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1280px) {
  #home {
    margin: 0 0 4rem 0;
  }
  #home-title {
    font-size: 6rem;
  }
  #home .container {
    gap: 15rem;
  }

  .card-item {
    max-width: 50%;
  }
}

@media (max-width: 1150px) {
  #profile-star {
    display: none;
  }
  #home {
    padding: 10rem 5rem 0 5rem;
  }
  #home .container {
    gap: 0;
  }
  .bold {
    border: 0.75rem solid var(--primary-color);
  }
  #about {
    padding: 10rem 5rem 10rem 5rem;
    height: 100%;
  }
  #about .info {
    flex-direction: column;
    gap: 5rem;
  }
  #skills {
    padding: 10rem 5rem 10rem 5rem;
  }
  #projects {
    padding: 10rem 5rem 10rem 5rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  #home-title {
    font-size: 4.75rem;
  }
  #contact {
    padding: 5rem;
  }
  #contact .content {
    flex-wrap: wrap;
  }
  #contact .contact {
    align-items: center;
  }
  #contact .social {
    align-items: center;
  }
  .swiper-slide {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 481px) {
  .bold {
    border: 0.5rem solid var(--primary-color);
  }
  #home {
    padding: 5rem 2rem 0 2rem;
  }
  #home-title {
    font-size: 3.75rem;
  }
  #about {
    padding: 5rem 2rem 5rem 2rem;
  }
  #about-title {
    font-size: 3.5rem;
  }
  #skills {
    padding: 5rem 2rem 5rem 2rem;
  }
  #skills-title {
    font-size: 3.5rem;
  }
  #skills-subtitle {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  #skills .icons {
    width: 100%;
  }
  #skills .icon {
    height: 5rem;
    width: 5rem;
  }
  #projects {
    padding: 10rem 2rem 10rem 2rem;
  }
  #projects .title {
    gap: 1rem;
  }
  #projects-title {
    font-size: 3.5rem;
  }
  #projects-subtitle {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (max-width: 359px) {
  .bold {
    border: 0.5rem solid var(--primary-color);
  }
  #home {
    padding: 5rem 1rem 0 1rem;
  }
  #about {
    padding: 5rem 1rem 5rem 1rem;
  }
  #skills {
    padding: 5rem 1rem 5rem 1rem;
  }
  #projects {
    padding: 5rem 1rem 5rem 1rem;
  }
  #home-title {
    font-size: 3.5rem;
  }
}
