:root {
  --text-color: #ffffff;
  --link-color: #16ad85;
}

#background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-snap-type: both mandatory;
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background-image: url(images/backgroundd.jpg);
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1400px;
  margin: 0 auto;
}

.cursor {
  display: inline-block;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  font-size: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

/* Animation */
.typewriter-animation {
  animation: typewriter 10s steps(12, end) 1s infinite normal,
    blinkingCursor 500ms step-end infinite;
}

@keyframes typewriter {
  0% {
    width: 0;
  }

  40% {
    width: 12ch;
  }

  60% {
    width: 12ch;
  }

  100% {
    width: 0;
  }
}

@keyframes blinkingCursor {
  50% {
    border-right-color: transparent;
  }
}

a {
  color: var(--link-color);
  text-decoration: none;
}

.one {
  scroll-snap-align: start;
  height: 100vh;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 80px;
}

nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:last-child {
  color: black;
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
}

nav .right a span {
  margin-left: 5px;
}

/* SECTION 1: Hero */
.hero-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
  display: inline-block;
}

.hero-section .text h2 {
  font-size: 45px;
}

.highlight {
  font-weight: bold;
  animation: boldPulse 3s infinite;
}

@keyframes boldPulse {
  0% {
    font-weight: 400;
    color: inherit;
  }

  50% {
    font-weight: 900;
    color: #16ad85;
  }

  100% {
    font-weight: 400;
    color: inherit;
  }
}

.hero-section .text .links {
  margin-top: 25px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 3px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: 0.1s;
}

.hero-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 350px;
  border-radius: 50%;
}

/* SECTION 2: Quote */
.blockquote-wrapper {
  display: flex;
  height: 300px;
  padding: 0 100px;
  padding-top: 168px;
  padding-bottom: 300px;
}

/* Blockquote main style */
.blockquote {
  position: relative;
  font-family: "Barlow Condensed", sans-serif;
  max-width: 1200px;
  margin: 80px auto;
  align-self: center;
}

/* Blockquote header */
.blockquote h1 {
  font-family: "Abril Fatface", cursive;
  position: relative;
  /* for pseudos */
  color: #ffffffe9;
  font-size: 2.8rem;
  font-weight: normal;
  line-height: 1;
  margin: 0;
  border: 2px solid #ffffffe9;
  border: solid 2px;
  border-radius: 20px;
  padding: 25px;
}

/* increase header size after 600px */
@media all and (min-width: 600px) {
  .blockquote h1 {
    font-size: 3rem;
    line-height: 1.2;
  }
}

/* Blockquote subheader */
.blockquote h4 {
  position: relative;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  padding-top: 15px;
  z-index: 1;
  margin-left: 150px;
  padding-left: 12px;
}

.blockquote h4:first-letter {
  margin-left: -12px;
}

/* SECTION 3: Projects */
#Projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
  height: 100vh;
}

#Projects h2 {
  margin-bottom: 30px;
  font-size: 50px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  height: auto;
}

.card__container {
  padding-block: 5rem;
}

.btn {
  position: relative;
  top: 120px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: none;
  border: 2px solid #16ad85;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.liquid {
  background: linear-gradient(#16ad85d7 0 0) no-repeat calc(200% - var(--p, 0%))
    100% / 200% var(--p, 0.2em);
  transition: 0.3s var(--t, 0s),
    background-position 0.3s calc(0.3s - var(--t, 0s));
}

.liquid:hover {
  --p: 100%;
  --t: 0.3s;
  color: #fff;
}

/* For large devices */
@media screen and (min-width: 1120px) {
  .card__container {
    max-width: 1120px;
  }

  .swiper-button-prev {
    left: -1rem;
  }

  .swiper-button-next {
    right: -1rem;
  }
}

.three {
  scroll-snap-align: start;
  height: 100vh;
}

/* SECTION 4: Skills */
#skills {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#skills h2 {
  margin-bottom: 30px;
  font-size: 50px;
}

