/*******************/
/* COLOURS & FONTS */
/*******************/

:root {
  --clr-primary: rgb(29, 24, 51);
  --clr-secondary: rgb(111, 60, 254);
  --clr-tertiary: rgb(22, 160, 220);

  --clr-muted: rgb(101, 88, 159);
  --clr-white: rgb(255, 255, 255);

  --ff-primary: 'Roboto', sans-serif;
  --ff-secondary: 'Montserrat', serif;
  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-secondary);
}

/***************/
/* BASIC RESET */
/***************/

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

/*******************/
/* UTILITY CLASSES */
/*******************/

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-primary);
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
  background: var(--clr-primary);
}

body p {
  line-height: 1.5rem;
}

.sr-only {
  left: -1000vw;
  position: absolute;
}

.flex {
  display: flex !important;
  gap: 1rem;
}

.row {
  display: flex;
  gap: 1.25em;
}

.col {
  width: 100%;
}

.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Montserrat', sans-serif;
  color: var(--clr-primary);
}

hr {
  display: block;
  width: 50%;
  border: 0;
  border-top: 2px solid var(--clr-white);
  margin: 1em 0;
  padding: 0;
  opacity: 0.5;
}

a {
  text-decoration: none;
  color: var(--clr-white);
  width: 100%;
}

.grid-even-columns {
  display: grid;
  gap: 1.875em;
}

/*******************/
/* GENERAL STYLING */
/*******************/

/* BUTTONS */
.btn-primary,
.btn-secondary {
  color: var(--clr-white);
  padding: 0.8em 1.75em;
  border-radius: 0.3em;
  cursor: pointer;
  transition: all 0.3s;
  font: 1em Roboto, san-serif;
  width: 100%;
}

.btn-primary {
  background-color: var(--clr-tertiary);
  border: 1px solid var(--clr-tertiary);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--clr-tertiary);
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #2d385a;
  color: var(--clr-white);
}

.btn-primary:focus,
.btn-primary:active,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #0076aa;
  transition: none;
  color: var(--clr-white);
}

/* SECTIONS */
section {
  padding: 5em 0 10em 0;
}

.diagonal-gradient-dark {
  --skew-angle: 5deg;
  --background: linear-gradient(
    145deg,
    rgba(29, 24, 51, 1) 0%,
    rgba(91, 35, 240, 1) 50%,
    rgba(22, 160, 220, 1) 100%
  );
  position: relative;
  isolation: isolate;
}

.diagonal-solid {
  --skew-angle: 5deg;
  --background: var(--clr-tertiary);
  position: relative;
  isolation: isolate;
  margin-top: -2px;
}

.diagonal-gradient-light {
  --skew-angle: 5deg;
  --background: linear-gradient(
    145deg,
    rgba(22, 160, 220, 1) 0%,
    rgba(91, 35, 240, 1) 100%
  );
  position: relative;
  isolation: isolate;
  margin-top: -2px;
}

.diagonal-gradient-casestudy {
  --skew-angle: 5deg;
  --background: linear-gradient(
    90deg,
    rgba(29, 24, 51, 1) 0%,
    rgba(91, 35, 240, 1) 80%,
    rgba(22, 160, 220, 1) 100%
  );
  position: relative;
  isolation: isolate;
}

.diagonal-gradient-dark::after,
.diagonal-gradient-light::after,
.diagonal-solid::after,
.diagonal-gradient-casestudy::after {
  content: '';
  background: var(--background);
  position: absolute;
  inset: 0;
  transform: skewY(var(--skew-angle));
  z-index: -1;
}

/****************/
/* HEADER & NAV */
/****************/

header {
  padding: 3em 0 5em 0;
  margin-bottom: 2em;
}

.primary-header {
  align-items: center;
  justify-content: space-between;
}

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

.title {
  font-size: 1.25em;
  font-weight: 500;
  padding-bottom: 0.15em;
}

.logo-type {
  align-items: center;
  gap: 2.2em;
}

