/*****************
******************
Theme Name: ucon
Author: fourplex
Author URI: https://fourplex.de/
Version: 1.0
******************
*****************/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

:root {
  --boxed: 1200px;

  --text-base: 20px;
  --text-md: 25px;
  --text-lg: 35px;
  --text-xl: 50px;
  --text-2xl: 75px;

  --color-ditto: #d44cec;
  --color-schiggy: #9cfeff;
  --color-turtok: #58b4c5;
}

@media (width < 768px) {
  :root {
    --boxed: 600px;

    --text-base: 18px;
    --text-md: 22.5px;
    --text-lg: 30px;
    --text-xl: 40px;
    --text-2xl: 50px;
  }
}

input[type="text"],
input[type="email"] {
  -webkit-appearance: textfield;
}

input[type="text"]::-webkit-search-decoration,
input[type="email"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

html {
  font-size: var(--text-base);
  color: var(--color-schiggy);
  font-family: "montserrat", sans-serif;
  background: linear-gradient(to bottom right, #210456, #480075);

  & .container {
    padding: 1.5rem;

    &.boxed {
      max-width: var(--boxed);
      margin: 0 auto;
    }
  }

  & h1 {
    font-size: var(--text-xl);
    margin-bottom: 2rem;
  }

  & h2 {
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
  }

  & h3 {
    font-size: var(--text-md);
    margin-bottom: 1rem;
  }
}

/*************************
HERO 
*************************/
#hero {
  height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5rem;

  @media (width < 768px) {
    gap: 0rem;
    justify-content: space-evenly;
    padding: 2rem;
  }

  & #logo {
    max-width: 650px;
  }

  & div {
    text-align: center;
    width: 50%;

    @media (width < 768px) {
      width: 100%;
    }
  }
}

/*************************
QUICK FACTS 
*************************/
#quick-facts {
  margin: 7.5rem 0;

  @media (width < 768px) {
    margin: 5rem 0;
  }

  & .container {
    padding: 4rem 3rem;
    position: relative;
    background: #702d7a;
    border-radius: 1rem;
    border: 1px solid var(--color-schiggy);

    @media (width < 768px) {
      padding: 4rem 1rem;
    }

    & h2 {
      font-size: var(--text-2xl);
      position: absolute;
      top: 0;
      left: 3rem;
      translate: 0 -55%;
      text-transform: uppercase;

      @media (width < 768px) {
        left: 1rem;
      }
    }

    & .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
      gap: 2.5rem;

      @media (width < 768px) {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      }

      & .grid-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border: 1px solid var(--color-schiggy);
        border-radius: 1rem;
        padding: 1rem;
        color: var(--color-schiggy);
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.25);

        & div {
          padding: 0.5rem;
          border-radius: 1rem 0 0 1rem;

          & i {
            font-size: var(--text-lg);
          }
        }

        & p {
          font-weight: bold;
        }
      }
    }
  }
}

/*************************
HIGHLIGHTS
*************************/
#highlights {
  margin: 7.5rem 0;

  @media (width < 768px) {
    margin: 5rem 0;
  }

  & .container {
    padding: 4rem 3rem;
    position: relative;
    background: #1c444b;
    border-radius: 1rem;
    border: 1px solid var(--color-schiggy);

    @media (width < 768px) {
      padding: 4rem 1rem;
    }

    & h2 {
      font-size: var(--text-2xl);
      position: absolute;
      top: 0;
      left: 3rem;
      translate: 0 -55%;
      text-transform: uppercase;
    }

    & .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
      gap: 2.5rem;

      @media (width < 768px) {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      }

      & .grid-item {
        border: 1px solid var(--color-schiggy);
        border-radius: 1rem;
        padding: 1rem;
        color: var(--color-schiggy);
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.25);

        & p:first-child {
          font-weight: bold;
          margin-bottom: 0.5rem;
        }
      }
    }
  }
}

/*************************
REGISTER
*************************/
#register {
  margin: 5rem 0;
  text-align: center;

  & h2 {
    font-size: var(--text-2xl);
    text-transform: uppercase;
  }

  & #contactForm {
    margin: 2rem auto 3rem;
    width: 50%;

    @media (width < 768px) {
      width: 100%;
    }

    & .input-box {
      position: relative;
      padding: 1.5rem;

      & label {
        position: absolute;
        left: 2.5rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        transition: all 0.25s ease;
        color: var(--color-shiggy);
        padding: 0 0.25rem;
      }

      & input {
        width: 100%;
        border: none;
        border-bottom: 1px solid var(--color-turtok);
        outline: none;
        padding: 1rem 0.5rem 0.25rem 1rem;
        background: transparent;
        color: var(--color-shiggy);
        font-size: 1rem;

        &:focus + label,
        &:not(:placeholder-shown) + label {
          top: 0;
          transform: translateY(0%) scale(0.85);
          color: var(--color-turtok);
        }
      }
    }

    & button {
      margin: 2rem 0;
      padding: 1rem;
      font-size: var(--text-md);
      letter-spacing: 2px;
      border: 1px solid #d929e7;
      outline: none;
      border-radius: 1rem;
      background: #63246c;
      color: var(--color-schiggy);
      cursor: pointer;
      transition: all 0.35s ease;
      text-transform: uppercase;
      font-weight: bold;

      &:hover {
        background: #d929e7;
      }

      @media (width < 768px) {
        width: 100%;
      }
    }
  }

  & a {
    color: var(--color-schiggy);

    & i {
      font-size: var(--text-xl);
    }
  }
}
