:root {
  --fs-xl: 4.25rem;
  --fs-600: 1.65rem;
  --fs-500: 1.5rem;
  --fs-400: 1.25rem;
  --fs-arrow: 2.2rem;

  /* Colors */
  /* --c-dark0: hsl(0, 0%, 8%);
  --c-dark1: hsl(226, 28%, 12%);
  --c-dark2: hsl(240, 32%, 8%);
  --c-dark3: hsl(202, 31%, 12%);
  --c-dark4: hsl(280, 15%, 8%); */

  --c-dark0: hsl(0, 0%, 8%);
  --c-dark1: hsl(0, 0%, 11.5%);
  --c-dark2: hsl(0, 0%, 8%);
  --c-dark3: hsl(0, 0%, 11.5%);
  --c-dark4: hsl(0, 0%, 8%);
  --c-dark-hover: hsl(0, 0%, 1%);

  /* HS before: 192 10% */
  --c-light: hsl(0, 0%, 90%);
  --c-light-hover: hsl(0, 0%, 70%);
}

@media (min-width: 620px) {
  :root {
    --fs-xl: 5.5rem;
    --fs-600: 2.2rem;
    --fs-500: 1.75rem;
    --fs-400: 1.5rem;
    --fs-arrow: 3rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--c-light);
  font-family: 'Josefin Sans', sans-serif;
  /* font-family: 'Cardo', serif; */
}

html {
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 0.8rem;
}

html::-webkit-scrollbar-thumb {
  background-color: var(--c-light-hover);
}

html::-webkit-scrollbar-thumb:hover {
  background-color: var(--c-light);
}

html::-webkit-scrollbar-track {
  background-color: var(--c-dark1);
}

/* Scroll animations */
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-10%);
  transition: all 0.5s;
}

@media(prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.nav-links li:nth-child(2) {
  transition-delay: 100ms;
}

.nav-links li:nth-child(3) {
  transition-delay: 200ms;
}

.nav-links li:nth-child(4) {
  transition-delay: 300ms;
}

body {
  background-color: var(--c-dark1);
  min-height: 200vh;
}

li,
a,
header.logo {
  font-size: var(--fs-500);
  text-decoration: none;
  text-shadow: 0 0 1rem var(--c-dark1);
}

header {
  position: fixed;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10em;
  background-color: var(--c-dark0);
  /* border: 1px solid red; */
  z-index: 9999;
}

.mobile-nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  /* display: inline-block; */
  padding: 0.16em 0 0.07em;
}

.nav-links li a {
  padding: 0 0.83em 0;
}

.nav-links li:hover {
  background-color: var(--c-dark-hover);
}

.nav-links li {
  transition: all 0.3s ease 0s;
}

@media only screen and (max-width: 1950px) {
  header {
    padding: 0 5em;
  }
}

@media only screen and (max-width: 1250px) {
  header {
    padding: 0em 2em;
  }
}

@media only screen and (max-width: 890px) {
  .nav-links {
    /* display: none; */
    z-index: 1000;
    position: fixed;
    inset: 0 0 0 35%;
    flex-direction: column;
    padding: min(20vh, 10rem) 2em;
    background-color: hsl(0 0% 0% / 0.45);
    backdrop-filter: blur(1rem);

    /* Move 100% of own width off to the right (off the page) */
    transform: translateX(100%);
    transition: transform 150ms ease-out;
  }

  .nav-links[data-visible="true"] {
    transform: translateX(0%);
  }

  .nav-links li {
    padding: 0.65em;
  }

  .mobile-nav-toggle {
    z-index: 9999;
    display: block;
    position: absolute;
    background-color: transparent;
    background-image: url("assets/svg/icon-hamburger.svg");
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    width: 1.5rem;
    right: 2rem;
    border: 0;
    aspect-ratio: 1;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background-image: url("assets/svg/icon-close.svg");
  }
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.container img {
  z-index: -2;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  background-size: cover;
  position: absolute;
  overflow: hidden;
  filter: brightness(78%);
}

/* .container .background {} */

.container #foreground {
  z-index: 0;
}

.container #birds {
  overflow: visible;
}

.main-title {
  z-index: -1;
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -45%);
  text-align: center;
}

.main-name {
  font-size: var(--fs-xl);
  line-height: 0.9;
  font-weight: 700;
  /* text-decoration: underline; */
  font-family: 'Cardo', serif;
  text-shadow: 0 0 1.2rem var(--c-dark-hover);
}

