@font-face {
  font-family: "Interphases";
  src: url("./assets/TTInterphasesProBold_normal_normal.woff2");
  font-family: "Interphases Mono";
  src: url("./assets/TTInterphasesProMonoRegular_normal_normal_subset1.woff2");
}
:root {
  --accent-color-low-opacity: rgba(12, 226, 254, 0.493);
  --accent-color: #0ca5fe;
  --white-color: #f6f6f6;
  --grey-color: #bebebe;
  --dark-grey-color: #494949;
  --black-color: rgb(0, 0, 0);
  --aws: rgb(236, 145, 45);
  --azure: rgb(0, 122, 255);
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

div.amplitude-play-pause {
  width: 74px;
  height: 74px;
  cursor: pointer;
  float: left;
  margin-left: 10px;
}

div.amplitude-play-pause.amplitude-paused {
  width: 24px;
  height: 24px;
  background: url("./assets/play-button-svgrepo-com.svg");
  fill:white;
  background-size: cover;
}

div.amplitude-play-pause.amplitude-playing {
  width: 24px;
  height: 24px;
  background: url("./assets/pause-button-svgrepo-com.svg");
  fill: white;
  background-size: cover;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#video img {
  width: 100%;
  filter: hue-rotate(0deg);
}
#video {
  z-index: -999;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}

body {
  color: var(--white-color);
  font-family: "Interphases Mono", sans-serif;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--black-color);
  height: 100vh;
}

.header {
  width: 100vw;
  margin-inline: auto;
  z-index: 999;
}
#about {
  position: relative;
}
nav {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  padding: 1rem 2rem;
  height: 80px;
  background-color: var(--black-color);
  margin-bottom: 100px;
  box-shadow: 0 10px 50px rgb(0, 0, 0, 1);
}
.nav-links {
  position: relative;
  display: flex;
  gap: 2rem;
  list-style: none;
}
#skills,
#about,
#certs,
#projects {
  scroll-behavior: smooth;
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
}
label {
  display: none;
  appearance: none;
}

