*, *::before, *::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

:root {
  --color-white-100: #fff;
  --color-white-200: #f2f2f2;
  --color-white-400: #efefef;
  --color-lavender: #e6e6fa;
  --color-gray-400: rgb(82, 82, 82);
  --color-gray-800: rgb(40, 40, 40);
  --label-color: rgb(80, 80, 80);
  --label-color-alpha50: rgba(80, 80, 80, 0.5);
  --color-accent-400: #845cd6;
  --color-accent-800: #7447d1;
  --color-accent-alpha50: rgba(132, 92, 214, 0.5);
  --color-accent2-400: #aed65c;
  --color-accent2-800: #a4d148;
  --color-accent2-alpha50: rgba(164, 209, 72, 0.5);
  --box-radius-min: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-white-400);
  font-family: 'Domine', serif;
  font-size: 12px;
}

/* Main stylings */
header {
  background-color: var(--color-lavender);
  padding: 1em 2em;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: auto 1fr;
      grid-template-columns: auto 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

header .logo img {
  width: 6rem;
}

header nav {
  justify-self: flex-end;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}

header nav a {
  text-decoration: none;
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  color: var(--color-accent-800);
  position: relative;
}

header nav a:not(:last-of-type) {
  margin-bottom: 0.5em;
}

header nav a:focus {
  outline: none;
}

header nav a:hover::after, header nav a:focus::after, header nav a:active::after {
  width: 100%;
}

header nav a::after {
  content: '';
  height: 1px;
  width: 0;
  background-color: var(--color-accent-400);
  position: absolute;
  bottom: 0;
  right: 0;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

p {
  line-height: 1.6;
}

main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

main .intro-container {
  background-color: var(--color-white-100);
  padding: 2em;
  border-radius: var(--box-radius-min);
}

.img-container img {
  width: 100%;
}

section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 4em 2em;
  min-height: -webkit-fit-content;
  min-height: -moz-fit-content;
  min-height: fit-content;
}

blockquote p {
  line-height: 2;
}

figcaption {
  font-size: 0.65rem;
}

form {
  width: 90%;
  max-width: 350px;
}

form textarea {
  resize: none;
}

.about-text {
  padding: 2em 0;
}

.about-text p:not(:last-of-type) {
  margin-bottom: 0.5em;
}

.about-section {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.about-section .section-inner-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
}

.trivia-section .heading {
  margin-top: 2em;
}

.trivia-section li {
  line-height: 1.8;
}

.trivia-section li:not(:last-of-type) {
  margin-bottom: 1em;
}

.place-link {
  color: #7447d1;
}

.skills-section {
  background-color: var(--color-accent-400);
  overflow-x: hidden;
}

.skills-section .section-title {
  color: var(--color-white-400);
}

.skills-section .skills-list {
  width: 100%;
  list-style: none;
}

.skills-section .skill {
  min-height: 15rem;
  width: 15rem;
  margin: 10px;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: var(--box-radius-min);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 2em;
}

.skills-section .skill-image {
  height: 6rem;
  width: 6rem;
}

.skills-section .skill-image img {
  width: 100%;
}

.skills-section .skill-body {
  text-align: center;
}

.skills-section .skill-body .skill-title {
  color: var(--color-white-100);
  font-size: 1rem;
  margin-bottom: 0.75em;
}

.skills-section .skill-body p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  line-height: 1.4;
}

.skills-section .carousel-cell.is-selected {
  -webkit-box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.3);
          box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.3);
}

.work-section .project-list {
  list-style: none;
}

.work-section .project {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 2em 0;
}

.work-section .project:not(:last-of-type) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.work-section .project__intro {
  margin-bottom: 1.15em;
}

.work-section .project__card {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: var(--box-radius-min);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.work-section .card-image {
  height: 9rem;
}

.work-section .card-image img {
  height: 100%;
  width: 100%;
  border-radius: 4px 4px 0 0;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
}

.work-section .card-btn {
  margin: 0.5em;
}

.work-section .project-title {
  margin-bottom: 1em;
}

.main-footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--color-lavender);
  font-size: 0.65rem;
}

.main-footer section {
  padding: 0;
}

.main-footer .footer-wrapper {
  width: 80%;
  max-width: 800px;
}

.main-footer .footer-first-row {
  font-size: 0.85rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-top: 2em;
  padding-bottom: 2em;
}

.main-footer .footer-first-row .text {
  margin-bottom: 1em;
}

.main-footer .footer-first-row .social-container a {
  color: var(--color-lavender);
}

.main-footer .footer-first-row .social-container a:not(:last-of-type) {
  margin-right: 0.5em;
}

.main-footer .footer-first-row .social-container a:hover, .main-footer .footer-first-row .social-container a:focus {
  color: var(--color-accent2-800);
}

.main-footer .footer-middle-row {
  padding-top: 1em;
  padding-bottom: 1em;
  text-align: center;
}

.main-footer .footer-middle-row .col-title, .main-footer .footer-middle-row p {
  width: 100%;
}

.main-footer .footer-last-row {
  padding-top: 2em;
  padding-bottom: 2em;
  font-size: 0.6rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.main-footer .footer-last-row .footer-col-links {
  text-align: left;
}

.main-footer .footer-last-row .footer-col-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
}

.main-footer .footer-last-row .footer-col-links a::before {
  content: '\f0c1';
  font-family: 'Font Awesome 5 Free';
  margin-right: 0.5em;
}

.main-footer .footer-last-row .footer-col-links a:hover, .main-footer .footer-last-row .footer-col-links a:focus {
  outline: none;
  color: var(--color-accent2-800);
}

.main-footer .footer-last-row .footer-col-address {
  margin-top: 1em;
}

.main-footer .col-title {
  margin-bottom: 0.5em;
  font-size: 0.85rem;
}

.main-footer .copyright-container {
  padding: 1em 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
}

@media screen and (min-width: 600px) {
  body {
    font-size: 14px;
  }
  main > *,
  .about-section .section-inner-wrapper > *,
  .trivia-section > * {
    width: 50%;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  p {
    line-height: 1.8;
  }
  main .intro-container {
    height: 100%;
    -webkit-transform: translateX(-10%);
            transform: translateX(-10%);
  }
  header {
    padding: 1em 6em;
  }
  section {
    padding: 4em 6em;
  }
  .about-text {
    padding: unset;
    padding-left: 3em;
  }
  .trivia-text {
    padding-right: 3em;
  }
  .trivia-section {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
  }
  .trivia-section .heading {
    margin-top: unset;
  }
  .work-section .project {
    display: -ms-grid;
    display: grid;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-grid-columns: 1fr 18rem;
        grid-template-columns: 1fr 18rem;
  }
  .work-section .project__intro {
    margin-bottom: unset;
    padding-right: 2em;
  }
  .main-footer .footer-first-row {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .main-footer .footer-first-row .text {
    margin-bottom: unset;
  }
}

@media screen and (min-width: 961px) {
  body {
    font-size: 16px;
  }
  p {
    line-height: 2;
  }
  .about-text {
    padding-left: 5em;
  }
  .trivia-text {
    padding-right: 5em;
  }
  .work-section .project__intro {
    padding-right: 5em;
  }
}
