:root {
  /* Color Pallet */
  --black: #303030;
  --green: #697e2b;
  --purple: #684bb4;
  --blue: #5bd9b9;
  --white: #ffffff;
  --yellow: #ffca22;
}

* {
  margin: 0px;
  padding: 0px;
  background-color: var(--white);
  box-sizing: border-box;
}

/* FONTS --------------------------------------------------------------------------------------------------------------------- */

.font-header {
  font-family: 'Roboto Slab', serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  text-decoration: none;
  color: var(--black);
  letter-spacing: -0.075em;
  padding-bottom: 0.08em;
}

.font-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 48px;
  color: var(--purple);
  letter-spacing: -0.05em;
}

.font-heading-black {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 48px;
  color: var(--black);
  letter-spacing: -0.05em;
}

.font-title {
  font-family: 'Roboto Slab', serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 36px;
  color: var(--green);
  letter-spacing: -0.075em;
}

.font-body {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: 'slnt' 0;
  font-size: 24px;
  letter-spacing: -0.075em;
}

.font-accent-bold {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 24px;
  color: var(--purple);
  letter-spacing: -0.025em;
}

.font-accent-underline {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: 'slnt' 0;
  color: var(--purple);
  text-decoration: underline;
  font-size: 24px;
  letter-spacing: -0.075em;
}

.font-form {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: 'slnt' 0;
  font-size: 18px;
  letter-spacing: -0.075em;
}

.font-footer-small {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'slnt' 0;
  font-size: 12px;
  letter-spacing: -0.075em;
  text-align: center;
}

.font-footer-large {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 18px;
  color: var(--purple);
  letter-spacing: -0.05em;
  text-align: center;
}

.font-header-buttons {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 24px;
  color: var(--white);
  letter-spacing: -0.05em;
  background-color: transparent;
  text-align: center;
}

@media only screen and (max-width: 500px) {
  .font-header {
    font-family: 'Roboto Slab', serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 14px;
    text-decoration: none;
    color: var(--black);
    letter-spacing: -0.075em;
    padding-bottom: 0.08em;
  }

  .font-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 32px;
    color: var(--purple);
    letter-spacing: -0.05em;
  }

  .font-heading-black {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 32px;
    color: var(--black);
    letter-spacing: -0.05em;
  }

  .font-title {
    font-family: 'Roboto Slab', serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    color: var(--green);
    letter-spacing: -0.075em;
  }

  .font-body {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: 'slnt' 0;
    font-size: 16px;
    letter-spacing: -0.075em;
  }

  .font-accent-bold {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 16px;
    color: var(--purple);
    letter-spacing: -0.025em;
  }

  .font-accent-underline {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: 'slnt' 0;
    color: var(--purple);
    text-decoration: underline;
    font-size: 16px;
    letter-spacing: -0.075em;
  }

  .font-form {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: 'slnt' 0;
    font-size: 12px;
    letter-spacing: -0.075em;
  }

  .font-footer-small {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
    font-variation-settings: 'slnt' 0;
    font-size: 10px;
    letter-spacing: -0.075em;
    text-align: center;
  }

  .font-footer-large {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 16px;
    color: var(--purple);
    letter-spacing: -0.05em;
    text-align: center;
  }

  .font-header-buttons {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 18px;
    color: var(--white);
    letter-spacing: -0.05em;
    background-color: transparent;
    text-align: center;
  }
}

/* HEADER --------------------------------------------------------------------------------------------------------------------- */

/* ------ Header General ------ */
main {
  margin-top: 115px;
}

.top-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 115px;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: space-between;
}

.top-bar a {
  text-decoration: none;
  transition: 0.3s;
}

#nuhatch-header-logo {
  width: auto;
  height: 65px;
}

/* ------ Header Buttons ------ */
.header-buttons {
  flex: 1;
  display: flex;
  justify-content: right;
}

.header-about {
  background-color: var(--black);
  transform: skew(-20deg);
  width: 150px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
}

.header-services {
  background-color: var(--purple);
  transform: skew(-20deg);
  width: 150px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
}

.header-work {
  background-color: var(--green);
  transform: skew(-20deg);
  width: 150px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  margin-right: -6px;
}

.header-contact {
  border-bottom: 50px solid var(--blue);
  border-left: 18px solid transparent;
  height: 0;
  width: 168.2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-move {
  position: relative;
  transform: skew(-20deg);
  top: 25px;
  left: -5px;
}

.header-about:hover {
  background-color: var(--yellow);
}

.header-services:hover {
  background-color: var(--yellow);
}

.header-work:hover {
  background-color: var(--yellow);
}

.header-contact:hover {
  border-bottom: 50px solid var(--yellow);
}

/* ------ HAMBURGER MENU ------ */
#hamburger-menu {
  display: none;
  flex-direction: column;
}

.black-bar-hamburger {
  background-color: var(--black);
  width: 50px;
  height: 8px;
  margin: 4px;
  border-radius: 4px;
  margin-left: 20px;
  transition: 0.3s;
}