.logo-type p {
  line-height: 1.5em;
}

/* NAVIGATION */

.primary-navigation {
  gap: 2.5em;
}

nav ul {
  list-style-type: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
}

li.nav-item {
  display: inline;
}

li.nav-item a {
  transition: color 0.25s;
}

li.nav-item a:hover {
  color: var(--clr-tertiary);
}

li.nav-item a.active {
  color: var(--clr-tertiary);
  font-weight: bold;
}

/****************/
/* HERO SECTION */
/****************/

.hero-section {
  text-align: right;
  padding-top: 1em;
  margin-bottom: 10em;
}

.hero-section h1 {
  color: var(--clr-white);
  font-size: 5em;
  line-height: 1.1em;
}

.hero-section h4 {
  color: var(--clr-secondary);
  font-size: 1.5em;
  margin: 1em 0 3em 0;
}

.hero-section .row {
  justify-content: flex-end;
}

.hero-col {
  width: 70%;
}

.hero-img-col img {
  max-width: 100%;
  height: auto;
  margin-top: -5em;
  margin-left: 2em;
}

.hero-period {
  margin-left: 0.1em;
  color: var(--clr-secondary);
}

/******************/
/* SKILLS SECTION */
/******************/

#skills-section h2 {
  color: var(--clr-white);
  margin-bottom: 1em;
}

#skills-section p {
  margin-bottom: 3em;
  width: 66%;
  line-height: 1.5em;
}

.card {
  margin-top: 5em;
  padding: 2em;
  background-color: var(--clr-primary);
  border-radius: 0.5em;
}

.card h4 {
  color: var(--clr-tertiary);
  text-transform: uppercase;
  font-size: 1.1em;
  margin: 2em 0;
}

.card ul {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.card li {
  padding: 0.5em 0;
}

.skills-row {
  margin-top: 3em;
}

.skills-icon {
  justify-content: center;
  margin-top: -73px;
}

/*******************/
/* MY WORK SECTION */
/*******************/

.mywork-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border: none;
}

.mywork-card img {
  overflow: hidden;
  height: 250px;
  width: 100%;
  vertical-align: left;
  object-fit: cover;
}

.mywork-row {
  flex-direction: column;
  padding: 1.5em;
}

.mywork-card h5 {
  font-size: 1.25em;
  color: var(--clr-white);
}

.mywork-card p {
  line-height: 1.5em;
  margin: 0.5em 0;
  flex-grow: 1;
}

/************************/
/* TESTIMONIALS SECTION */
/************************/

.test-card {
  margin-top: 10em;
}

.test-row {
  justify-content: center;
}

.test-body {
  padding-top: 2em;
}

.test-quote p {
  margin: 0 3em;
  line-height: 1.5em;
}

.test-card img {
  border-radius: 100%;
  width: 8em;
  height: auto;
  margin-top: -5em;
}

.test-quote {
  margin: 0;
  padding: 0%;
  quotes: '\201C';
}

.test-quote::before {
  display: block;
  color: var(--clr-muted);
  content: open-quote;
  font-size: 7em;
  line-height: 0.1em;
  margin-right: 0.1em;
  font-family: Montserrat, sans-serif;
}

.test-quote::after {
  display: block;
  text-align: right;
  color: var(--clr-muted);
  content: close-quote;
  font-size: 7em;
  line-height: 0.1em;
  margin-left: 0.1em;
  margin-top: 0.4em;
  font-family: Montserrat, sans-serif;
}

.attribution {
  color: var(--clr-tertiary);
  font-weight: 600;
  line-height: 1.5em;
  padding-top: 2em;
}

/****************/
/* CONTACT FORM */
/****************/

#contact-section h1 {
  color: var(--clr-white);
  font-size: 5em;
}

#contact-section h4 {
  color: var(--clr-secondary);
  margin: 1em 0 2em 0;
  font-size: 1.5em;
}

.contact-form input {
  height: 3em;
}

