/* Small Reset */
*::before,
*::after,
* {
  box-sizing: border-box;
}

.hero {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;

  gap: 2rem;
}

/* Portfolio-Picture */

.portfolio-pic {
  max-height: 656px;
  max-width: auto;
}

.mobile-portfolio-pic {
  display: none;
  align-self: center;
  width: 100%;
  height: auto;
}

/* about-text */

.about-frames {
  display: flex;
  padding: 1.5rem 1.75rem;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 16px;
  min-width: 0;
  min-height: 0;
  border: var(--color-orange) 1px solid;
  gap: 1.25rem;
}

#about-text-frame{
  padding: unset;
  justify-content: space-between;
  flex-grow: 1;
}


.head-about-text{
display: flex;
justify-content: start;
gap: 1.5rem;
align-items: center;
align-self: stretch;
flex-wrap: wrap;
}

.head-about-text p{
  font-size: 1.25rem;
  text-align: center;
}

.location-pin{
  display: flex;
  align-items: center;
}

.location-pin::before{
  content: url(../assets/Icons/pin_icon.svg);
}

/* tools i use */

#tools-i-use {
  padding-bottom: 0;
  padding: 1.5rem 0 0 1.5rem;
}

.tool-container {
  display: flex;
  flex: 0 0 max-content;
  gap: 3.25rem;
  align-self: stretch;
  margin-top: auto;
  margin-bottom: auto;
  animation: spin 10s infinite linear;
  padding-right: 3.25rem;
}

.about-pic-desktop {
  width: 353px;
  height: 663px;
}

.carousel {
  user-select: none;
  margin: auto;
  width: 100%;
  display: flex;
  overflow-x: hidden;
  scrollbar-width: none;
}

.tools {
  height: 64px;
  width: 64px;
}

.tool-frame {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-mobilelayout {
  display: flex;
  gap: 3.25rem;
}

.tool-name {
  text-align: center;
}

.text-icon-frame {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: stretch;
  max-width: 1008px;
  height: 656px;
  min-width: 0;
}

/* media queries */

@media (max-width: 1024px) {
  .about-pic-desktop {
    display: none;
  }

  .mobile-portfolio-pic {
    display: flex;
    margin-bottom: 28px;
  }

  .text-icon-frame {
    height: auto;
  }

  .about-frames {
    height: max-content;
  }

  .head-about-text{
    flex-direction: column;
  }
}

@media (max-width: 692px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .about-pic-frame {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }

  .tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    animation: none;
    padding-right: 0;
    flex: 1 1 auto;
  }

  #tool-container-animation {
    display: none;
  }
}

@keyframes spin {
  from {
    translate: 0;
  }
  to {
    translate: -100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: var(--color-orange) transparent;
    padding-bottom: 1.25rem;
  }

  .carousel::-webkit-scrollbar {
    height: 10px;
  }

  .carousel::-webkit-scrollbar-track {
    background: transparent;
  }

  .carousel::-webkit-scrollbar-thumb {
    background: var(--color-orange);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .tool-container {
    display: flex;
    flex: 0 0 auto;
    animation: none;
    width: max-content;
    max-width: none;
    justify-content: flex-start;
    padding-right: 3.25rem;
  }

  #tool-container-animation {
    display: none;
  }
}
