@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Color from HTML color codes .com */
:root {
  --bg-primary: #242424;
  --bg-secondary: #313131;
  --bg-danger: #c11007;
  --bg-purple: #8f177d;
  --bg-amber: #e6c615;
  --bg-success: #1b8f17;
  --bg-dark: #1b1b1b;
  --text-light: #ececec;
  --text-muted: #9f9f9f;
  --text-primary: #36bba7; /*#6 from bottom*/
  --text-primary-hover: #2a9689; /*#6 from bottom*/
  --text-secondary: #fe9a37; /*#6 from bottom*/
  --text-secondary-hover: #e1712b; /*#7 from bottom*/
  --text-dark: #075f5a; /*#3 from bottom*/
  --text-dark-hover: #053f3d; /*#2 from bottom*/

  /* Font sizes */
  --font-xxs: 0.6rem;
  --font-xs: 0.8rem;
  --font-sm: 1rem;
  --font-md: 1.2rem;
  --font-lg: 1.4rem;
  --font-xl: 1.6rem;
  --font-2xl: 1.8rem;
  --font-3xl: 2rem;
  --font-4xl: 2.2rem;
  --font-5xl: 2.4rem;
  --font-6xl: 2.6rem;
  --font-7xl: 2.8rem;
  --font-8xl: 3rem;

  /* Border sizes */
  --border-4xs: 0.05rem;
  --border-3xs: 0.1rem;
  --border-2xs: 0.2rem;
  --border-xs: 0.4rem;
  --border-sm: 0.6rem;
  --border-md: 0.8rem;
  --border-lg: 1rem;
  --border-xl: 1.2rem;
  --border-2xl: 1.4rem;
  --border-3xl: 1.6rem;
  --border-4xl: 1.8rem;
  --border-5xl: 2rem;
  --border-circle: 999rem;

  --section-margin-lg: 6rem;
  --section-margin: 4rem;
  --section-margin-md: 3rem;
  --section-margin-sm: 2rem;
  --section-margin-xs: 1rem;

  /* Button dimension */
  --btn-min-width: 7rem;
  --btn-width: fit-content;
  --btn-height: 3rem;

  /* Feature Project Widget Dimensions*/
  --project-widget-width: 23rem;
  --project-widget-height: 14.38rem;
}

* {
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  background-color: var(--bg-primary);
}

.app {
  padding: 0.3rem 4rem;
  position: relative;
}

span,
p {
  padding: 0;
  margin: 0;
}

/* Header */
header,
.header {
  width: 100%;
  height: 4rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;

  z-index: 20;

  /* Important */
  background: transparent;

  isolation: isolate;

  & > .header-logo {
    background-color: var(--bg-primary);
    position: relative;
    width: 5rem;
    height: 5rem;

    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    & > img {
      width: 4rem;
      height: auto;

      object-fit: cover;
      object-position: center;

      display: block;
    }
  }
}

/* Banner */
.banner {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  margin-top: var(--section-margin);
}

.banner > .left-col,
.banner > .right-col {
  flex: 1 1 0;
  min-width: 0;
}

/* Banner - left col */
.banner > .left-col {
  & > h1 {
    color: var(--text-light);
    font-size: var(--font-8xl);
  }

  & > p {
    color: var(--text-light);
    margin-top: var(--section-margin-sm);
    font-size: var(--font-md);
  }

  & > .socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: var(--section-margin-sm);

    & > a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      color: var(--text-light);
      text-decoration: none;

      transition: all 0.3s ease;

      &:hover {
        scale: 1.2;
      }

      & > i {
        font-size: 2rem;
      }
    }
  }
}

/* Banner - right col */
.banner > .right-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.profile-badge {
  min-width: 12rem;
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 0.3rem;
  border-radius: var(--border-md);
  background-color: color-mix(in srgb, var(--bg-secondary) 100%, transparent);
  z-index: 10;

  & > .icon {
    & > i {
      color: var(--text-primary);
      font-size: var(--font-xl);
    }
  }

  & > .info {
    & > h1 {
      color: var(--text-light);
      font-size: var(--font-sm);
    }
    & > span {
      color: var(--text-muted);
      font-size: var(--font-sm);
    }
  }
}

