@import url("../styles/mobile-navigation.css");

:root {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  --white: #fff;
  --black: #000;
  --logo-width: 5rem;
  --logo-margin: 1rem 0;
  --primary-color: rgb(24, 71, 117);
  --primary-darker-tint: rgba(12, 31, 49);
  --primary-w-opacity: rgba(12, 31, 49, 0.664);
  --secondary-color: rgb(249, 130, 74);
  --text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.67);
  --box-shadow: inset 0 0 0 2000px var(--primary-w-opacity);
  --drop-shadow: drop-shadow(1px 2px 4px #000000);
  --font-2: "Catamaran", Fallback, sans-serif;
  --font-1: "Michroma", Fallback, sans-serif;
  scroll-behavior: smooth;
}

/* BODY STYLES */

body {
  width: 100%;
  height: 100vh;
  padding: 0;
  margin: 0;
  font-family: var(--font-1);

  a {
    color: var(--white);
  }

  hr {
    width: 200px;
    border-top: 5px solid var(--primary-darker-tint);
    border-right: none;
    border-left: none;
    border-bottom: none;
  }

  .logo {
    max-width: 5rem;
    margin: 1rem 0;
    position: relative;
    z-index: 3;
  }

  .abbreviate-p {
    @media (max-width: 1000px) {
      display: none;
    }
  }

  .background-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 0;
  }

  .text-bubble {
    z-index: 1;
    text-shadow: var(--text-shadow);
    padding: 2rem;
    filter: var(--drop-shadow);
    color: var(--white);
    border-top-right-radius: 5rem;
    border-bottom-left-radius: 5rem;
    border-right: 7px solid var(--secondary-color);
    border-left: 7px solid var(--secondary-color);
    font-family: var(--font-2);
    background-color: var(--primary-darker-tint);
    width: 250px;
    @media (min-width: 360px) {
      width: auto;
    }
    @media (min-width: 1000px) {
      font-size: 1.5rem;
    }
  }

  .text {
    font-weight: 400;
  }

  .header-h1-titles {
    font-size: xx-large;
    text-transform: uppercase;
    font-size: 1.5rem;

    @media (min-width: 400px) {
      font-size: auto;
    }
  }
  .content-section {
    min-height: 600px;
    padding: 0 1rem 3rem 0;
  }

  .section-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--primary-w-opacity);
    z-index: 1;
  }
}

/* HEADER STYLES */

header {
  position: fixed;
  background-color: var(--white);
  top: 0;
  width: 100%;
  z-index: 5;
  border-bottom: 5px solid var(--secondary-color);

  /* NAVIGATION STYLES */
  nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-transform: uppercase;

    img {
      width: 4rem;
    }

    #bottom-navigation {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 5rem;
      margin: 0 1rem;

      .navigation-links {
        display: flex;
        flex-direction: row;
        justify-content: center;

        li {
          position: relative;
          display: flex;
          align-items: center;
          list-style: none;
          margin-left: 1rem;
          height: 100%;
          font-weight: 900;
          font-size: 0.8rem;

          a {
            color: var(--black);
            text-decoration: none;
          }

          &:after {
            content: "";
            position: absolute;
            background-color: var(--primary-darker-tint);
            height: 3px;
            width: 0;
            left: 0;
            bottom: -8px;
          }
        }

        li:hover::after {
          width: 100%;
        }
        @media (max-width: 1200px) {
          display: none;
        }
      }
    }
  }
}

/* SECTION STYLES */

