/* || Global Styles */

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

:root {
  /* Neutral Colours */

  --neutral-900: #030303;
  --neutral-400: #6a6662;
  --neutral-200: #fff7f0;
  --neutral-0: #fff;
  /* Colours */

  --light-red-500: #e16b5b;
  --galatic-blue-500: #755cde;
  --summer-yellow-500: #f6a560;
  --pink-500: #f39e9e;
  --cyan-500: #61c4b7;
  --dark-purple: #552049;
  /* Text-Presets */

  --preset-1-fs: 3.5rem;
  --preset-1-fw: 700;
  --preset-1-lh: 150%;
  --preset-1-mob-fs: 2.5rem;
  --preset-1-mob-fw: 700;
  --preset-1-mob-lh: 120%;
  --preset-2-fs: 2.5rem;
  --preset-2-fw: 700;
  --preset-2-lh: 130%;
  --preset-3-fs: 1.5rem;
  --preset-3-fw: 500;
  --preset-3-lh: 130%;
  --preset-4-fs: 1.125rem;
  --preset-4-fw: 500;
  --preset-4-lh: 150%;
  --preset-5-fs: 1rem;
  --preset-5-fw: 700;
  --preset-5-lh: 150%;
}

/* Fonts */

@font-face {
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
  font-family: 'Plus Jakarta Sans';
  font-display: swap;
}

@font-face {
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
  font-family: 'Plus Jakarta Sans';
  font-display: swap;
}

/* || Main Styles */

html,
body {
  scroll-behavior: smooth;
}

body {
  background-color: var(--neutral-200);
  padding: 1.5rem 0 0 0;
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-block-end: 2rem;
}

/* Header */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 2.5rem;
  padding: 0 1rem;
}

.logo {
  width: 3rem;
  height: 3rem;
}

.header-btn {
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  border-radius: 2rem;
  background-color: var(--neutral-900);
  padding: 1rem 1.5rem;
  height: 3.25rem;
  color: var(--neutral-200);
  font-weight: var(--preset-5-fw);
  font-size: var(--preset-5-fs);
  line-height: var(--preset-5-lh);
  text-decoration: none;
}

.header-btn:hover {
  background-color: var(--galatic-blue-500);
}

.header-btn:focus {
  outline: 0.15rem solid var(--galatic-blue-500);
  outline-offset: 0.2rem;
}

/* Hero Section */

h1 {
  color: var(--neutral-900);
  font-weight: var(--preset-1-mob-fw);
  font-size: clamp(var(--preset-1-mob-fs), 5vw, var(--preset-1-fs));
  line-height: var(--preset-1-mob-lh);
}

.hero {
  padding: 0 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-block-end: 2.5rem;
  text-align: center;
}

.hero-text {
  color: var(--neutral-400);
  font-weight: var(--preset-4-fw);
  font-size: var(--preset-4-fs);
  line-height: var(--preset-4-lh);
}

/* Hero Grid Container */

h2 {
  color: var(--neutral-0);
  font-weight: var(--preset-3-fw);
  font-size: var(--preset-3-fs);
  line-height: var(--preset-3-lh);
}

.hero-grid-container {
  display: grid;
  grid-template-rows: 22.75rem 11.375rem 11.375rem 11.375rem 11.375rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.graphic-design,
.ui-ux,
.apps,
.illustrations,
.photography,
.motion-graphics {
  display: flex;
  position: relative;
  align-items: flex-end;
  border-radius: 0.625rem;
  padding: 1.2rem;
  width: 100%;
  height: 100%;
}

.graphic-design-pattern,
.ui-uk-pattern,
.apps-pattern,
.illustrations-pattern,
.photography-pattern,
.motion-graphics-pattern {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}

.graphic-design {
  grid-row: 1;
  grid-column: 1 / 3;
  background-color: var(--galatic-blue-500);
}

.ui-ux {
  grid-row: 2;
  grid-column: 1;
  background-color: var(--summer-yellow-500);
}

.apps {
  grid-row: 2;
  grid-column: 2;
  background-color: var(--pink-500);
}

.illustrations {
  grid-row: 3;
  grid-column: 1 / 3;
  background-color: var(--light-red-500);
}

.photography {
  grid-row: 4;
  grid-column: 1 / 3;
  background-color: var(--cyan-500);
}

.motion-graphics {
  grid-row: 5;
  grid-column: 1 / 3;
  background-color: var(--dark-purple);
}

/* About Section */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.image-amy {
  margin-block-end: 1.5rem;
  width: 18.75rem;
  height: 18.75rem;
}

.about-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-block-end: 2rem;
  text-align: center;
}

.about-opener {
  color: var(--neutral-900);
  font-weight: var(--preset-2-fw);
  font-size: var(--preset-2-fs);
  line-height: var(--preset-2-lh);
}

.about-main-text {
  width: 33ch;
  color: var(--neutral-400);
  font-weight: var(--preset-4-fw);
  font-size: var(--preset-4-fs);
  line-height: var(--preset-4-lh);
}