.hero {
  display: flex;
  width: min(1400px, (100% - 2rem));
  padding: 0 2rem;
  margin-top: 6rem;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.left {
  background-color: var(--black-color);
  padding: 1rem;
  width: 40%;
  text-align: justify;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.left > span:nth-of-type(2) {
  font-size: 1.6rem;
}

.left > span:nth-of-type(3) {
  font-size: 1.6rem;
  color: var(--accent-color);
}
.header ul li a {
  color: var(--white-color);
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}
.header ul li a:hover {
  color: var(--accent-color);
}
.header ul li a::after {
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  translate: -50% 5px;
  left: 50%;
  height: 5px;
  background-color: var(--accent-color);
  width: 0px;
  transition: 0.5s;
}
.header ul li a:hover::after {
  width: 100%;
}
.accent {
  display: inline;
  font-weight: bold;
  color: var(--accent-color);
  &:hover {
    color: var(--white-color);
  }
}
.header button {
  background-color: var(--black-color);
  border: 1px solid var(--accent-color);
  width: 100px;
  height: 40px;
  color: var(--accent-color);
  font-size: 1rem;
  font-family: "Interphases Mono", sans-serif;
  transition: 0.3s;
  cursor: pointer;
  &:hover {
    background-color: var(--accent-color);
    color: var(--black-color);
  }
}
.right {
  height: 340px;
  position: relative;
  display: flex;
  justify-content: end;
  align-items: center;
  width: 60%;
}
.overlay {
  position: absolute;
  background-size: contain;
  /* mix-blend-mode: multiply; */
  width: 100%;
  height: 100%;
  opacity: 1;
  top: 0;
  left: 0;
  cursor: pointer;
  /* background: linear-gradient(black, white); */
  z-index: 9999;
  box-shadow: inset 0 0 130px 6px var(--black-color),
    inset 0 0 10px 8px var(--black-color);
}
.right img {
  transition: 0.2s;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
}

.filter {
  filter: invert();
}

.special {
  text-decoration: underline;
}

.aws {
  font-weight: bold;
  color: var(--aws);
}

.azure {
  font-weight: bold;
  color: var(--azure);
}

.divider {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: min(1400px, (100% - 2rem));
  height: auto;
  margin: 0 auto;
  margin-top: 50px;
  color: var(--white-color);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
}

.container {
  width: min(1400px, (100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  margin-top: 50px;
  gap: 0.5rem;
  margin-bottom: 50px;
}

.container > p {
  color: var(--grey-color);
  text-align: center;
  text-wrap: balance;
}
.skills img {
  width: 50px;
  height: 50px;
  margin: 0.5rem;
}
.skill img:nth-of-type(1) {
  object-fit: cover;
  width: 100px;
  height: 100px;
}

.skill-list {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.skill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.skill span {
  text-align: center;
}

.certs {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}
.cert {
  text-align: center;
  width: 200px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.cert span > a {
  color: white;
  text-decoration: none;
}
.cert span > a:hover {
  color: var(--accent-color);
}
.cert span {
  position: relative;
  margin-top: 1rem;
}

.cert span::after {
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  translate: -50% 10px;
  left: 50%;
  height: 5px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5),
    var(--accent-color),
    rgba(0, 0, 0, 0.5)
  );
  width: 0px;
  transition: width 0.5s;
}
.cert span:hover::after {
  width: 100%;
}
.cert span .certs img {
  width: 150px;
}
.cert:nth-of-type(7) img,
.cert:nth-of-type(8) img {
  border-radius: 50%;
}

.project-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
}
.project {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 10px;
  background-color: var(--dark-grey-color);
  padding: 1rem;
}
.project div {
  display: grid;
  place-items: center;
}
.project div p {
  margin-top: 1rem;
  text-wrap: balance;
  text-align: center;
}
.projects a {
  color: white;
}
.projects a:hover {
  color: var(--accent-color);
}

.footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.footer ul {
  display: flex;
  gap: 2rem;
}

.contact-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.623);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-closed {
  translate: 0 -200vh;
}
.modal-open {
  translate: 0 0;
}

.contact-modal-dialog {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.486);
  background-color: rgb(0, 0, 0);
  padding: 2rem;
  width: auto;
  height: max-content;
  display: flex;
  justify-content: start;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  color: white;
  font-size: 1.2rem;
  & img {
    height: 50px;
  }
  & p,
  & p a {
    text-align: center;
    text-wrap: balance;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }
}
@media screen and (orientation: landscape) {
  .contact-modal-dialog {
    flex-direction: row;
    width: auto;
  }
  .project {
    font-size: 0.8rem;
  }
}
@media screen and (max-width: 1010px) {
  .skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5rem;
  }
  .right img {
    width: 50%;
    height: auto;
  }
  .cert {
    width: 100px;
  }
  .cert span {
    text-wrap: balance;
    text-align: center;
  }
  .certs {
    display: flex;
  }
  .project-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 800px) {
  .contact-modal-dialog {
    width: 80%;
  }
  .skill-list {
    display: flex;
  }
  .skill {
    width: 100px;
  }
  .hero {
    padding: 0;
    flex-direction: column;
  }
  .left {
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
  }
  .left > span:nth-of-type(2) {
    font-size: 1.4rem;
  }

  .left > span:nth-of-type(3) {
    font-size: 1.4rem;
    color: var(--accent-color);
  }
  .right {
    height: auto;
    justify-content: center;
  }
  .certs {
    display: flex;
  }
  .cert {
    width: 100px;
  }
  .project-list {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: absolute;
    background-color: black;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    bottom: 0;
    transition: 0.3s;
  }
  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links.closed {
    transform: translateX(120%);
  }

  .header label:has(input:checked) .nav-links {
    background-color: red;
    translate: 0;
  }

  .nav-links li a {
    font-size: 2rem;
  }
  .nav-links label {
    position: absolute;
    top: 2rem;
    right: 2rem;
  }
  .nav-links label div:nth-of-type(1) {
    rotate: 45deg;
    translate: 0 7px;
  }
  .nav-links label div:nth-of-type(2) {
    opacity: 0;
  }
  .nav-links label div:nth-of-type(3) {
    rotate: -45deg;
    translate: 0 -7px;
  }
  label input {
    appearance: none;
  }
  label {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  label:has(:hover) div,
  label:has(:active) div {
    background-color: var(--accent-color);
    cursor: pointer;
  }
  label div {
    width: 30px;
    height: 3px;
    background-color: var(--white-color);
    margin: 2px;
    transition: all 0.3s ease;
  }
}