.contact-form label {
  margin: 0.75em 0 0.5em 0;
  display: block;
}

.contact-left {
  text-align: right;
  padding-right: 4em;
}

.form-control,
textarea {
  background-color: var(--clr-muted);
  border: 2px solid var(--clr-secondary);
  height: 10em;
}

textarea,
input {
  width: 100%;
  border-radius: 0.5em;
  margin-bottom: 2.25em;
  padding: 0.5em 1em;
  color: var(--clr-white);
  font-family: inherit;
  font-size: 1em;
}

textarea:focus,
input:focus {
  background-color: var(--clr-white);
  color: var(--clr-primary);
}

.contact-submit {
  margin-top: 3em;
  justify-content: flex-end;
}

#contact-section hr,
#projects-page hr {
  width: 100%;
  border-top: 2px solid var(--clr-muted);
  margin-top: 5em;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4em;
}

.social-svg {
  transition: color 0.3s ease-in-out;
  color: var(--clr-secondary);
  width: 50px;
  height: 50px;
}

.social-svg:hover {
  color: var(--clr-tertiary);
}

/******************/
/* FOOTER SECTION */
/******************/

footer {
  text-align: center;
  margin-bottom: 6em;
}

.footer-nav .nav-list {
  justify-content: center;
  margin: -5em 0 2em 0;
  gap: 2em;
}

footer p {
  color: var(--clr-muted);
  font-size: 1em;
  line-height: 1.5em;
}

/*****************/
/* PROJECTS PAGE */
/*****************/

#projects-page {
  padding-bottom: 5em;
}

#projects-page h1 {
  color: var(--clr-white);
  font-size: 3em;
  margin-top: -0.5em;
}

#projects-page h4 {
  color: var(--clr-secondary);
  font-size: 1.25em;
  margin: 0.75em 0 1.5em 0;
}

#projects-page img,
#project-thumbnails img {
  border-radius: 0.5em;
}

.project-note {
  color: var(--clr-muted);
  display: block;
  margin-top: 1em;
}

#projects-page .row {
  gap: 2em;
}

#projects-page img,
#project-thumbnails img {
  width: 100%;
  height: auto;
}

.row.project-thumbnails {
  margin-top: 2em;
  gap: 2em;
}

#project-thumbnails {
  padding-top: 8em;
  margin-bottom: 15em;
}

.project-pill-btn {
  display: inline-block;
  color: var(--clr-tertiary);
  border: 1px solid var(--clr-tertiary);
  border-radius: 10em;
  padding: 0.3em 1.5em;
  margin: 2em 1em 4em 0;
}

/* The Process Section */

.the-process hr {
  margin-bottom: 4em;
}

.the-process h1,
.the-process h4 {
  color: var(--clr-white);
}

.the-process h1 {
  font-size: 2.25em;
}

.the-process h4 {
  font-size: 1.25em;
}

h4.the-process-problem,
h4.the-process-solution {
  padding: 20px 0 20px 40px;
}

h4.the-process-problem {
  background: url('/img/icon-the-process-problem.png') no-repeat left center;
}

h4.the-process-solution {
  background: url('/img/icon-the-process-solution.png') no-repeat left center;
}

.the-process-row {
  margin-top: 5em;
}

.the-process-diagram,
.the-process-caption {
  margin: 4em 0 6em 0;
  padding: 2em;
  background-color: rgba(29, 24, 51, 0.3);
  border-radius: 8px;
}

.the-process-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.the-process-caption {
  margin-top: 1em;
}

.the-process ul {
  list-style-type: none;
  padding-left: 45px;
  line-height: 1.5rem;
}

.the-process-diagram h4 {
  margin-bottom: 0.5em;
  padding-left: 45px;
}

.the-process-icon-research {
  background: url('/img/icon-the-process-research.png') no-repeat left top;
}

.the-process-icon-design {
  background: url('/img/icon-the-process-design.png') no-repeat left top;
}

