@import url(./style-reset.css);
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  /* Font Weights */
  --fw-l: 300;
  --fw-r: 400;
  --fw-m: 500;
  --fw-sb: 600;
  --fw-b: 700;
}

/* Dark Mode Theme */
* {
  transition: 100ms ease;
}

[data-theme="light"] {
  --color1: #f2ccba;
  --color2: #fdf3c6;
  --color3: #96c1d6;
  --contact-btn: #96c1d6;

  /* Light Mode */
  --body-text: #1e1e1e;
  --body-bkg: #ffffff;
}

[data-theme="dark"] {
  /* dark mode - background gradients  */
  --color1: #2f5073;
  --color2: #754f80;
  --color3: #75230e;
  --contact-btn: #754f80;

  --body-text: #ffffff;
  --body-bkg: #1e1e1e;
}

/* Custom Classes */

.spacer-xs {
  width: 100%;
  height: 3.125rem;
}

.spacer-sm {
  width: 100%;
  height: 4.6875rem;
}
.spacer-md {
  width: 100%;
  height: 6.25rem;
}
.spacer-lg {
  width: 100%;
  height: 9.375rem;
}
.spacer-xl {
  width: 100%;
  height: 12.5rem;
}

body {
  color: var(--body-text);
  background-color: var(--body-bkg);
  font-family: "Poppins", Helvetica, sans-serif;
  margin: 0;
}

/* removes the scrollbar */
body::-webkit-scrollbar {
  display: none;
}

h1 {
  font-size: 3.1rem;
}

p {
  font-size: 16px;
  font-weight: var(--fw-l);
}

/* Create blurred darkened effect when the mobile nav is activated*/
.overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 9;
  display: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.show-overlay {
  display: block;
}

@keyframes overlayFadeIn {
  from {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
  to {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }
}

/*  Mobile first approach */

/*  Navigation */

.nav {
  width: 100vw;
  height: 90px;
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  top: 0;
  z-index: 10;
  transition: background-color 300ms ease;
  transition: box-shadow 300ms ease;
}

.nav-scrolled {
  box-shadow: 0px 0px 55px -27px rgba(0, 0, 0, 0.75);
  background-color: var(--body-bkg);
}

/*  Mobile Nav */
.logo {
  width: auto;
  height: auto;
  margin-left: 1rem;
}

.logo p {
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: var(--fw-b);
  color: var(--body-text);
  line-height: 1;
  transition: color 300ms ease;
}

.ham {
  cursor: pointer;
  margin-right: 2rem;
}

.ham span {
  width: 32px;
  height: 3px;
  display: block;
  margin: 6px auto;
  background: var(--body-text);
  transition: all 0.2s ease-in-out;
}

.ham.active span:first-of-type {
  width: 27px;
  background: var(--body-text);
  transform: rotate(45deg) translate(2px, 12px);
  margin-left: 2px;
}
.ham.active span:nth-last-of-type(2) {
  opacity: 0;
}
.ham.active span:last-of-type {
  width: 27px;
  background: var(--body-text);
  transform: rotate(-45deg) translate(1px, -10px);
  margin-left: 2px;
}

.main-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.mobile-nav {
  width: 100vw;
  height: auto;
  padding: 1rem 0;
  display: none;
  position: fixed;
  background: linear-gradient(265deg, var(--color1), var(--color2));
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  top: 200px;
  z-index: 10;
  opacity: 0;
  transition: opacity 300ms ease;
}

.show-nav {
  display: block;
  opacity: 1;
  /* animation: bounceUp;
  animation-duration: 300ms; */
}

.mobile-nav ul {
  text-align: center;
}
.mobile-nav ul li {
  margin: 15px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 20px;
  list-style-type: none;
  font-weight: var(--fw-l);
}

.mobile-nav .exit {
  width: 50px;
  height: 50px;
  background: var(--red);
  display: flex;
  justify-content: center;
  border-radius: 50%;
  animation: removeNav 300ms ease;
  cursor: pointer;
}

.exit img {
  width: 100%;
}

.show {
  display: block;
}

.hide {
  display: none;
}

/* Desktop Nav */

.desktop-nav {
  width: auto;
  height: auto;
  display: none;
  margin-right: 2rem;
  position: relative;
}
.desktop-nav__links {
  padding: 0 1rem;
  width: auto;
}

.desktop-nav ul li {
  display: inline;
  margin: 0 0.8rem;
}

.desktop-nav ul li:nth-child(6) {
  padding: 5px 20px;
  background-color: var(--contact-btn);
  border: 2px solid var(--contact-btn);
  border-radius: 50px;
  transition: background-color 700ms ease;
  cursor: pointer;
}

.desktop-nav ul li:nth-child(6):hover {
  background-color: var(--body-bkg);
}

.desktop-nav ul li a {
  font-size: 14px;
  text-decoration: none;
  color: inherit;
}

/*  Toggle */

/* centers the toggle on mobile*/
.mobile-nav .toggle {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.toggle .checkbox {
  opacity: 0;
  position: absolute;
}
.toggle .checkbox:checked + .label .ball {
  transform: translateX(24px);
  background-color: #2f5073;
}

.toggle .checkbox:checked + .label {
  background-color: #badcff;
}

.toggle .label {
  width: 50px;
  height: 24px;
  display: flex;
  border-radius: 50px;
  background-color: #b4b3b3;
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px;
  transition: background-color 0.5s ease-in;
}

.toggle .label .ball {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.5s ease;
  cursor: pointer;
}

/* Hero Content */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* light mode */
  background: linear-gradient(
    265deg,
    var(--color1),
    var(--color2),
    var(--color3)
  );
  background-size: 600% 600%;
  animation: AnimationName 10s ease infinite;
}

.hero__content {
  width: 100%;
  height: auto;
  margin-top: 5rem;
}

@keyframes AnimationName {
  0% {
    background-position: 84% 0%;
  }
  50% {
    background-position: 17% 100%;
  }
  100% {
    background-position: 84% 0%;
  }
}
.hero__content > h1 {
  line-height: 1;
}

.hero__content > p {
  font-size: 18px;
  max-width: 550px;
}

.hero__content > p#tag {
  margin-top: 1rem;
}

