/* Fonts
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@font-face {
  font-family: Jost;
  src: url('../fonts/Jost/Jost-VariableFont_wght.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 500;
}

@font-face {
  font-family: Bebas Neue;
  src: url('../fonts/Bebas/BebasNeue-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
}

/* Shared Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (min-width: 1020px) {
  .panel {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.grecaptcha-badge {
  display: none;
}


/* Header
–––––––––––––––––––––––––––––––––––––––––––––––––– */
header {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  top: 0;
  min-height: 100vh;
}

@media (min-width: 1020px) {
  header {
    /* top: 0; */
    position: sticky;
    max-height: 100vh;
    justify-content: space-between;
  }

  header .logo-container {
    margin-bottom: 4rem;
    align-items: left;
  }
}

header .logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro {
  margin: 0;
  text-align: center;
}

header .logo-container img {
  margin-bottom: 2rem;
  width: 200px;
}

@media (min-width: 1020px) {
  header .header-intro {
    display: none;
  }

  .intro {
    text-align: left;
  }
}

/* 
@media (min-width: 1200px) {
  header .logo-container {
    width: 30rem;
  }

  header .logo-container img {
    width: 200px;
  }
}
 */

/* Socials
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.socials {
  list-style: none;
  display: flex;
  margin-bottom: 0;
}

.socials li {
  margin: 0 1.25rem 0 0;
  height: 26px;
}

.socials li:last-of-type {
  margin-right: 0;
}

.socials li a {
  transition: 0.1s linear;
  display: inline-block;
  height: 26px;
}

.socials li a {
  color: var(--accent-color);
}

.socials li a:hover {
  color: var(--accent-color-2);
}

.socials li a svg {
  width: 2rem;
  height: 2rem;
  transition: 0.1s linear;
}

.socials-header {
  display: none;
  margin-top: 3em;
}

@media (min-width: 1020px) {
  .socials {
    margin: 0;
  }

  .socials-header {
    display: flex;
  }
}


/* Footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */
footer {
  display: flex;
  justify-content: center;
}

@media (min-width: 1020px) {
  footer {
    display: none;
  }
}


/* Experience Panel
–––––––––––––––––––––––––––––––––––––––––––––––––– */
section {
  margin-bottom: 8rem;
}

#intro {
  display: none;
}

.service {
  display: flex;
  flex-direction: row;
  margin-bottom: 2.5em;
}


.service-img {
  display: flex;
}

.service-img img {
  height: 60px;
  margin-right: 2em;
}

.service-info p {
  margin-bottom: 0;
}

section:last-of-type,
.timeline-container:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 1020px) {
  section {
    scroll-margin-top: 8rem;
  }

  #intro {
    display: block;
  }


  .socials li a,
  .socials li a svg {
    fill-opacity: 0.7;
  }

  .socials li a:hover svg {
    fill-opacity: 1;
  }

  /* 
  section:last-of-type {
    min-height: calc(100vh - 16rem);
  } */
}

