@import url("https://fonts.googleapis.com/css?family=Inter:700|Inter:400");
@import url("https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Afacad Flux", "Inter", Calibri;
}

@keyframes hue {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(-360deg);
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  margin-block: 0;
}

:root {
  color-scheme: dark;
  height: 100vh;
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0;

  --main-vertical-padding: 1.25rem;
  --main-horizontal-padding: 2.5rem;
  --white: #fff5eb;
  --black: #241b1d;
  --yellow: #ffeb3b;
  --dark-blue: #282936;

  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: fit-content;
  width: 100%;
  font-weight: 400;
}

main {
  position: relative;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0 var(--main-horizontal-padding);
  z-index: 1;
}

nav {
  height: 72px;
  width: 100%;
  display: grid;
  place-items: center;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.8);
}

h1 {
  font-size: clamp(2.325rem, 10vw, 4.21rem);
}

h2 {
  font-size: clamp(1.825rem, 8vw, 3.158rem);
}

h3 {
  font-size: clamp(1.5rem, 6vw, 2.369rem);
}

h4 {
  font-size: clamp(1.15rem, 5vw, 1.667rem);
}

h5 {
  font-size: clamp(0.95rem, 4.35vw, 1.4rem);
}

h6 {
  font-size: clamp(0.8rem, 3.5vw, 1.2rem);
}

p,
a {
  font-size: clamp(0.7rem, 3vw, 1rem);
}

small {
  font-size: 0.75rem; /* 12px */
}

h1,
h2 {
  margin: 0;
}

.animate.delay-50 {
  animation-delay: 50ms;
}

.animate.delay-100 {
  animation-delay: 100ms;
}

.animate.delay-150 {
  animation-delay: 150ms;
}

.animate.delay-200 {
  animation-delay: 200ms;
}

.animate.delay-250 {
  animation-delay: 250ms;
}

.animate.delay-300 {
  animation-delay: 300ms;
}

.animate.delay-350 {
  animation-delay: 350ms;
}

.animate.delay-400 {
  animation-delay: 400ms;
}

.animate.delay-450 {
  animation-delay: 450ms;
}

.animate.delay-500 {
  animation-delay: 500ms;
}

.animate.delay-550 {
  animation-delay: 550ms;
}

.animate.delay-600 {
  animation-delay: 600ms;
}

.animate.duration-700 {
  animation-duration: 700ms;
}

.animate.duration-900 {
  animation-duration: 900ms;
}

.animate.animateIconFadeLeft {
  animation-name: fadeLeftShowIcon;
  animation-duration: 400ms;
  animation-timing-function: cubic-bezier(0.4, 0.6, 0.2, 1);
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeLeftShowIcon {
  0% {
    opacity: 0;
    transform: translateX(32px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate.animateSlideLeft {
  animation-name: slideLeft;
  animation-timing-function: cubic-bezier(0.3, 0.7, 0.4, 1);
  animation-fill-mode: forwards;
}

.ct-side-img svg {
  transform: translateX(400px);
}

@keyframes slideLeft {
  0% {
    transform: translateX(400px);
  }
  100% {
    transform: translateX(0);
  }
}

@supports (animation-timeline: view()) {
  .animate:is(.animateScrollFadeIn, .animateScrollFadeUp) {
    animation-fill-mode: both;
    animation-timeline: view();
  }

  .animate.animateScrollFadeIn {
    animation-name: fadeInSectionTitle;
    animation-range: entry 10vh contain 70vh;
  }

  .animate.animateScrollFadeUp {
    animation-name: fadeUpShowPjp;
    animation-range: entry 5vh contain 100vh;
  }

  @keyframes fadeInSectionTitle {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes fadeUpShowPjp {
    0% {
      opacity: 0.3;
      transform: translateY(40px) scale(0.9);
    }
    40% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    60% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    100% {
      opacity: 0.3;
      transform: translateY(-40px) scale(0.95);
    }
  }
}

.fixed-max-width {
  max-width: 1440px;
}

.circle {
  border-radius: 50%;
  overflow: hidden;
}

.inline {
  display: flex;
  vertical-align: middle;
}

.inline-emoji {
  margin-left: 2px;
  margin-right: 6px;
}

.nowrap {
  text-wrap: nowrap;
}

.nav-links-container {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
  padding: var(--main-vertical-padding) var(--main-horizontal-padding);
  backdrop-filter: blur(10px);
}

.nav-links-container a,
.ct a,
.social-links a {
  text-decoration: none;
}

.tagline-section {
  height: calc(100svh - 72px);
  display: flex;
  flex-direction: row-reverse;
  gap: 30px;
}

.tagline-section > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#tagline-top {
  width: 35%;
  gap: 25px;
  align-items: center;
}

#tagline-bottom {
  width: 65%;
  gap: 18px;
}

#tagline-bottom .name-pos {
  display: flex;
  flex-wrap: wrap;
}

#tagline-bottom .name-pos > div:first-child {
  height: 100%;
}

#tagline-bottom .name-pos > div:first-child svg {
  width: clamp(calc(1.825rem - 6px), calc(8vw - 6px), calc(3.158rem - 6px));
  aspect-ratio: 1/1;
}