#hero {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  text-align: center;
  color: var(--white);
  text-shadow: var(--text-shadow);
  height: 100vh;

  #hero-content {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    z-index: 2;
    padding: 0 1rem;

    #hero-titles {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      max-width: 900px;
    }

    h1 {
      font-size: 2rem;
      font-weight: bolder;
      text-align: center;
      width: 100%;
      padding: 0;
      text-transform: uppercase;
      margin-bottom: 0;
    }

    h2 {
      font-size: 1.3rem;
      font-weight: 300;
      padding: 0;
      font-style: italic;
      font-family: var(--font-2);
    }

    span {
      color: var(--secondary-color);
      font-weight: bold;
    }

    #cta-btn {
      filter: var(--drop-shadow);
      background-color: var(--secondary-color);
      color: var(--black);
      margin-top: 2rem;
      font-weight: 700;
      font-size: large;
      width: 300px;
      height: 75px;
      padding: 1rem;
      border-radius: 0.5rem;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: var(--font-1);
      text-transform: uppercase;
      font-weight: 900;

      &:hover {
        border-top-right-radius: 5rem;
        border-bottom-left-radius: 5rem;
        border-right: 7px solid var(--secondary-color);
        border-left: 7px solid var(--secondary-color);
        background-color: var(--primary-darker-tint);
        color: var(--white);
        width: 350px;
      }
    }

    @media (min-width: 768px) {
      h1 {
        font-size: 3rem;
      }
      h2 {
        font-size: 2rem;
      }
    }

    @media (min-width: 1000px) {
      h1 {
        font-size: 4rem;
      }
      h2 {
        font-size: 2rem;
      }
    }

    @media (min-width: 1200px) {
      h1 {
        font-size: 4.5rem;
      }
      h2 {
        font-size: 2rem;
      }
    }

    @media screen and (max-height: 700px) and (orientation: landscape) {
      margin-top: 2rem;
      h1 {
        font-size: 1.3rem;
      }
      h2 {
        font-size: 1rem;
      }
    }
  }
}

#customers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin-top: 3rem;

  p {
    text-align: center;
    font-weight: 600;
    font-family: var(--font-2);
    font-size: 1rem;
  }
  img {
    max-width: 600px;
    margin: 1rem;
    @media (max-width: 600px) {
      display: none;
    }
  }

  @media (min-width: 800px) {
    img {
      max-width: 800px;
    }
  }
}
#who-we-are {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-margin-top: 6rem;
  padding: 1rem;

  a {
    color: var(--black);
  }
  div {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  picture {
    .who-we-are-img {
      border-right: 7px solid var(--primary-darker-tint);
      border-radius: 1rem 0 0 1rem;
      filter: var(--drop-shadow);
      max-width: 300px;
      max-height: 300px;
      margin-right: 1rem;
    }

    img:nth-child(2) {
      @media (max-width: 1000px) {
        margin-right: 0;
      }
    }
  }

  p {
    margin-left: 1rem;
    text-align: center;
  }

  /* MEDIA QUERIES */

  @media (max-width: 1000px) {
    p {
      font-size: x-large;
      text-align: center;
    }
    img:nth-child(1) {
      display: none;
    }
    img:nth-child(3) {
      display: none;
    }
  }

  @media (min-width: 1500px) {
    p {
      font-size: larger;
    }
    padding: 1rem 15rem;
  }

  @media (min-width: 1700px) {
    h1 {
      font-size: xx-large;
    }
    padding: 1rem 15rem;
  }
}

#industries {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  scroll-margin-top: 6rem;
  padding: 1rem;
  box-shadow: var(--box-shadow);
  color: var(--white);
  text-shadow: var(--text-shadow);
  z-index: 1;

  h1 {
    z-index: 2;
  }

  a {
    color: var(--white);
  }

  div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    p {
      text-align: center;
      z-index: 2;
    }
    #industries-img {
      border-left: 7px solid var(--secondary-color);
      border-radius: 0 1rem 1rem 0;
      filter: var(--drop-shadow);
      width: 300px;
      height: 200px;
      margin: 1rem;
      z-index: 2;
    }

    @media (min-width: 1200px) {
      flex-direction: row;
      padding: 1rem 2rem;
      p {
        margin-left: 1rem;
      }
    }
  }
  background-color: var(--primary-color);
  color: var(--white);

  /* MEDIA QUERIES */

  @media (max-width: 1000px) {
    p {
      font-size: x-large;
    }
  }

  @media (min-width: 750px) {
    div {
      #industries-img {
        width: 700px;
        height: auto;
      }
    }
  }

  @media (min-width: 1700px) {
    p {
      font-size: larger;
    }
    h1 {
      font-size: xx-large;
    }
    padding: 1rem 15rem;
  }
}