.hero__side-image {
  display: none;
  width: 50%;
  height: auto;
}

.rotation {
  animation: rotation 60s infinite ease-in-out;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(359deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.bio {
  width: 100%;
  height: auto;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
}

.bio p#greeting {
  width: 400px;
  font-size: 4.5rem;
  position: absolute;
  top: 13rem;
  font-weight: var(--fw-b);
  line-height: 1;
  color: white;
  margin-left: 1rem;
}

.bio__text-content {
  width: 100%;
  max-width: 500px;
  height: auto;
  padding: 1.5rem;
}

.bio__text-content p:nth-child(2) {
  margin: 1rem 0;
}

.bio__image {
  width: 100%;
  max-width: 600px;
  height: 500px;
  background-image: url("/assets/IMG_3498-Edit.png");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Web Dev / Swiper JS */
.web-sec {
  width: 100%;
  max-width: 1100px;
  height: 600px;
  margin: 0 auto;
}

.web-sec__headline {
  padding: 1.5rem;
  max-width: 900px;
}

/* Footer */

.footer {
  width: 100%;
  height: auto;
  background: linear-gradient(
    265deg,
    var(--color1),
    var(--color2),
    var(--color3)
  );
  background-size: 600% 600%;
  animation: AnimationName 10s ease infinite;
  padding: 1.5rem;
}

.footer__logo {
  display: none;
  width: 45px;
  height: auto;
  margin: 0 auto;
  position: relative;
}

.footer__site-map {
  width: 100%;
  max-width: 1024px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
}

.footer__site-map--link {
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: 1fr 1fr;
  justify-items: center;
  column-gap: 18px;
  margin-bottom: 1rem;
}

.footer__social {
  width: auto;
  height: auto;
  display: flex;
  margin: 2rem 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer__social > p {
  font-size: 15px;
}

.footer__social--icons {
  width: 100%;
  height: auto;
  display: flex;
  margin-top: 1rem;
  justify-content: space-evenly;
  align-items: center;
}

.footer__copyright {
  text-align: center;
  font-size: 12px;
}

/* Media queries start */

/* Tablet */
@media screen and (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
  }
  .hero__content {
    width: 75%;
  }
  .hero__content h1 {
    margin-bottom: 1rem;
    line-height: 1;
  }

  .hero__side-image {
    display: block;
  }

  .bio {
    flex-direction: row;
    align-items: center;
  }

  .bio p#greeting {
    width: 400px;
    font-size: 5.6rem;
    position: absolute;
    top: 14rem;
    left: 0;
    font-weight: var(--fw-b);
    line-height: 1;
    color: white;
    margin-left: 1rem;
  }

  .photo-sec,
  .web-sec {
    margin: 0 auto;
  }
}

/* Desktop - 1024px */
@media screen and (min-width: 1024px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .desktop-nav {
    display: flex;
  }
  .toggle {
    display: inline-block;
  }
  .ham {
    display: none;
  }

  .hero__content {
    width: 50%;
    margin-left: 3rem;
  }

  .hero__content h1 {
    margin-bottom: 2rem;
    line-height: 1;
    font-size: 3.5rem;
  }

  .hero__content p {
    font-size: 20px;
  }

  .photo-sec__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .photo-sec__grid-card {
    height: 250px;
  }

  .photo-sec__grid-card > span {
    font-size: 35px;
  }

  .footer__logo {
    width: 65px;
  }

  .footer__link {
    flex-direction: row;
    justify-content: space-around;
  }
  .footer__site-map {
    flex-direction: row;
    justify-content: space-around;
    margin: 0 auto;
  }
  .footer__site-map--link {
    justify-items: start;
    column-gap: 20px;
    grid-template-columns: repeat(3, auto);
  }
}

@media screen and (min-width: 1280px) {
  .bio p#greeting {
    left: 8rem;
    top: 30rem;
  }

  .bio__image {
    height: 720px;
  }
}

/* Desktop - 1440px */
@media screen and (min-width: 1440px) {
  .nav {
    /* width: 80%;
    margin: 0 auto; */
    flex-direction: row;
    justify-content: space-between;
    left: 50%;
    transform: translate(-50%, 0);
  }
  .hero__content {
    margin-left: 5rem;
  }

  .hero__content h1 {
    font-size: 4.5rem;
  }
  .hero__content p {
    font-size: 25px;
  }

  .hero__content p {
    width: 90%;
  }
  .bio__text-content > p,
  .photo-sec__headline p {
    font-size: 20px;
  }

  .bio p#greeting {
    left: 12rem;

    font-size: 6.9rem;
  }
  .photo-sec__headline,
  .web-sec__headline {
    padding: 1.5rem 1.5rem 1.5rem 0;
  }
  .photo-sec__grid-card {
    height: 350px;
  }
}

@media screen and (min-width: 1920px) {
  .bio p#greeting {
    left: 26rem;
  }
}