#tagline-bottom .exp-logos {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
}

.exp-logos > img {
  height: 44px;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.hue-bg {
  background: linear-gradient(-135deg, #f35626, #feab3a);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-wrap: nowrap;
  animation: hue 5.5s infinite alternate linear;
}

.tagline-addtl-details {
  font-weight: 400;
  line-height: 1.5;
}

.profile-img {
  min-width: 250px;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1/1;
  margin: -35px 0 0 0;
}

.profile-img img {
  width: 100%;
  aspect-ratio: 1;
  transform: scale(1.02);
}

#links {
  display: flex;
  gap: 10px;
}

.jobs-project-section {
  min-height: 100vh;
  height: min-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-top: 4rem;
  padding-bottom: 20px;
}

.jobs-project-section .section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pjp-section-content {
  height: 75%;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 45px;
  justify-content: center;
  border-radius: 10px;
}

.pjp-container {
  position: relative;
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  height: 480px;
  max-width: 400px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

/* .pjp-container:hover .pjp-image-container {
  background-size:auto;
} */

.pjp-btn {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 34px;
  width: 34px;
  padding-left: 10px;
  background-color: var(--dark-blue);
  border: none;
  border-radius: 20px;
  box-shadow: rgba(160, 160, 160, 0.4) 0px 0px 0px 1.5px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.pjp-btn,
.pjp-btn *,
.pjp-btn::before {
  cursor: pointer;
  text-align: center;
}

.pjp-link {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.link-to-repo .btn-to-repo::before {
  content: "View repository";
  position: absolute;
  font-size: 2px;
  text-wrap: nowrap;
  right: -40px;
  opacity: 0;
  transition: all 0.45s ease;
}

/* .btn-to-zoom::before {
  content: "View full size";
  position: absolute;
  font-size: 2px;
  text-wrap: nowrap;
  right: -40px;
  opacity: 0;
  transition: all 0.45s ease;
} */

.pjp-btn .svg-icon {
  height: 45%;
  aspect-ratio: 1;
  transition: all 0.45s ease;
}

.pjp-btn:hover {
  height: 40px;
  border-radius: 20px;
  padding-left: 12px;
}

.btn-to-repo:hover {
  width: 140px;
}

/* .btn-to-zoom:hover {
  width: 123px;
} */

.pjp-btn:hover::before {
  font-size: 15px;
  right: 12px;
  opacity: 1;
}

.pjp-btn:active {
  transform: translateY(4px);
}

.pjp-overlay {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
  background-color: rgba(40, 41, 54, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 10px 10px 0 0;
  z-index: 2;
  transition: opacity 0.45s ease;
}

.pjp-overlay,
.pjp-overlay * {
  cursor: pointer;
}

.pjp-to-full-size {
  height: 25px;
  width: 100%;
  display: grid;
  place-items: center;
}

.pjp-svg-arrow {
  position: absolute;
  height: 35px;
  aspect-ratio: 1;
}

.pjp-svg-arrow > img {
  height: 100%;
  width: 100%;
}

.pjp-svg-arrow.to45deg {
  top: 5px;
  left: 5px;
}

.pjp-svg-arrow.to225deg {
  bottom: 10px;
  right: 5px;
}

.pjp-to-full-size h6 {
  font-weight: 400;
}

.pjp-image-container {
  position: relative;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: calc(100% - 95px);
  height: 100%;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.pjp-image-container > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.pjp-image-container.pjp-private > *:not(img) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  text-align: center;
  color: #9d9f9f;
  font-weight: 600;
}

/* .pjp-image-container > img:hover {
  transform: scale(0.5);
} */

.pjp-container .pjp-desc {
  flex: 1;
  padding: 15px;
  background-color: #fff;
}

.pjp-desc .main-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #111;
}

.pjp-lang-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pjp-lang {
  display: flex;
  gap: 5px;
  align-items: center;
  /* background-color: #f0f0f0; */
  background-color: #ffe9cf;
  outline: 1px solid #444548;
  border-radius: 9999px;
  padding: 6px 11px;
  cursor: default;
}

.pjp-lang .lang-icon {
  display: grid;
  place-items: center;
}

.pjp-lang .lang-icon > * {
  height: 16px;
}

.pjp-lang .lang-name {
  line-height: 16px;
}

.pjp-desc .btn-visit-website {
  display: block;
  margin-top: 24px;
  width: 100%;
  padding: 8px 12px;
  background-color: #1e1f21;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.btn-visit-website > h5 {
  font-weight: 500;
  text-align: center;
}

.btn-visit-website:hover {
  background-color: #111;
}

.contact-me-section {
  padding-block: 4rem;
  display: flex;
  gap: 25px;
  height: 92vh;
  width: 100%;
  max-width: 100vw;
}

.ct-section-content {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ct-section-content p {
  font-size: clamp(0.7rem, 3.2vw, 1.1rem);
}

.ct-content-intro {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ct-list,
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct,
.ct-link {
  height: 30px;
}

.ct,
.ct-link > a {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ct-link > a {
  width: max-content;
}

.icon-size {
  display: grid;
  width: 21px;
  aspect-ratio: 1;
}

.icon-size > svg,
.icon-size > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.ct-side-img {
  position: relative;
  width: 60%;
  overflow: hidden;
}

.ct-side-img > .ct-svg-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
}

.ct-side-img > .ct-svg-art svg {
  object-fit: cover;
  width: 70%;
}

.ct-side-img > #svg-bg {
  object-fit: cover;
  height: 100%;
}

.ct-divider {
  width: 80%;
}

.with-bg {
  background-color: var(--yellow);
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
}

.with-bg * {
  color: var(--black);
}

.with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-wrap: nowrap;
  width: max-content !important;
}

.with-icon > svg {
  height: 16px;
  aspect-ratio: 1;
}

.clickable {
  cursor: pointer;
}

.yellow {
  color: var(--yellow);
}

.modal {
  position: fixed;
  margin: 0;
  top: 0;
  left: 0;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  transition: all 0.2s ease;
}

.modal-close {
  position: absolute;
  top: calc(-1 * (30px + 1px));
  right: 0;
  display: grid;
  place-items: center;
  height: 30px;
  width: 36px;
  padding: 0;
  margin: 0;
  background-color: #f34336;
  border-radius: 7px 7px 0 0;
  z-index: 11;
}

.modal-close img {
  height: 24px;
  aspect-ratio: 1;
}

.modal-close:hover {
  background-color: #ce392e;
}

.modal-close:active {
  background-color: #972a22;
}

#pjp-zoom-img .pjp-zoom-img-content {
  height: 85%;
  max-height: 85vh !important;
  width: 85%;
  /* overflow: hidden; */
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.pjp-zoom-img-content .zoomed-svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: max-content;
  width: clamp(50px, 6vw, 75px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  background-color: var(--yellow);
}

.pjp-zoom-img-content .zoomed-svg > img {
  width: 100%;
  padding: 4px 9px;
  aspect-ratio: 1;
}

.zoomed-svg.prev-arrow {
  left: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.zoomed-svg.next-arrow {
  right: 0;
  justify-content: flex-end;
  border-radius: 8px 0px 0px 8px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

#pjp-zoom-img .pjp-zoom-img-content .zoom-img-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
  border-radius: 10px 0 10px 10px;
  overflow: hidden;
}

.zoom-img-wrapper .zoom-img-container {
  flex-shrink: 0;
  height: 100%;
  width: 100%;
  background-color: #ccc;
}

.zoom-img-wrapper .zoom-img-container img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

footer {
  height: 8vh;
}

@media (prefers-color-scheme: dark) {
  html {
    color: var(--white);
    background-color: #1e1f21;
  }

  .nav-links-container > a,
  .social-links a {
    color: var(--white);
  }

  .ct-svg-icon {
    fill: #fff;
  }

  .ct a {
    color: var(--white);
  }
}

@media only screen and (max-width: 850px) {
  nav {
    position: sticky;
  }

  .tagline-section {
    flex-direction: column;
    gap: 16px;
    padding: 1.6rem;
    height: unset;
  }

  #tagline-top,
  #tagline-bottom {
    width: 100%;
  }

  #tagline-top {
    display: grid;
    place-items: center;
  }

  #tagline-bottom {
    align-items: center;
  }

  #tagline-bottom .name-pos {
    justify-content: center;
  }

  #tagline-bottom > h2 {
    text-align: center;
  }

  #tagline-bottom .tagline-addtl-details {
    text-align: center;
  }

  #tagline-bottom .exp-logos {
    justify-content: center;
  }

  .profile-img {
    margin: unset;
    width: 70%;
  }

  .jobs-project-section {
    padding-bottom: 4rem;
  }

  .pjp-container {
    width: 100%;
  }

  /* .pjp-container .pjp-desc {
    min-height: 75px;
  } */

  .contact-me-section {
    padding: 0 2rem 4rem 2rem;
    flex-direction: column;
    gap: 60px;
    height: max-content;
  }

  .contact-me-section > * {
    width: 100%;
  }

  .ct-side-img {
    display: none;
  }

  .ct-link > a {
    align-items: center;
  }

  #pjp-zoom-img .pjp-zoom-img-content {
    max-height: 55vh !important;
  }
}

@media (width <= 850px) {
  main > section:not(.jobs-project-section) {
    max-height: unset !important;
    padding-inline: 0;
  }
}

@media (width > 850px) {
  main > section:not(.jobs-project-section) {
    max-height: 768px !important;
  }

  .tagline-section > div {
    margin-top: -40px;
  }
}

@media (width <= 450px) {
  #tagline-bottom .tagline-addtl-details {
    margin-top: 4px;
  }
}
