@import url("https://fonts.googleapis.com/css2?family=Quicksand&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Zetta&display=swap");

:root {
  --main-font: "Quicksand", sans-serif;
  --logo-font: "Lexend Zetta", sans-serif;
  --primary: rgb(88, 88, 88);
  --secondary: rgb(65, 128, 211);
  --third: rgb(221, 137, 97);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, auto);
  font-family: var(--main-font);
  font-size: 100%;
  color: var(--primary);
}

header {
  grid-column: 1/13;
  grid-row: 1/2;
  /* height: 5vh; */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--main-font);
  font-weight: bold;
  font-size: 2.5em;
  color: var(--secondary);
  white-space: nowrap;
}

.logo-letters {
  color: var(--third);
  letter-spacing: -10px;
}

.logo-creating {
  letter-spacing: 14px;
  margin-left: 14px;
}

ul.nav-bar {
  list-style: none;
  display: flex;
  flex-direction: row;
}

a,
a.nav-link {
  color: var(--secondary);
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.5s;
  transition: background-color 0.5s;
  margin: 0 5px;
}

a.nav-link {
  font-size: 1.5em;
}

a.text-link {
  text-transform: none;
}

a.quarter-link,
a.third-link {
  margin: 0;
}

a.nav-link:hover {
  color: var(--third);
}

a.active {
  color: var(--third);
}

main {
  grid-column: 1/13;
  grid-row: 2/3;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

section {
  width: 100vw;
  height: 50vw;
  max-width: 100%;
  display: flex;
}

.full,
.half,
.quarter,
.third {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.quarter,
.third {
  background-color: rgba(65, 128, 211, 0.1);
}

.quarter,
.third img {
  transition: ease 0.5s;
}
.full {
  width: 100%;
  height: 100%;
}

.half {
  width: 50%;
  height: 100%;
  flex-wrap: wrap;
}

.quarter {
  width: 50%;
  height: 50%;
  flex-wrap: wrap;
}

.third {
  width: 50%;
  height: 33%;
  flex-wrap: wrap;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  color: rgba(65, 128, 211, 1);
  background-color: white;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: ease 0.5s;
}

.third:hover img {
  transform: scale(1.2);
}

.third:hover .image-text {
  /* background-color: rgba(65, 128, 211, 1); */
  color: rgba(65, 128, 211, 1);
  background-color: white;
}

h2,
h3 {
  color: var(--secondary);
  text-transform: uppercase;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.5em;
}

p {
  font-size: 1.5em;
  margin: 5% 10%;
  text-align: center;
}

p.small-text {
  font-size: 1em;
}

ul.list {
  font-size: 1.5em;
  text-align: left;
  margin: 5% 10%;
  padding: 0 5% 0 5%;
}

@media screen and (max-width: 1200px) {
  header {
    grid-column: 1/13;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    font-size: 2.5em;
  }

  a.nav-link {
    font-size: 1em;
  }

  section {
    flex-direction: column;
    height: 200vw;
  }

  .half {
    width: 100%;
    height: 50%;
    flex-wrap: wrap;
  }

  .quarter {
    width: 50%;
    height: 50%;
  }

  .third {
    width: 50%;
    height: 33%;
  }

  .image {
    order: 2;
  }

  .text {
    order: 1;
  } 

  h2 {
    font-size: 1.3em;
  }
  
  h3 {
    font-size: 1.0em;
  }

  p {
    font-size: 1em;
    margin: 5% 10%;
  }

  p.small-text {
    font-size: 0.8em;
    margin: 0%;
  }

  ul.list {
    font-size: 1em;
    padding: 0 10% 0 10%;
  }
}

@media screen and (max-width: 500px) {
  header {
    grid-column: 1/13;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    font-size: 2.0em;
  }

  a.nav-link {
    font-size: 0.6em;
  }

  section {
    flex-direction: column;
    height: 200vw;
  }

  .half {
    width: 100%;
    height: 50%;
    flex-wrap: wrap;
  }

  .quarter {
    width: 50%;
    height: 50%;
  }

  .third {
    width: 50%;
    height: 33%;
  }

  .image {
    order: 2;
  }

  .text {
    order: 1;
  } 

  h2 {
    font-size: 0.8em;
  }
  
  h3 {
    font-size: 0.6em;
  }

  p {
    font-size: 0.6m;
    margin: 5% 10%;
  }

  p.small-text {
    font-size: 0.4em;
    margin: 0%;
  }

  ul.list {
    font-size: 0.6em;
    padding: 0 10% 0 10%;
  }
}

.bg-third {
  background-color: var(--third);
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 99;
  font-size: 1em;
  border: none;
  outline: none;
  background-color: var(--secondary);
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.5s;
}

#myBtn:hover {
  background-color: var(--third);
}

footer {
  grid-column: 1/13;
  grid-row: 3/4;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  padding: 10px 0;
}

ul.socials {
  list-style: none;
  display: flex;
}

a.socials-link {
  color: var(--primary);
  margin: 0 5px;
}

i.fab {
  color: var(--secondary);
  font-size: 1.5em;
}

.fa-facebook:hover {
  color: rgb(59, 89, 153);
}

.fa-instagram:hover {
  color: rgb(228, 64, 95);
}
