@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  scroll-behavior: smooth;

  /* ********** Colour Pallet ********** */
  --clr-white: #fafafa;
  --clr-black: #050505;
  --clr-darkGray: #101014;
  --clr-gray: #a3a3a3;
  --clr-brightPink: #f72585;
  --clr-pink: #b5179e;
  --clr-violet: #7209b7;
  --clr-darkPurple: #3a0ca3;
  --clr-purple: #3f37c9;
  --clr-blue: #4895ef;
  --clr-brightBlue: #4cc9f0;
  --clr-lightBlue: #a1e3f7;
  --clr-brightGreen: #16db93;
  --clr-green: #83e377;
  --clr-yellow: #ffde01;

  /* ********** Font Sizes ********** */
  --fs-hero: 5rem;
  --fs-sectionHeading: 3.5rem;
  --fs-subHeading: 2.8rem;

  --fs-body: 1.6rem;
  --fs-description: 1.4rem;

  --fs-primaryButton: 1.6rem;
  --fs-secondaryButton: 1.4rem;

  --fs-navMenu: 1.6rem;

  --fs-formLabel: 1.4rem;
  --fs-formText: 1.4rem;

  --fs-footerText: 1.2rem;

  /* ********** Font Weights ********** */
  --fw-hero: 700;
  --fw-sectionHeading: 600;
  --fw-subHeading: 500;

  --fw-body: 400;
  --fw-description: 300;

  --fw-primaryButton: 600;
  --fw-secondaryButton: 500;

  --fw-navMenu: 500;

  --fw-formLabel: 400;
  --fw-formText: 300;

  --fw-footerText: 300;

  /* ********** Spacing ********** */
  --sp-maxWidth: 1440px;
}

html {
  font-size: 62.5%;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  background: var(--clr-white);
  color: var(--clr-black);
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kanit", sans-serif;
}

button,
nav {
  font-family: "Kanit", sans-serif;
}

ol,
ul {
  list-style: none;
  padding-inline: 0;
}

a {
  color: var(--clr-black);
  text-decoration: none;
}

img {
  display: block;
  max-inline-size: 100%;
}

hr {
  border: solid 1px var(--clr-black);
}

textarea {
  resize: none;
}

/* ********** Full body and background settings ********** */
.background-container {
  background: var(--clr-black);
  cursor: url("./assets/images/circle-small.svg"), auto;
  cursor: url("./assets/images/circle-small.svg") 15 15, move;
}

.page-container {
  margin: auto;
  max-width: var(--sp-maxWidth);
}

/* ********** Navbar ********** */
.hamburger-menu {
  display: none;
}

.off-screen-menu {
  background-color: #101014fc;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  right: -100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.5s ease;
  z-index: 8;
}

.off-screen-menu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.off-screen-menu a {
  color: var(--clr-white);
  font-size: 4em;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  cursor: url("./assets/images/circle-medium-pink.svg"), auto;
  cursor: url("./assets/images/circle-medium-pink.svg") 15 15, move;
}

.off-screen-menu.active {
  right: 0;
}

.off-screen-menu a:hover {
  color: var(--clr-brightBlue);
  filter: brightness(1.25);
}

.nav-container {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  left: 0;
  background: #0505058b;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 48px min(5vw, 64px);
  width: min(100%, var(--sp-maxWidth));
  cursor: url("./assets/images/circle-small.svg"), auto;
  cursor: url("./assets/images/circle-small.svg") 15 15, move;
}

.nav-logo,
.nav-logo a,
.nav-links a,
.nav-button,
.nav-socials a {
  cursor: url("./assets/images/circle-medium-pink.svg"), auto;
  cursor: url("./assets/images/circle-medium-pink.svg") 15 15, move;
}

.nav-logo:hover {
  transform: scale(1.1);
  filter: brightness(1.25);
}

.nav-button:hover {
  background: var(--clr-darkPurple);
  background-image: linear-gradient(
    90deg,
    var(--clr-brightBlue) 0%,
    var(--clr-purple) 100%
  );
  box-shadow: 0 0 5px 0 var(--clr-white);
  box-shadow: -40px 0 100px #4ccaf080, 40px 0 100px #f7258580;
  filter: brightness(1.25);
}

.nav-socials a:hover {
  color: var(--clr-blue);
  transform: scale(1.5);
  text-shadow: 0 0 100px #4ccaf080;
  filter: brightness(1.25);
}

.nav-links a:hover {
  color: var(--clr-blue);
  transform: scale(1.1);
  filter: brightness(1.25);
  box-shadow: -40px 0 100px #4ccaf080, 40px 0 100px #f7258580;
}