#hamburger-menu:hover {
  .black-bar-hamburger {
    background-color: var(--purple);
  }
}

#header-buttons-hamburger {
  display: none;
  height: auto;
  width: 100%;
  position: fixed;
  top: 115px;
  padding: 0 20px 20px 20px;
}

#header-buttons-hamburger a {
  text-decoration: none;
}

.header-about-hamburger {
  border-bottom: 50px solid var(--black);
  border-left: 13px solid transparent;
  height: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: right;
  padding-right: 15px;
  margin-left: 39px;
}

.header-services-hamburger {
  border-bottom: 50px solid var(--purple);
  border-left: 13px solid transparent;
  height: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: right;
  padding-right: 15px;
  margin-left: 26px;
}

.header-work-hamburger {
  border-bottom: 50px solid var(--green);
  border-left: 13px solid transparent;
  height: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: right;
  padding-right: 15px;
  margin-left: 13px;
}

.header-contact-hamburger {
  border-bottom: 50px solid var(--blue);
  border-left: 13px solid transparent;
  height: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: right;
  padding-right: 15px;
}

.header-about-hamburger:hover {
  border-bottom: 50px solid var(--yellow);
}

.header-services-hamburger:hover {
  border-bottom: 50px solid var(--yellow);
}

.header-work-hamburger:hover {
  border-bottom: 50px solid var(--yellow);
}

.header-contact-hamburger:hover {
  border-bottom: 50px solid var(--yellow);
}

@media only screen and (max-width: 1000px) {
  .header-buttons {
    display: none;
  }

  #hamburger-menu {
    display: flex;
  }
}

@media only screen and (max-width: 500px) {
  .top-bar {
    padding: 10px;
  }

  #nuhatch-header-logo {
    height: 55px;
  }

  .black-bar-hamburger {
    width: 40px;
    height: 6px;
    border-radius: 3px;
  }

  #header-buttons-hamburger {
    display: none;
    height: auto;
    width: 100%;
    position: fixed;
    top: 115px;
    padding: 0 10px 10px 10px;
  }

  .text-move {
    top: 20px;
  }

  .header-about-hamburger {
    border-bottom: 40px solid var(--black);
  }

  .header-services-hamburger {
    border-bottom: 40px solid var(--purple);
  }

  .header-work-hamburger {
    border-bottom: 40px solid var(--green);
  }

  .header-contact-hamburger {
    border-bottom: 40px solid var(--blue);
  }

  .header-about-hamburger:hover {
    border-bottom: 40px solid var(--yellow);
  }

  .header-services-hamburger:hover {
    border-bottom: 40px solid var(--yellow);
  }

  .header-work-hamburger:hover {
    border-bottom: 40px solid var(--yellow);
  }

  .header-contact-hamburger:hover {
    border-bottom: 40px solid var(--yellow);
  }
}

/* MAIN/HOME --------------------------------------------------------------------------------------------------------------------- */
.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-home {
  flex: 1;
  display: grid;
  align-items: center;
}

#home-wrapper {
  display: flex;
  flex-direction: row;
  margin: 50px 0 50px 0;
}

#home-wrapper-child {
  flex-basis: 100%;
}

#home-heading {
  text-align: right;
  margin-right: 10px;
}

.words-wrapper {
  text-align: left;
  font-style: italic;
  margin-left: 10px;
}

.words {
  text-align: left;
}

.words-wrapper .words {
  display: inline-grid;
}

.words-wrapper .words span {
  display: none;
}
.words-wrapper .words span.current {
  display: block;
}

@media only screen and (max-width: 1300px) {
  #home-wrapper {
    flex-direction: column;
  }

  #home-heading {
    text-align: center;
    margin-right: 0px;
  }

  .words-wrapper {
    text-align: center;
    margin-left: 0px;
  }

  .words {
    text-align: center;
  }
}

/* MAIN/ABOUT --------------------------------------------------------------------------------------------------------------------- */

#about-heading {
  align-items: left;
  width: 100%;
  padding: 0 50px;
  margin-top: 175px;
}

#nuhatch-text-logo {
  max-height: 20px;
  height: auto;
}

#about-nuhatch {
  margin-top: 100px;
  margin-bottom: 100px;
  margin-left: 50px;
  margin-right: 50px;
}

#about-heading-2 {
  align-items: left;
  width: 100%;
  padding: 0 50px;
}

#about-me {
  margin-top: 100px;
  margin-bottom: 100px;
  margin-left: 50px;
  margin-right: 50px;
}

p a {
  text-decoration: none;
  color: var(--purple);
}

@media only screen and (max-width: 500px) {
  #about-heading {
    margin-top: 125px;
    padding: 0 25px;
  }

  #about-nuhatch {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 25px;
    margin-right: 25px;
  }

  #about-heading-2 {
    padding: 0 25px;
  }

  #about-me {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 25px;
    margin-right: 25px;
  }
}