.profile-badge.num-1 {
  position: absolute;
  top: 0;
  left: 0;
}

.profile-badge.num-2 {
  position: absolute;
  top: 30%;
  left: 75%;
}

.profile-badge.num-3 {
  position: absolute;
  top: 80%;
  left: 10%;
}

.banner > .right-col > .image-container {
  position: relative;
  width: 25rem;
  height: 25rem;

  border-radius: 50%;
  overflow: hidden;
}

.banner > .right-col > .image-container > img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

/* Expertise */
.expertise {
  display: block;
  width: 100%;
  height: fit-content;
  margin-top: var(--section-margin);
}

.expertise > .expertise-header {
  color: var(--text-light);
}

.expertise > .skill-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: var(--section-margin);

  flex-wrap: wrap;

  & > .skill-card {
    width: 15rem;
    min-height: 21rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-secondary);
    padding: 1.5rem 1rem;
    border-radius: var(--border-lg);
    border-bottom: 2px solid var(--text-dark);
    border-top: 2px solid var(--text-secondary);

    /* Card Icon */
    & > .icon {
      width: 4rem;
      height: 4rem;
      border-radius: var(--border-circle);
      background-color: color-mix(in srgb, var(--text-light) 5%, transparent);
      display: flex;
      align-items: center;
      justify-content: center;

      & > i {
        font-size: var(--font-2xl);
      }
    }

    /* Card Info */

    & > h1 {
      color: var(--text-light);
      font-size: var(--font-lg);
      font-weight: 400;
      text-align: center;
    }

    & > p {
      color: var(--text-muted);
      font-size: var(--font-sm);
      font-weight: 400;
      text-align: center;
    }
  }
}

/* Featured projects */
.featured-projects {
  display: block;
  width: 100%;
  height: fit-content;
  margin-top: var(--section-margin);
}

.featured-projects > .featured-projects-header {
  color: var(--text-light);
}

.featured-projects > .projects-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--section-margin-sm);
  flex-wrap: wrap;

  & > .project {
    display: flex;
    flex-direction: column;
    align-self: stretch;

    width: var(--project-widget-width);
    height: fit-content;
    box-sizing: border-box;
    border-radius: var(--border-lg);
    transition: all 0.2s ease;

    &:hover {
      background: var(--bg-dark);
    }

    & > .demo-widget {
      width: 100%;
      height: var(--project-widget-height);
      overflow: hidden;
      border-radius: var(--border-lg) var(--border-lg) 0 0;

      & > .iframe-scaler {
        width: 1440px;
        height: 900px;

        transform: scale(0.25556);
        transform-origin: top left;

        & > iframe {
          width: 1440px;
          height: 900px;
          border: none;
          display: block;
        }
      }
    }

    & > .project-body {
      width: 100%;
      height: 100%;
      padding: 1rem;

      & > .skills {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        width: fit-content;

        & > .skill-badge {
          width: fit-content;
          height: fit-content;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 1rem;
          font-size: var(--font-xs);
          font-weight: 500;
          padding: 0.5rem;
          border-radius: var(--border-sm);
          color: var(--text-muted);
          background-color: color-mix(
            in srgb,
            var(--bg-secondary) 100%,
            transparent
          );

          &.danger {
            background-color: color-mix(
              in srgb,
              var(--bg-danger) 50%,
              transparent
            );
          }

          &.success {
            background-color: color-mix(
              in srgb,
              var(--bg-success) 50%,
              transparent
            );
          }

          &.purple {
            background-color: color-mix(
              in srgb,
              var(--bg-purple) 50%,
              transparent
            );
          }

          &.warning {
            color: var(--bg-dark);
            background-color: color-mix(
              in srgb,
              var(--bg-amber) 50%,
              transparent
            );
          }
        }
      }

      & > p {
        font-size: var(--font-sm);
        color: var(--text-muted);
        font-weight: 500;
        margin-top: var(--section-margin-xs);
      }

      & > .link-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: var(--section-margin-xs);
      }
    }
  }
}