.nav-socials,
.nav-logo,
.nav-links-container {
  width: 33.333%;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-socials a {
  color: var(--clr-white);
  font-size: 3rem;
  transition: all 0.3s ease-in-out;
}

.nav-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease-in-out;
}

.logo-wrapper {
  position: relative;
  width: min(15rem, 15vw);
}

.nav-logo img {
  width: min(15rem, 15vw);
}

.logo-wrapper::before {
  content: "";
  position: absolute;
  top: 112.5%;
  left: 13.5%;
  width: 0;
  height: 100%;
  rotate: -20deg;
  background: url("./assets/images/brushStroke.webp") no-repeat;
  background-size: contain;
  transform-origin: left;
  transition: linear 0.5s;
  opacity: 0;
}

.logo-wrapper:hover::before {
  width: 110%;
  left: 7.5%;
  opacity: 0.85;
}

.nav-links-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: var(--fs-navMenu);
  font-weight: var(--fw-navMenu);
}

.nav-links a {
  color: var(--clr-white);
  font-weight: 700;
  line-height: 75%;
  transition: all 0.3s ease-in-out;
}

.nav-button {
  padding: 8px 12px;
  border: none;
  border-radius: 24px;
  background: var(--clr-white);
  color: var(--clr-black);
  font-size: var(--fs-secondaryButton);
  font-weight: var(--fw-se--fs-secondaryButton);
  transition: all 0.3s ease-in-out;
}

.nav-active {
  text-decoration: underline solid 5px var(--clr-blue);
  text-underline-offset: 7.5px;
  pointer-events: none;
}

.nav-links a.nav-active {
  color: var(--clr-blue);
}

/* ********** Work Hero ********** */

.projects-hero-section {
  width: 100%;
  cursor: url("./assets/images/circle-small.svg"), auto;
  cursor: url("./assets/images/circle-small.svg") 15 15, move;
}

.projects-title-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40rem min(5vw, 64px) 25rem;
}

.projects-title-bold {
  font-size: min(6vw, 11rem);
  font-weight: 800;
  letter-spacing: 0.5rem;
  line-height: 100%;
  background: linear-gradient(
    to right,
    var(--clr-brightBlue) 0%,
    var(--clr-purple) 50%,
    var(--clr-brightPink) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-title-container p {
  padding: 1rem 0;
  text-align: center;
  font-size: min(2.4rem, 2.5vw);
  max-width: 85%;
  margin: 0 auto;
  color: var(--clr-gray);
  line-height: 1.5;
}

/* ********** Projects Section ********** */

.work-section {
  padding: 0 min(5vw, 64px);
}

.work-section-container {
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0 3rem 4rem;
}

.project-card {
  background-color: rgb(40, 40, 40);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 5px 0 var(--clr-white);
  box-shadow: -40px 0 150px #4ccaf080, 40px 0 150px #f7258580;
  filter: brightness(1.05);
}

.project-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-details {
  padding: min(36px, 8vw);
}

.project-title {
  margin-bottom: 0.5rem;
  color: var(--clr-white);
  font-weight: 600;
  font-size: min(2.4rem, 3vw);
}

.project-description {
  color: var(--clr-gray);
  font-size: min(1.4rem, 2.75vw);
  margin-bottom: 1rem;
  max-width: 65%;
}

.project-description-2 {
  color: var(--clr-gray);
  font-size: min(1.4rem, 2.75vw);
  margin-bottom: 1rem;
  max-width: 100%;
}

.project-links-tags-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-links-tags-wrapper-2 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tag {
  color: var(--clr-white);
  font-size: min(1.2rem, 2.5vw);
  font-weight: 300;
  padding: 3px 8px;
  border-radius: 24px;
  background: transparent;
  border: 1px solid var(--clr-white);
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link {
  color: var(--clr-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: min(1.4rem, 2.75vw);
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  cursor: url("./assets/images/circle-medium-pink.svg"), auto;
  cursor: url("./assets/images/circle-medium-pink.svg") 15 15, move;
}

.project-link:hover {
  transform: scale(1.05);
  color: var(--clr-brightBlue);
  filter: brightness(1.25);
}

.project-highlight {
  grid-column: span 2;
}

.project-highlight .project-image {
  height: 400px;
}

.featured-badge {
  position: absolute;
  top: min(24px, 8vw);
  right: min(24px, 8vw);
  background: linear-gradient(
    90deg,
    var(--clr-brightBlue) 0%,
    var(--clr-purple) 100%
  );
  font-size: min(1.2rem, 2.5vw);
  font-weight: 600;
  padding: 3px 8px;
  color: var(--clr-white);
  border-radius: 14px;
}

.gradient-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1106px;
  background: linear-gradient(
    180deg,
    rgba(76, 201, 240, 0.2) 0%,
    rgba(63, 55, 201, 0.2) 50%,
    rgba(247, 37, 133, 0.2) 100%
  );
  filter: blur(250px);
}

/* ********** Footer Section ********** */

.footer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45rem;
  margin-top: 15rem;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.51) 0%,
    rgba(63, 55, 201, 0.51) 66%,
    rgba(76, 201, 240, 0.51) 100%
  );
}

