:root {
  --seconds-circle-size: 60dvh;
  --minutes-circle-size: calc(var(--seconds-circle-size) * 0.88);
  --hours-circle-size: calc(var(--minutes-circle-size) * 0.88);
}

.circle {
  border-radius: 50%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  z-index: 10000;
}

.seconds-circle {
  height: var(--seconds-circle-size);
  width: var(--seconds-circle-size);
  border: 2px solid var(--color-border-light);
}

.minutes-circle {
  height: var(--minutes-circle-size);
  width: var(--minutes-circle-size);
  border: 2px solid var(--color-border-light);
}

.hours-circle {
  height: var(--hours-circle-size);
  width: var(--hours-circle-size);
  border: 2px solid var(--color-border-light);
}

body.scrolled .circle {
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
}

#hoursCircle.follower {
  height: 40px;
  width: 40px;
  box-shadow:
    1px 2px 0px 4px var(--color-overlay-dark),
    2px 3px 0px 2px #ffffff80 inset;
  background-color: #ffffff;
  opacity: 1;
  top: calc(var(--header-height) * 0.2);
  left: 2rem;
}

#hoursCircle.follower.has-action-icon {
  border: none;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
}

#hoursCircle.follower .action-icon {
  display: block;
  height: 70%;
  width: 70%;
}

#minutesCircle.hovering {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  opacity: 1;
}

#secondsCircle.shadowing {
  filter: blur(4px);
  opacity: 22%;
  background-color: #000000;
  height: var(--minutes-circle-size);
  width: var(--minutes-circle-size);
}

#minutesCircle.disabled,
#secondsCircle.disabled {
  opacity: 0.2;
  z-index: -100;
}

body.scrolled .point {
  display: none;
}

.point {
  height: calc(var(--seconds-circle-size) * 0.025);
  width: calc(var(--seconds-circle-size) * 0.025);
  background-color: var(--color-dark);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: all 0.25s cubic-bezier(0.43, 0.34, 0.65, 0.44);
  opacity: 0;
}

#landing {
  height: calc(100dvh - var(--header-height));
  padding: 2rem;
  display: flex;
  align-items: end;
  text-transform: uppercase;
  gap: 1rem;
}

.landing-bg {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10000;
  /* background: var(--color-dark); */
}

#landing h1 {
  font-size: 1.5rem;
  font-family: var(--pixel-font);
  font-weight: normal;
  color: var(--color-green);
}

#landing p {
  font-size: 1.5rem;
  font-family: var(--pixel-font);
  color: var(--color-dark);
}

/* Logo Animation on Landing */

body:not(.scrolled) #logo svg {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: calc(var(--hours-circle-size) * 0.5);
}

/* Common */

#work h2,
#about h2,
#tools h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-green);
}

/* About */

#work,
#about,
#tools,
#skills {
  padding: 5rem 0;
  min-height: 100dvh;
}

#skills {
  height: 100dvh;
  padding: 0;
}


#tools .section-content,
#skills .section-content {
  height: 100%;
  width: 100%;
  margin: 0;
}

#about {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

#about p {
  flex: 1;
  color: var(--color-light-text);
  font-size: var(--fs-normal);
  text-align: justify;
  line-height: 2.5rem;
}

/* Work */

.strip {
  height: 1px;
  width: 100%;
  background: var(--color-border-light);
}

#showAllWork,
.work-item {
  text-decoration: none;
  cursor: pointer;
}

.work-item-content {
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.25s;
}

.work-item-content:hover {
  padding: 3rem 3rem;
  opacity: 0.5;
}

.work-title {
  font-size: 7rem;
  line-height: normal;
  font-family: var(--pixel-font);
}

#showAllWork .work-item-content {
  justify-content: center;
}

#showAllWork .work-title {
  font-size: 5rem;
  color: var(--color-dark);
}

.action-icon {
  display: none;
}

/* tools Section */

#tools {
  height: 100dvh;
}

.tools-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: scroll;
}

.tools-container::-webkit-scrollbar {
  display: none;
}

.tools-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  min-width: 1440px;
}

.tools-canvas {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.tools-wrapper .tool-item {
  height: 80px;
  width: 80px;
  border-radius: 10px;
  background-color: var(--color-light-bg);
  position: absolute;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, left, top;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tools-wrapper .tool-item:hover {
  z-index: 1000;
}

.tools-wrapper .tool-item img {
  height: 65%;
  width: 65%;
  object-fit: contain;
  vertical-align: bottom;
}

.tools-wrapper .tool-item .tool-name {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(10%, -50%);
  font-size: var(--fs-small);
  color: var(--color-light-text);
  visibility: hidden;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  transition: 0.5s;
  background-color: var(--color-light-bg);
  padding: 0.1rem 1rem;
  border-radius: 0.2rem;
  color: var(--color-dark)
}

.tools-wrapper .tool-item.right .tool-name {
  right: 100%;
  left: auto;
  transform: translate(-10%, -50%);
}

.tools-wrapper .tool-item.right:hover .tool-name,
.tools-wrapper .tool-item:hover .tool-name {
  visibility: visible;
  opacity: 1;
  box-shadow: 2px 2px 2px #00000010;
}

.tools-wrapper .tool-item:hover .tool-name {
  transform: translate(20%, -50%);
}

.tools-wrapper .tool-item.right:hover .tool-name {
  transform: translate(-20%, -50%);
}

/* Skills */
.skills-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.skills-controls-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--seconds-circle-size) + 240px);
  border: solid 1px blue;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.skills-controls-prev,
.skills-controls-next {
  height: 100px;
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: solid 1px var(--color-border-light);
  border-radius: 50%;
}

.skills-controls-prev:hover,
.skills-controls-next:hover {
  background-color: var(--color-green);
}

.skills-controls-prev img {
  transform: rotateY(180deg) translateX(10%);
}

.skills-controls-next img {
  transform: translateX(10%);
}

.skills-gap {
  height: calc(var(--seconds-circle-size) + 40px);
  width: calc(var(--seconds-circle-size) + 40px);
}

@media (max-width: 1080px) {
  .work-title {
    font-size: 5rem;
  }

  .about-content {
    flex-direction: column;
  }
}

@media (orientation: portrait) {
  :root {
    --seconds-circle-size: 90dvw;
    --minutes-circle-size: calc(var(--seconds-circle-size) * 0.75);
    --hours-circle-size: calc(var(--minutes-circle-size) * 0.5);
  }

  #landing {
    background-size: 80%;
  }
}

@media (max-width: 768px) {

  #landing {
    padding: 0rem 2rem;
    align-items: start;
    gap: 0px;
    flex-direction: column;
  }

  #about p {
    font-size: 1.3rem;
  }

  .work-item-content {
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .work-title {
    font-size: 3rem;
  }

  #showAllWork .work-title {
    font-size: 2rem;
  }

  .tools-wrapper .tool-item {
    height: 75px;
    width: 75px;
  }

  .skills-controls-wrapper {
    transform: translate(-50%, -50%) rotate(90deg);
  }
}