#insights {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-margin-top: 6rem;
  padding: 1rem;

  #insights-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;

    img {
      border-right: 7px solid var(--primary-darker-tint);
      border-radius: 1rem 0 0 1rem;
      filter: var(--drop-shadow);
      width: 300px;
      height: 200px;
      max-height: 466px;
    }
  }

  a {
    color: var(--black);
  }

  p {
    margin-right: 0;
    text-align: center;
    font-size: x-large;
  }

  /* MEDIA QUERIES */

  @media (min-width: 700px) {
    #insights-content {
      img {
        width: auto;
        height: auto;
      }
    }
  }

  @media (min-width: 1200px) {
    #insights-content {
      flex-direction: row;

      p {
        margin-right: 1rem;
      }
    }
  }

  @media (min-width: 1700px) {
    p {
      font-size: larger;
    }
    h1 {
      font-size: xx-large;
    }
    padding: 1rem 15rem;
  }
}

#partnerships {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  scroll-margin-top: 6rem;
  padding: 1rem;
  box-shadow: var(--box-shadow);
  color: var(--white);
  text-shadow: var(--text-shadow);

  h1 {
    position: relative;
    z-index: 2;
    text-align: center;
  }

  #partnerships-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    p {
      padding: 2rem;
      margin-right: 0;
      z-index: 2;
    }

    picture {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 2;

      .partnerships-img {
        margin-bottom: 1rem;
        filter: var(--drop-shadow);
      }

      #zeon-img {
        width: 100px;
        margin-right: 0.5rem;
      }

      #efsf-img {
        width: 100px;
        margin-right: 0.5rem;
      }

      #zeonic-img {
        max-width: 300px;
        background-color: var(--white);
      }
    }
  }

  /* MEDIA QUERIES */

  @media (max-width: 1000px) {
    p {
      font-size: x-large;
    }
  }

  @media (min-width: 1000px) {
    #partnerships-body {
      flex-direction: row;
      p {
        margin-right: 1rem;
      }

      picture,
      p {
        width: 50%;
      }
    }
  }

  @media (min-width: 1500px) {
    p {
      font-size: larger;
    }
    padding: 1rem 15rem;
  }

  @media (min-width: 1700px) {
    h1 {
      font-size: xx-large;
    }
    padding: 1rem 15rem;
  }
}

#our-history {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    img {
      width: 300px;
      border-right: 7px solid var(--primary-darker-tint);
      border-radius: 1rem 0 0 1rem;
      filter: var(--drop-shadow);
      max-height: 344px;
    }

    p {
      margin-right: 0;
    }
  }

  /* MEDIA QUERIES */

  @media (min-width: 700px) {
    div {
      img {
        width: auto;
        max-width: 50rem;
      }
    }
  }
  @media (min-width: 800px) {
    div {
      p {
        margin-right: 1rem;
      }
    }
  }

  @media (max-width: 1000px) {
    p {
      font-size: x-large;
    }
    div {
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
  }

  @media (min-width: 1500px) {
    p {
      font-size: larger;
    }
    padding: 1rem 15rem;
  }

  @media (min-width: 1700px) {
    h1 {
      font-size: xx-large;
    }

    div {
      p {
        max-width: 50%;
      }
    }
    padding: 1rem 15rem;
  }
}

/* FOOTER STYLES */

footer {
  text-align: left;
  padding: 1rem;
  box-shadow: var(--box-shadow);
  background-color: var(--primary-darker-tint);
  color: var(--white);
  padding: 1rem;
  text-shadow: var(--text-shadow);
  border-top: 5px solid var(--secondary-color);
  font-family: var(--font-2);

  p {
    text-align: center;
  }

  a {
    color: var(--white);
    text-decoration: none;
  }

  #footer-site-links {
    display: flex;
    flex-direction: column;
    border-left: 0;
    width: 100%;

    li {
      border-left: 5px solid var(--secondary-color);
      list-style: none;
      padding-left: 0.5rem;
      font-size: x-large;
    }

    @media (min-width: 700px) {
      flex-direction: row;
      align-items: center;
      justify-content: center;
      li {
        font-size: large;
      }
    }
  }

  #back-to-top {
    display: flex;
    justify-content: right;

    a {
      border: 3px solid var(--secondary-color);
      border-radius: 0.5rem;
      padding: 1rem;

      &:hover {
        background-color: var(--secondary-color);
      }
    }
  }

  #footer-social-links {
    margin: 1rem 0;
    a {
      padding: 0 0.5rem;
    }
  }

  #footer-header {
    display: flex;
    justify-content: left;
    flex-direction: column;
    align-items: center;
    font-size: large;
    font-weight: 200;
    font-style: italic;
    span {
      color: var(--secondary-color);
    }
  }

  #footer-logo {
    width: 100px;
  }

  #footer-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
