:root {
  --primary-color: rgb(10, 0, 27);
  --secondary-color: rgb(43, 105, 251);
  --text-on-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

#progress_bar {
  position: fixed;
  top: 0;
  background-color: #ffdd40;
  height: 5px;
}

img {
  max-width: 100%;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  color: var(--primary-color);
  font-weight: 300;
  text-align: center;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.6rem, 4vw, 1.8rem);
  color: var(--primary-color);
  font-weight: 400;
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  width: 100%;
  height: 100%;
  min-height: 88vh;
  background-color: var(--primary-color);
  border-top: 10px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem;
}

.welcome-intro {
  color: var(--text-on-color);
  font-size: 18px;
  font-weight: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;

  h1 {
    font-size: clamp(4rem, 8vw, 145px);
    font-weight: 200;
  }

  p {
    line-height: 1.5;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
}

.tech-img {
  display: flex;
  justify-content: center;
}

/* work */
.my-projects {
  padding-block: 2rem;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding-block-start: 3rem;

  .project-details {
    display: grid;
    align-content: flex-start;
    gap: 0.5rem;
    padding-block-end: 1rem;
  }

  .project-item {
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(43, 105, 251, 0.12);
    box-shadow: rgba(43, 105, 251, 0.06) 0px 0px 1rem 1rem;
    text-align: left;
    line-height: 1.75;
  }

  .project-img {
    overflow: hidden;
  }

  img {
    transition: 0.5s ease;

    &:hover {
      transform: scale(1.15);
    }
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}

/* skills */
.tech-title {
  padding-block: 2rem;
  margin-bottom: 0;
}

.tech-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-block-end: 4rem;
  gap: 2rem;

  h3 {
    text-align: center;
  }

  .primary-skills,
  .secondary-skills {
    display: grid;
    gap: 1.4rem;
  }

  .skills-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(43, 105, 251, 0.12);
    box-shadow: rgba(43, 105, 251, 0.06) 0px 0px 1rem 1rem;
  }

  .skill {
    display: grid;
    gap: 0.2rem;

    strong {
      font-size: 1.4rem;
      font-weight: 400;
      color: var(--primary-color);
    }

    span {
      font-size: 0.8rem;
    }

    span {
      opacity: 0.5;
    }
  }
}

/* footer */

.footer {
  background-color: var(--primary-color);
  color: var(--text-on-color);
  padding-block: 4rem;

  .footer-inner {
    display: grid;
    grid-template-columns: auto 3fr;
    gap: 2rem;
  }

  a {
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;

    &:hover {
      color: var(--secondary-color);
    }
  }

  ul.footer-text {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1.2em;

    span {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background-color: var(--text-on-color);
      display: inline-block;
      flex-shrink: 0;
    }

    .bi-box-arrow-up-right {
      font-size: 0.8rem;
    }
  }

  .icons {
    display: flex;
    justify-content: flex-end;
    gap: 1.6rem;

    i.bi {
      font-size: 1.4rem;
    }
  }
}

/* back to top */

#back-top-top {
  position: fixed;
  right: 1rem;
  bottom: 10rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  &.visible {
    opacity: 1;
    pointer-events: initial;
  }

  i.bi {
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;

    &::before {
      border: 2px solid #fff;
      border-radius: 50%;
      background-color: #fff;
    }
  }
}