.the-process-icon-evaluate {
  background: url('/img/icon-the-process-evaluate.png') no-repeat left top;
}

.left-col {
  padding-right: 1.25em;
}

.the-process-steps h4 {
  margin-bottom: 1em;
}

.the-process-steps ol,
.the-process-steps li {
  margin-top: 2em;
  line-height: 1.5rem;
}

.the-process-steps li {
  margin-left: 1em;
}

.the-process img {
  margin-top: 3em;
}

.process-grid {
  margin-top: 5em;
  display: grid;
  gap: 1.875em;
  grid-template-columns: repeat(2, 1fr);
}

.process-grid img {
  margin: 0;
}

/***************/
/* THANKS PAGE */
/***************/

.thanks h2 {
  margin-top: 0.75em;
}

.btn-thanks {
  margin-top: 3em;
}

/*****************/
/* MEDIA QUERIES */
/*****************/

@media (max-width: 65em) {
  .primary-navigation {
    position: fixed;
    z-index: 1000;
    inset: 0 0 0 25%;
    gap: 2.25em;
    flex-direction: column;
    padding: 10em 3em;
    background: linear-gradient(
      145deg,
      rgba(29, 24, 51, 1) 0%,
      rgba(91, 35, 240, 1) 80%,
      rgba(22, 160, 220, 1) 100%
    );
    transform: translateX(100%);
    transition: transform 350ms ease-in-out;
  }

  #primary-navigation.active {
    transform: translateX(0%);
  }

  #mobile-nav-toggle {
    position: fixed;
    top: 45px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    background: var(--clr-primary);
    border-radius: 100em;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #mobile-nav-toggle::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--clr-white);
    transform: translateY(-5px);
    transition: 0.2s;
  }

  #mobile-nav-toggle::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--clr-white);
    transform: translateY(5px);
    transition: 0.2s;
  }

  #mobile-nav-toggle.active::before {
    transform: translateY(0px) rotate(45deg);
  }

  #mobile-nav-toggle.active::after {
    transform: translateY(0px) rotate(-45deg);
  }

  nav ul {
    align-items: flex-start;
  }
}

@media (max-width: 25em) {
  .logo-type {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 300px) {
  .grid-even-columns {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 670px) {
  .grid-even-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .grid-even-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TESTIMONIALS */
@media (min-width: 300px) {
  .test-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 1020px) {
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1020px) {
  #skills-section p {
    width: 100%;
  }
  .hero-col h1 {
    font-size: 4em;
  }
  .the-process-diagram {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2em;
  }
}

@media (max-width: 870px) {
  #projects-page .row {
    flex-direction: column;
  }
  .the-process .row {
    flex-direction: column;
  }

  .the-process-caption {
    margin-bottom: 2em;
  }
}

@media (max-width: 550px) {
  .the-process-diagram {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 670px) {
  .hero-section {
    text-align: left;
  }

  .test-quote p {
    margin: 0 1em;
  }
}

@media (max-width: 870px) {
  .hero-col {
    width: 100%;
  }

  .hero-section h4 {
    font-size: 1.25em;
  }

  #contact-section .row {
    flex-direction: column;
  }

  .contact-left {
    text-align: left;
    padding-right: 0;
  }

  .social-links {
    margin: 5em 0;
  }

  .process-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .the-process hr {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .hero-img-col img {
    display: none;
  }

  .hero-img-col {
    width: 60%;
  }
}

@media (min-width: 670px) {
  .primary-navigation {
    inset: 0 0 0 40%;
  }
}

@media (min-width: 800px) {
  .primary-navigation {
    inset: 0 0 0 50%;
  }
}

@media (max-width: 420px) {
  .test-card {
    padding: 1em;
  }

  .footer-nav .nav-list {
    gap: 1em;
  }

  footer p {
    font-size: 0.8em;
  }

  section#projects-page {
    padding-top: 0;
  }

  .project-pill-btn {
    margin: 1.5em 0.25em 2em 0;
    padding: 0.3em 1em;
  }
}