.about-btn {
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  border-radius: 2rem;
  background-color: var(--light-red-500);
  padding: 1rem 3rem;
  color: var(--neutral-200);
  font-weight: var(--preset-5-fw);
  font-size: var(--preset-5-fs);
  line-height: var(--preset-5-lh);
}

.about-btn:hover {
  background-color: var(--summer-yellow-500);
}

.about-btn:focus {
  outline: 0.15rem solid var(--light-red-500);
  outline-offset: 0.2rem;
}

/* My Work Section */

.work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.work-header {
  color: var(--neutral-900);
  font-weight: var(--preset-1-mob-fw);
  font-size: var(--preset-1-mob-fs);
  line-height: var(--preset-1-mob-lh);
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.image-carousel {
  display: flex;
  gap: 1rem;
  box-sizing: border-box;
  padding-inline: calc(50vw - 8.4375rem);
  width: 100vw;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.image-carousel::-webkit-scrollbar {
  display: none;
}

.slide-container {
  display: grid;
  grid-template-columns: auto;
  width: 100%;
  scroll-snap-align: center;
}

.slide-container span img {
  border-radius: 0.625rem;
  width: 270px;
  height: 11.25rem;
}

.arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  background-color: var(--neutral-900);
  width: 3rem;
  height: 3rem;
}

.arrows:hover {
  background-color: var(--galatic-blue-500);
}

.arrows:focus {
  outline: 0.15rem solid var(--galatic-blue-500);
  outline-offset: 0.2rem;
}

.arrow-container {
  display: flex;
  gap: 1rem;
}

/* Contact Section */

.contact {
  padding: 0 1rem;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.625rem;
  background-color: var(--neutral-900);
  padding: 2.5rem 1rem;
}

.contact-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-block-end: 2.5rem;
}

.contact-title {
  color: var(--neutral-200);
  font-weight: var(--preset-1-mob-fw);
  font-size: clamp(var(--preset-1-mob-fs), 5vw, var(--preset-2-fs));
  line-height: var(--preset-1-mob-lh);
}

.contact-text {
  width: 22ch;
  color: var(--neutral-200);
  font-weight: var(--preset-4-fw);
  font-size: var(--preset-4-fs);
  line-height: var(--preset-4-lh);
  text-align: center;
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 2.5rem;
  padding: 0 1rem;
}

/* || Media Queries */

@media screen and (min-width: 51.25rem) {
  header {
    padding: 0 2rem;
  }

  h1 {
    width: 15ch;
    font-weight: var(--preset-1-fw);
    line-height: var(--preset-1-lh);
  }

  .hero-text {
    width: 41ch;
  }

  .hero-grid-container {
    grid-template-rows: repeat(3, 10.125rem);
    grid-template-columns: repeat(4, 1fr);
  }

  .graphic-design {
    grid-row: 1 / 3;
    grid-column: 1 / 3;
  }

  .ui-ux {
    grid-row: 1;
    grid-column: 3;
  }

  .apps {
    grid-row: 1;
    grid-column: 4;
  }
  .illustrations {
    grid-row: 2;
    grid-column: 3 / 5;
  }

  .photography {
    grid-row: 3;
    grid-column: 1 /3;
  }

  .motion-graphics {
    grid-row: 3;
    grid-column: 3 / 5;
  }

  .about-opener {
    width: 22ch;
  }

  .about-main-text {
    width: 40ch;
  }

  .image-carousel {
    padding-inline: calc(50vw - 16.875rem);
  }

  .slide-container span img {
    width: 33.75rem;
    height: 22.5rem;
  }

  .contact-title {
    font-weight: var(--preset-2-fw);
    line-height: var(--preset-2-lh);
  }

  .contact-text {
    width: 41ch;
  }
}

@media screen and (min-width: 90rem) {
  .content-wrapper {
    margin-inline: auto;
    width: min(100% - 12rem, 90rem);
    overflow-x: hidden;
  }

  header {
    padding: 1rem 1rem 0 1rem;
  }

  .hero-grid-container {
    grid-template-rows: repeat(2, 10.125rem);
    grid-template-columns: repeat(6, 1fr);
  }

  .graphic-design {
    grid-row: 1/ 3;
    grid-column: 1 / 3;
  }

  .photography {
    grid-row: 1;
    grid-column: 5 / 7;
  }

  .motion-graphics {
    grid-row: 2;
    grid-column: 5 / 7;
  }

  .about {
    flex-direction: row;
    justify-content: space-between;
  }

  .image-amy {
    width: 27.8125rem;
    height: 27.8125rem;
  }

  .about-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
  }

  .contact-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 5rem 4rem;
    text-align: left;
  }

  .contact-text-wrapper {
    margin: 0;
  }

  .contact-title {
    width: 100%;
  }

  .contact-text {
    width: 46ch;
    text-align: left;
  }
}