.main-desc {
  cursor: default;
  margin-top: 0.8em;
  font-size: var(--fs-600);
  text-shadow: 0 0 0.7rem var(--c-dark-hover);
}

.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  text-align: center;
  width: 6rem;
  margin-left: -3rem;
  opacity: 0.8;
  font-size: var(--fs-arrow);
  animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
  50% {
    transform: translateY(-50%)
  }
}

.content {
  max-width: 100%;
  min-height: 100vh;
  font-size: var(--fs-400);
}

.section-title {
  margin-bottom: 1em;
  font-family: 'Cardo', serif;
}

.border-svg {
  display: none;
  position: absolute;
  width: 100%;
  bottom: -1px;
  left: 0;
}

/* background colors of different sections */
.content .about-sec {
  background-color: var(--c-dark1);
}

.content .experience-sec {
  background-color: var(--c-dark2);
}

.content .projects-sec {
  background-color: var(--c-dark2);
}

.content .art-sec {
  background-color: var(--c-dark3);
}

.content .contact-sec {
  background-color: var(--c-dark4);
}

.content .about-sec,
.content .experience-sec,
.content .projects-sec,
.content .art-sec,
.content .contact-sec {
  position: relative;
  width: 100%;
  padding-top: 6em;
  /* padding-bottom: 12em; */
  padding-bottom: 6em;
}

/* @media only screen and (min-width: 1670px) {

  .content .about-sec,
  .content .projects-sec,
  .content .art-sec,
  .content .contact-sec {
    padding-bottom: 16em;
  }
} */

.content .about-sec .about-text,
.content .experience-sec .experience-text,
.content .projects-sec .projects-text,
.content .projects-sec .card-grid,
.content .art-sec .art-text,
.content .art-sec .art-gallery,
.content .contact-text {
  width: min(85%, 55rem);
  margin-inline: auto;
  line-height: 1.2;
}

/* .content .projects-sec .card-grid,
.content .art-sec .art-gallery {
  width: min(70%, 55rem);
  margin-inline: auto;
} */

/* Social media icons relevant per section */
.social {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}

.social a {
  font-size: var(--fs-400);
  line-height: 1.5;
  transition: all 0.3s ease 0s;
}

.social a:hover {
  color: var(--c-light-hover);
}

.card-grid {
  margin: 3rem 0;
  display: grid;
  z-index: 1;
  /* card min size 300px, max size: as large as needed */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: flex-start;
  gap: 1rem;
}

@media only screen and (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.card {
  --padding: 1rem;
  --shadow-glow: hsla(0, 0%, 100%, 0.25);
  background-color: var(--c-dark2);
  /* border: 1px solid hsl(0, 0%, 47%); */
  border: none;
  box-shadow: 0 0 8px 1px var(--shadow-glow);
  border-radius: 0.25rem;
  overflow: hidden;
  z-index: inherit;
}

.card-image {
  overflow: hidden;
}

.card-title {
  /* font-family: 'Cardo', serif; */
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  padding: var(--padding);
  padding-bottom: 0;
}

.card-image img {
  display: block;
  z-index: 1;
  max-height: 200px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transition: 200ms transform ease-in-out;
}

/* .card:hover .card-image img {
  transform: scale(1.025);
} */

.card-body {
  font-size: 1.25rem;
  padding: 0 var(--padding);
}

.card-footer {
  padding: var(--padding);
  padding-top: 0;
}

.card-footer a button {
  width: 100%;
  margin-top: 1rem;
  background-color: var(--c-dark1);
  border: 1px solid var(--c-light);
  font-size: 1.25rem;
  padding: 0.5em 0.75em;
  border-radius: 0.25em;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}

.card button:hover,
.card button:focus {
  background-color: var(--c-dark-hover);
}

.art-gallery {
  display: grid;
  z-index: 1;
  align-items: center;
  margin: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

@media only screen and (max-width: 900px) {
  .art-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.art-gallery a {
  border: 2px solid var(--c-light);
  display: inline-block;
  line-height: 0;
  z-index: inherit;
}

.art-gallery img {
  /* display: block; */
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  /* border-radius: 0.25rem; */
  /* transition: 200ms transform ease-in-out; */
}

/* .art-gallery img:hover {
  transform: scale(1.025);
} */