/* MAIN/SERVICES --------------------------------------------------------------------------------------------------------------------- */

#grid-box {
  justify-content: center;
  margin-top: 100px;
  margin-left: 50px;
  margin-right: 50px;
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(300px, (100% - (3 - 1) * 50px)/3), 1fr));
  column-gap: 50px;
  row-gap: 50px;
}

@media only screen and (max-width: 500px) {
  #grid-box {
    margin-top: 30px;
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: 30px;
    column-gap: 25px;
    row-gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(max(200px, (100% - (3 - 1) * 50px)/3), 1fr));
  }
}

/* MAIN/WORK --------------------------------------------------------------------------------------------------------------------- */

#logo-design {
  margin-top: 100px;
  margin-bottom: 100px;
  margin-left: 50px;
  margin-right: 50px;
}

#logo-grid-box {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(150px, (100% - (7 - 1) * 10px)/7), 1fr));
}

.logo-grid-images {
  width: 150px;
  height: auto;
  margin: auto;
}

#logo-grid-box-large-container {
  margin-bottom: 20px;
}

#logo-grid-box-large {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.logo-grid-images-large {
  width: 400px;
  height: auto;
  padding: 20px 0 20px 0;
}

#case-studies {
  margin-top: 100px;
  margin-bottom: 100px;
  margin-left: 50px;
  margin-right: 50px;
}

#case-studies-grid-box {
  margin-top: 40px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 10px;
}

.case-studie-grid-images {
  max-width: 550px;
}

#testimonials {
  margin-top: 150px;
  margin-bottom: 150px;
  padding-left: 50px;
  padding-right: 50px;
}

#testimonial-heading {
  margin-bottom: 25px;
}

.testimonials-flex {
  display: flex;
  flex-direction: row;
  margin-bottom: 100px;
}

.testimonial-images {
  width: 400px;
  height: 100%;
  margin: auto;
}

.testimonial-text {
  align-self: center;
}

.purple-bar {
  border-left: 8px solid var(--purple);
  margin-left: 50px;
  margin-right: 50px;
}

@media only screen and (max-width: 900px) {
  .testimonials-flex {
    flex-direction: column;
  }

  .purple-bar {
    border-top: 6px solid var(--purple);
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media only screen and (max-width: 500px) {
  #logo-design {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 25px;
    margin-right: 25px;
  }

  #logo-grid-box {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
  }

  .logo-grid-images {
    width: 125px;
  }

  #case-studies {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 25px;
    margin-right: 25px;
  }

  #case-studies-grid-box {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
  }

  #testimonials {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-left: 25px;
    padding-right: 25px;
  }

  #testimonial-heading {
    margin-bottom: 30px;
  }

  .testimonial-images {
    width: 250px;
  }

  .testimonials-flex {
    margin-bottom: 50px;
  }
}

/* MAIN/CONTACT --------------------------------------------------------------------------------------------------------------------- */
.contact {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-contact {
  flex: 1;
  display: grid;
  align-items: top;
}

#contact-heading {
  align-items: left;
  width: 100%;
  padding: 0 50px;
  margin-top: 60px;
}

#contact {
  margin-top: 75px;
  margin-bottom: 150px;
  padding-left: 50px;
  padding-right: 50px;
  max-width: 1000px;
}

#contact-form {
  margin-top: 30px;
}

#form {
  width: 100%;
  max-width: 750px;
  min-height: 25px;
  margin-bottom: 25px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 6px;
  border-color: var(--black);
  border-style: solid;
}

#full-name {
  display: flex;
  flex-direction: row;
  gap: 25px;
}

textarea {
  width: 100%;
  max-width: 750px;
  border-width: 2px;
}

input,
input::placeholder {
  font-size: 16px;
}

textarea,
textarea::placeholder {
  font-size: 16px;
  font-family: Arial;
}

#submit-button {
  height: 50px;
  width: 150px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  border: none;
  background-color: var(--purple);
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
  font-style: normal;
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
}

#submit-button:hover {
  background-color: var(--yellow);
}

@media only screen and (max-width: 500px) {
  #contact {
    margin-top: 30px;
    margin-bottom: 50px;
    padding-left: 25px;
    padding-right: 25px;
  }

  #form {
    margin-bottom: 15px;
  }

  #contact-heading {
    padding: 0 25px;
  }

  #submit-button {
    height: 30px;
    width: 100px;
    font-size: 16px;
  }

  input,
  input::placeholder {
    font-size: 10px;
  }

  textarea,
  textarea::placeholder {
    font-size: 10px;
  }
}

/* FOOTER --------------------------------------------------------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
}

#nuhatch-footer-logo {
  height: 18px;
  margin: 10px 0 10px 0;
}

.social-logos {
  height: 20px;
  margin: 10px 0 10px 0;
}

@media only screen and (max-width: 500px) {
  .footer {
    margin: 0 10px;
  }

  #nuhatch-footer-logo {
    height: 12px;
  }

  .social-logos {
    height: 14px;
  }
}