/* About Me */
.about-me {
  display: block;
  width: 100%;
  height: fit-content;
  margin-top: var(--section-margin);

  background-color: var(--bg-dark);
  border-radius: var(--border-lg);
  padding: 1.5rem 1.5rem;
}

.about-me > .about-me-header {
  color: var(--text-light);
}

.about-me > .info > .left-col,
.about-me > .info > .right-col {
  flex: 1 1 0;
  min-width: 0;
}

.about-me > .info {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: var(--section-margin-sm);

  & > .left-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;

    & > .bio {
      color: var(--text-light);
      font-size: var(--font-md);
    }

    & > .contact-details {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }
  }

  & > .right-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    align-self: stretch;
    border-radius: var(--border-xl);
    padding: 1.5rem;
  }
}

/* Tech Stack */
.tech-stack {
  display: block;
  width: 100%;
  height: fit-content;
  margin-top: var(--section-margin);
}

.tech-stack > .tech-stack-header {
  color: var(--text-light);
}

.tech-stack > .skill-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--section-margin-sm);

  & > img {
    width: 20rem;
    height: auto;
  }
}

/* App Footer */
footer,
.app-footer {
  width: 100%;
  height: fit-content;
  padding: 1rem;
  color: var(--text-muted);
  margin-top: var(--section-margin);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Shade - Custom classes */
.multi-shade {
  background: linear-gradient(90deg, #36bba7 0%, #fe9a37 100%);

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}
.multi-shade-bg {
  background: linear-gradient(90deg, #36bba7 0%, #fe9a37 100%);
}

/*** Buttons ***/
button,
.btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;

  min-width: fit-content;
  width: fit-content;
  height: fit-content;

  padding: 0.6rem 1rem;

  outline: none;

  font-size: var(--font-md);
  font-weight: 500;

  border-radius: var(--border-sm);

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* Smooth icon transition too */
button > i,
.btn > i,
a > i {
  transition: color 0.25s ease;
}
/* ================= PRIMARY ================= */

.btn.btn-primary {
  background-color: var(--text-primary);
  color: var(--text-light);
  border: 2px solid transparent;
}

.btn.btn-primary > i {
  color: var(--text-light);
}

/* ================= SECONDARY ================= */

.btn.btn-secondary {
  background-color: var(--text-secondary);
  color: var(--text-light);
  border: 2px solid transparent;
}

.btn.btn-secondary > i {
  color: var(--text-light);
}

/* ================= DARK ================= */

.btn.btn-dark {
  background-color: var(--text-dark);
  color: var(--text-light);
  border: 2px solid transparent;
}

.btn.btn-dark > i {
  color: var(--text-light);
}

/* ================= PRIMARY OUTLINE ================= */

.btn.btn-primary.outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn.btn-primary.outline > i {
  color: var(--text-primary);
}

/* ================= PRIMARY OUTLINE LINK ================= */

.btn.btn-primary.outline.link {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
  padding: 0.3rem;
  font-size: var(--font-sm);
}

.btn.btn-primary.outline.link > i {
  color: var(--text-primary);
}

.btn.btn-primary.outline.link:hover {
  background-color: var(--text-primary);
  color: var(--text-light);
  border-color: var(--text-primary);
}

.btn.btn-primary.outline.link:hover > i {
  color: var(--text-light);
}

/* ================= SECONDARY OUTLINE LINK ================= */

.btn.btn-secondary.outline.link {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--text-secondary);
  padding: 0.3rem;
  font-size: var(--font-sm);
  border: var(--border-4xs) solid var(--text-secondary);
  border-radius: var(--border-xs);
}

.btn.btn-secondary.outline.link > i {
  color: var(--text-secondary);
}

.btn.btn-secondary.outline.link:hover {
  background-color: var(--text-secondary);
  color: var(--text-light);
  border-color: var(--text-secondary);
}

.btn.btn-secondary.outline.link:hover > i {
  color: var(--text-light);
}

/* ================= SECONDARY OUTLINE ================= */

.btn.btn-secondary.outline {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.btn.btn-secondary.outline > i {
  color: var(--text-secondary);
}

/* ================= HOVER ================= */

.btn.btn-primary:hover {
  background-color: var(--text-primary-hover);
}

.btn.btn-secondary:hover {
  background-color: var(--text-secondary-hover);
}

.btn.btn-dark:hover {
  background-color: var(--text-dark-hover);
}

.btn.btn-primary.outline:hover {
  background-color: var(--text-primary);
  color: var(--text-light);
  border-color: var(--text-primary);
}

.btn.btn-primary.outline:hover > i {
  color: var(--text-light);
}

.btn.btn-secondary.outline:hover {
  background-color: var(--text-secondary);
  color: var(--text-light);
  border-color: var(--text-secondary);
}

.btn.btn-secondary.outline:hover > i {
  color: var(--text-light);
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  /* App */
  .app {
    padding: 0.3rem 2rem;
    position: relative;
  }

  /* Header */
  header,
  .header {
    & > .download-resume {
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;

      & > span {
        display: none;
      }
    }
  }

  /* Banner */
  .banner {
    display: flex;
    flex-direction: column;
  }
  /* Banner - left col */
  .banner > .left-col {
    & > h1 {
      color: var(--text-light);
      font-size: var(--font-xl);
    }

    & > p {
      color: var(--text-light);
      margin-top: var(--section-margin-sm);
      font-size: var(--font-sm);
    }
  }

  /* Banner - right col */
  .banner > .right-col {
    margin-top: var(--section-margin-lg);
  }

  .profile-badge {
    min-width: 10rem;

    & > .icon {
      & > i {
        color: var(--text-primary);
        font-size: var(--font-lg);
      }
    }

    & > .info {
      & > h1 {
        color: var(--text-light);
        font-size: var(--font-xs);
      }
      & > span {
        color: var(--text-muted);
        font-size: var(--font-xs);
      }
    }
  }

  .profile-badge.num-1 {
    position: absolute;
    top: -20%;
    left: 16%;
  }
  .profile-badge.num-2 {
    position: absolute;
    top: 90%;
    left: 55%;
  }
  .profile-badge.num-3 {
    position: absolute;
    top: 90%;
    left: -25%;
  }

  .banner > .right-col > .image-container {
    width: 15rem;
    height: 15rem;
  }

  /* Expertise */
  .expertise > .expertise-header {
    text-align: center;
  }

  .expertise > .skill-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: var(--section-margin);
    flex-wrap: wrap;

    & > .skill-card {
      width: 8rem;
      min-height: 10rem;
      display: flex;
      flex-direction: column;
      align-items: center;

      /* Card Icon */
      & > .icon {
        width: 2rem;
        height: 2rem;

        & > i {
          font-size: var(--font-md);
        }
      }

      /* Card Info */
      & > h1 {
        font-size: var(--font-sm);
      }

      & > p {
        display: none;
      }
    }
  }

  /* Feature Projects */
  .featured-projects > .featured-projects-header {
    text-align: center;
  }

  /* Tech Stack */
  .tech-stack > .tech-stack-header {
    text-align: center;
  }

  .tech-stack > .skill-container {
    & > img {
      width: 10rem;
    }
  }

  /* About Me */
  .about-me > .about-me-header {
    text-align: center;
  }

  .about-me > .info {
    display: flex;
    flex-direction: column;

    & > .left-col {
      display: flex;
      flex-direction: column;

      & > .bio {
        font-size: var(--font-sm);
      }
    }

    & > .right-col {
      & > h1,
      p {
        text-align: center;
      }
      & > .btn-contact-me {
        align-self: center;
      }
    }
  }
}