section h2 {
  position: sticky;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 0.75rem 2rem;
  background-color: rgba(255, 243, 223, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  top: 0
}


@media (min-width: 1020px) {
  section h2 {
    position: relative;
    margin-left: 0;
    margin-right: 0;
    background-color: transparent;
    padding: 0;
  }
}

.timeline-container {
  display: block;
  margin-bottom: 6rem;
}

.timeline-type {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  color: var(--text-color-richer);
}

.timeline-content h3 svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

.timeline-content h3 a {
  color: var(--text-color-richer);
  transition: 0.1s linear;
}

.timeline-content h3 a:hover {
  color: var(--accent-color-2);
}

.timeline-content p,
.timeline-content ul {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.timeline-content ul {
  padding-left: 1.5rem;
}

.timeline-content li {
  margin-top: 0.5rem;
}

.timeline-content .extra {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease-out;
  margin-bottom: 0.5rem;
}

.timeline-content .show-more {
  width: 100%;
  color: var(--accent-color);
  font-size: 1.1rem;
  cursor: pointer;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.timeline-tags div:last-of-type {
  margin-right: 0;
}

.tag {
  border-radius: 100px;
  background-color: var(--background-color-dark);
  color: var(--accent-color-2);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  padding: 0.1rem 1.25rem;
  font-weight: 500;
  line-height: 2;
}

.screenshots {
  margin-top: 1.25rem;
}

.screenshots img {
  border-radius: 4px;
  width: calc(100vw/2.5);
  max-width: 250px;
  /* max-height: 70px; */
  margin-right: 0.5rem;
  opacity: 0.8;
  transition: 0.1s linear;
}

@media (min-width: 1020px) {
  .screenshots img {
    width: 120px;
    max-height: 70px;
  }
}

/* @media (min-width: 1200px) {
  .screenshots img {
    width: 150px;
    max-height: 90px;
  }
} */

.screenshots img:hover {
  opacity: 1;
  cursor: pointer;
}



/* About Me
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.about-me-container img {
  width: 50%;
  height: auto;
  max-width: 150px;
  float: right;
  margin-left: 2rem;
  margin-bottom: 2rem;
  border-radius: 50%;
  -webkit-shape-outside: circle();
  shape-outside: circle();
}


/* Get in touch
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.user-code {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: -1;
  width: 0;
  height: 0;
}

textarea {
  resize: vertical;
}

textarea:user-invalid:focus,
input:user-invalid:focus {
  outline: 1px solid var(--accent-color);
}

textarea:valid,
input:valid {
  outline: none;
}

.form-success,
.form-error {
  display: none;
}

#form-submit {
  position: relative;
}

#form-submit-text {
  transition: all 0.2s;
}

.form-submit--loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

.form-submit--loading #form-submit-text {
  visibility: hidden;
  opacity: 0;
}

/* Navigation
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* nav {
  display: none;
}
   */

nav ul {
  list-style: none;
  display: flex;
  align-items: left;
  justify-content: space-around;
  flex-flow: column;
  position: relative;
  margin-bottom: 0;
  text-align: center;
}

nav .nav-item {
  z-index: 1;
  transition: all 1s;
  margin-bottom: 0.25rem;
}

nav .nav-item:last-of-type {
  margin-bottom: 0;
}

nav .nav-item a {
  font-family: "Bebas Neue", "Jost", Impact, "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2rem;
  text-decoration: none;
  width: 100%;
  opacity: 1;
  transition: all 0.25s;
  color: var(--accent-color)
}

@media (min-width: 1020px) {
  nav ul {
    text-align: left;
  }

  nav .nav-item a {
    font-size: 1.8rem;
    opacity: 0.8;
  }

  nav .nav-item a:hover,
  nav .active a {
    font-size: 2.2rem;
    opacity: 1;
    transition: all 0.25s;
  }
}

.mobile-nav-container {
  position: fixed;
  top: 1.25em;
  right: 1.25em;
  z-index: 1;
  transition: 0.1s linear;
  display: block;
}

@media (min-width: 1020px) {
  .mobile-nav-container {
    display: none;
  }
}

.mobile-nav-menu {
  position: absolute;
  width: 100vw;
  height: 100vh;
  margin: -44px 0 0 calc(-100vw + 50px);
  padding: 25px;
  padding-top: 95px;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  font-size: 20px;
  background-color: rgba(255, 243, 223, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-toggle input {
  width: 30px;
  height: 20px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

.mobile-nav-toggle span {
  display: flex;
  width: 29px;
  height: 2px;
  margin-bottom: 5px;
  position: relative;
  background: var(--text-color-richer);
  border-radius: 3px;
  z-index: 1;
  transform-origin: 5px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    opacity 0.55s ease;
}

.mobile-nav-toggle span:first-child {
  transform-origin: 0% 0%;
}

.mobile-nav-toggle span:nth-child(2) {
  transform-origin: 0% 100%;
}

.mobile-nav-toggle input:checked~span {
  opacity: 1;
  transform: rotate(45deg) translate(-1px, -3px);
}

.mobile-nav-toggle input:checked~span:nth-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

.mobile-nav-toggle input:checked~span:nth-child(4) {
  transform: rotate(-45deg) translate(0, 0);
}

.mobile-nav-toggle input:checked~.mobile-nav-menu {
  transform: none;
}