.footer-container {
  max-width: var(--sp-maxWidth);
  padding: 0 min(5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.footer-logo a,
.footer-socials a,
.footer-links a,
.footer-mail a,
.footer-back-to-top a,
.footer-back-to-top a span,
.superman-icon,
.back-to-top-text {
  cursor: url("./assets/images/circle-medium-pink.svg"), auto;
  cursor: url("./assets/images/circle-medium-pink.svg") 15 15, move;
}

.footer-logo {
  width: 10rem;
  transition: all 0.5s ease-in-out;
}

.footer-links-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}

.footer-socials,
.footer-links,
.footer-mail {
  width: 33.333%;
}

.footer-socials a {
  margin-right: 12px;
  font-size: 2rem;
  color: var(--clr-white);
}

.footer-socials a i {
  transition: all 0.3s ease-in-out;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.footer-links a,
.footer-mail a {
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--clr-white);
  transition: all 0.3s ease-in-out;
}

.footer-mail {
  display: flex;
  justify-content: flex-end;
}

.footer-copyright-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.footer-copyright-text {
  color: var(--clr-white);
  font-size: var(--fs-footerText);
  font-weight: var(--fw-footerText);
}

.footer-back-to-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  transition: all 0.5s ease-in-out;
}

.superman-icon {
  height: 5rem;
  margin: auto;
  transition: all 0.5s ease-in-out;
}

.back-to-top-text {
  color: var(--clr-white);
  font-size: 1.2rem;
  transition: all 0.5s ease-in-out;
}

.footer-logo:hover,
.footer-links a:hover,
.footer-mail a:hover,
.footer-back-to-top:hover {
  transform: scale(1.1);
  filter: brightness(1.25);
  opacity: 0.5;
}

.footer-socials a i:hover {
  transform: scale(1.5);
  opacity: 0.5;
}

/* ********** MEDIA QUERIES ********** */

@media screen and (max-width: 1025px) {
  .nav-socials {
    gap: 12px;
  }

  .nav-socials a {
    font-size: 2rem;
  }

  .nav-logo img {
    width: min(12.5rem, 15vw);
  }

  .nav-links a,
  .nav-button {
    font-size: min(1.2rem, 1.75vw);
  }

  .projects-title-container {
    padding: 25rem min(5vw, 64px);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 3rem;
  }

  .project-highlight {
    grid-column: span 1;
  }

  .project-description {
    max-width: 100%;
  }
}

@media screen and (max-width: 900px) {
  .nav-links-container {
    display: none;
  }

  .nav-socials,
  .nav-logo,
  .hamburger-menu {
    width: 33.333%;
  }

  .hamburger-menu {
    display: block;
    height: 35px;
    width: 30px;
    margin-left: auto;
    position: relative;
    cursor: url("./assets/images/circle-medium-pink.svg"), auto;
    cursor: url("./assets/images/circle-medium-pink.svg") 15 15, move;
  }

  .hamburger-menu span {
    height: 4px;
    width: 100%;
    background-color: var(--clr-white);
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
  }

  .hamburger-menu:hover span {
    background-color: var(--clr-brightBlue);
  }

  .hamburger-menu span:nth-child(1) {
    top: 25%;
  }

  .hamburger-menu span:nth-child(3) {
    top: 75%;
  }

  .hamburger-menu.active span {
    background-color: var(--clr-white);
  }

  .hamburger-menu.active:hover span {
    background-color: var(--clr-brightBlue);
  }

  .hamburger-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .project-links-tags-wrapper {
    flex-direction: column;
    align-items: unset;
    justify-content: unset;
    gap: 2rem;
  }
}

@media screen and (max-width: 769px) {
  .nav-logo img {
    width: 20rem;
  }

  .footer-socials {
    display: none;
  }

  .footer-links {
    justify-content: space-around;
  }
}

@media screen and (max-width: 481px) {
  .footer-links {
    gap: 12px;
  }

  .footer-links a,
  .footer-mail a {
    font-size: 1.2rem;
  }
}