.card__container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  text-align: center;
  font-size: 35px;
}

.skills-section .text {
  text-align: center;
  margin-bottom: 20px;
}

.skills-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skills-section .cells .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 200px;
  padding: 10px 20px;
  margin: 10px;
  border: 1.5px solid #d3d3d3;
  border-radius: 5px;
}

.skills-section .cells .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.skills-section .cells .cell span {
  font-size: 18px;
}

.card {
  overflow: visible;
  width: 190px;
  height: 254px;
}

.content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px #000000ee;
  border-radius: 5px;
}

.front,
.back_3 {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back_3 {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back_3::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #fdec00,
    #fdec00,
    #fdec00,
    #fdec00,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.front,
.back_4 {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back_4 {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back_4::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #ffffff,
    #ffffff,
    #ffffff,
    #ffffff,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.front,
.back_5 {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back_5 {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back_5::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #44d2f5,
    #44d2f5,
    #44d2f5,
    #44d2f5,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.front,
.back_6 {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back_6 {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back_6::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #06bf69,
    #06bf69,
    #06bf69,
    #06bf69,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.front,
.back_7 {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back_7 {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back_7::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #1c4cbd,
    #1c4cbd,
    #1c4cbd,
    #1c4cbd,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.front,
.back_8 {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back_8 {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back_8::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #2c5681,
    #2c5681,
    #2c5681,
    #2c5681,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.front,
.back_9 {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back_9 {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back_9::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #ff8c00,
    #ff8c00,
    #ff8c00,
    #ff8c00,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: #3a3333;
  border-radius: 5px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.card:hover .content {
  transform: rotateY(180deg);
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  0% {
    transform: rotateZ(360deg);
  }
}

.front {
  transform: rotateY(180deg);
  color: white;
}

.front .front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.front-content .badge {
  background-color: #00000055;
  padding: 2px 10px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  width: fit-content;
}

.description {
  box-shadow: 0px 0px 10px 5px #00000088;
  width: 100%;
  padding: 10px;
  background-color: #00000099;
  backdrop-filter: blur(5px);
  border-radius: 5px;
}

.title {
  font-size: 11px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
}

.title p {
  width: 50%;
}

.card-footer {
  color: #ffffff;
  margin-top: 5px;
  font-size: 15px;
  text-align: center;
}

.front .img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #ffbb66;
  position: relative;
  filter: blur(15px);
  animation: floating 2600ms infinite linear;
}

#bottom {
  background-color: #ff8866;
  left: 50px;
  top: 0px;
  width: 150px;
  height: 150px;
  animation-delay: -800ms;
}

#right {
  background-color: #ff2233;
  left: 160px;
  top: -80px;
  width: 30px;
  height: 30px;
  animation-delay: -1800ms;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-section {
  padding: 0 20px;
}

.hero-section .text h2 {
  font-size: 30px;
}

.skills-section {
  padding: 0 20px;
}

.skills-section .cells .cell span {
  font-size: 16px;
}

.footer {
  position: relative;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  padding: end;
  color: white;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

/* ============================= */
@media screen and (max-width: 1024px) {
  html {
    max-width: 100%;
    scroll-snap-type: none !important;
  }

  body {
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  .one,
  #Projects {
    height: auto !important;
    scroll-snap-align: none !important;
  }

  .container {
    height: auto !important;
    padding: 2rem 1rem;
  }
}

@media screen and (max-width: 932px) {
  nav {
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    height: auto;
  }

  nav .right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
  }

  .hero-section .headshot {
    order: 1;

    justify-content: center;
    margin-bottom: 15px;
  }

  .hero-section .text {
    order: 2;
  }

  .hero-section .headshot img {
    width: 180px;
    border-radius: 50%;
  }

  .blockquote-wrapper {
    display: none;
  }

  #background-video {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
  }
}
