@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* COLORS */

  --color-green-01: #008fa2;
  --color-green-02: #00454e;
  --color-green-03: #00222e;

  --color-grey-01: #f1f0f0;
  --color-grey-02: #e8e8e8;
  --color-grey-03: #1c2026;

  --color-black-01: #000000;
  --color-black-02: #1c2026;

  --color-bg-form: #fafafa;
  --color-border-form: #ccc;

  /* FONTS */

  --h1-size-mobile: 40px;
  --h1-size-tablet: 55px;
  --h1-size-desktop: 55px;

  --h2-size-mobile: 30px;
  --h2-size-tablet: 35px;
  --h2-size-desktop: 40px;

  --h3-size-mobile: 18px;
  --h3-size-tablet: 18px;
  --h3-size-desktop: 18px;

  /* P HERO */
  --p-size-mobile: 16px;
  --p-size-tablet: 16px;
  --p-size-desktop: 18px;

  /* P SERVICES */
  --p-description-services-size-desktop: 18px;
  --p-service-size-mobile: 14px;
  --p-service-size-tablet: 14px;
  --p-service-size-desktop: 16px;

  /* P CONTACT */

  --p-contact-size-mobile: 16px;
  --p-contact-size-tablet: 16px;
  --p-contact-size-desktop: 18px;

  /* P FOOTER */

  --p-footer-size-mobile: 14px;
  --p-footer-size-tablet: 14px;
  --p-footer-size-desktop: 14px;
  --p-copy-footer-size-mobile: 12px;
  --p-copy-footer-size-tablet: 12px;
  --p-copy-footer-size-desktop: 12px;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  background-color: var(--color-black-01);

  @keyframes move {
    100% {
      transform: translate3d(0, 20px, 1px) rotate(360deg);
    }
  }

  .background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #000000;
    overflow: hidden;
    z-index: -1;
    opacity: 0.4;
    filter: grayscale(50%);
  }

  .background span {
    width: 63vmin;
    height: 63vmin;
    border-radius: 63vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move;
    animation-duration: 27;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }

  .background span:nth-child(0) {
    color: #008ea1;
    top: 98%;
    left: 48%;
    animation-duration: 145s;
    animation-delay: -5s;
    transform-origin: 15vw 2vh;
    box-shadow: -86vmin 0 10.991241269383057vmin currentColor;
  }
  .background span:nth-child(1) {
    color: #008ea1;
    top: 81%;
    left: 21%;
    animation-duration: 16s;
    animation-delay: -166s;
    transform-origin: -2vw -23vh;
    box-shadow: 86vmin 0 11.28489255696559vmin currentColor;
  }
  .background span:nth-child(2) {
    color: #008ea1;
    top: 58%;
    left: 47%;
    animation-duration: 232s;
    animation-delay: -137s;
    transform-origin: 12vw 5vh;
    box-shadow: -86vmin 0 10.912404421244426vmin currentColor;
  }
  .background span:nth-child(3) {
    color: #008ea1;
    top: 87%;
    left: 67%;
    animation-duration: 104s;
    animation-delay: -145s;
    transform-origin: -16vw 24vh;
    box-shadow: 86vmin 0 11.716464181152164vmin currentColor;
  }
  .background span:nth-child(4) {
    color: #008ea1;
    top: 98%;
    left: 2%;
    animation-duration: 147s;
    animation-delay: -18s;
    transform-origin: 9vw -1vh;
    box-shadow: -86vmin 0 11.549619085734694vmin currentColor;
  }
  .background span:nth-child(5) {
    color: #008ea1;
    top: 14%;
    left: 60%;
    animation-duration: 87s;
    animation-delay: -79s;
    transform-origin: -8vw -20vh;
    box-shadow: 86vmin 0 11.349223473811621vmin currentColor;
  }
  .background span:nth-child(6) {
    color: #008ea1;
    top: 11%;
    left: 61%;
    animation-duration: 158s;
    animation-delay: -140s;
    transform-origin: -16vw 0vh;
    box-shadow: -86vmin 0 11.461424456537635vmin currentColor;
  }
  .background span:nth-child(7) {
    color: #008ea1;
    top: 96%;
    left: 49%;
    animation-duration: 131s;
    animation-delay: -12s;
    transform-origin: 3vw 7vh;
    box-shadow: 86vmin 0 11.274384568049461vmin currentColor;
  }
  .background span:nth-child(8) {
    color: #008ea1;
    top: 88%;
    left: 4%;
    animation-duration: 68s;
    animation-delay: -49s;
    transform-origin: 0vw -3vh;
    box-shadow: -86vmin 0 10.84425843313441vmin currentColor;
  }
  .background span:nth-child(9) {
    color: #008ea1;
    top: 89%;
    left: 34%;
    animation-duration: 225s;
    animation-delay: -22s;
    transform-origin: 21vw 6vh;
    box-shadow: -86vmin 0 11.045602586623202vmin currentColor;
  }
  .background span:nth-child(10) {
    color: #008ea1;
    top: 94%;
    left: 28%;
    animation-duration: 152s;
    animation-delay: -167s;
    transform-origin: -17vw -12vh;
    box-shadow: 86vmin 0 11.428836548961051vmin currentColor;
  }
  .background span:nth-child(11) {
    color: #008ea1;
    top: 60%;
    left: 54%;
    animation-duration: 226s;
    animation-delay: -107s;
    transform-origin: 3vw -16vh;
    box-shadow: -86vmin 0 11.188157147085981vmin currentColor;
  }
  .background span:nth-child(12) {
    color: #008ea1;
    top: 62%;
    left: 37%;
    animation-duration: 176s;
    animation-delay: -14s;
    transform-origin: 17vw -1vh;
    box-shadow: -86vmin 0 11.51032131087022vmin currentColor;
  }
}

/* HEADER E NAVBAR */

.header {
  background-color: transparent;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;

  display: flex;
  align-items: center;
  height: 60px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  order: 1;
}

.logo {
  width: auto;
  height: 40px;
}

.hamburger-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  position: relative;
  width: 3rem;
  order: 3;
}

.hamburger-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 25px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.close-icon {
  opacity: 0;
}

.hamburger-btn.open .hamburger-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.hamburger-btn.open .close-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.nav-list {
  display: none;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  gap: 35px;
  background-color: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-list.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.nav-link {
  display: flex;
  text-decoration: none;
  list-style: none;
  color: var(--color-grey-01);
}

.nav-links {
  order: 2;
}

.nav-item {
  text-decoration: none;
  list-style: none;
}

/* HERO */

.hero-section {
  display: flex;
  max-width: 100%;
  height: calc(100vh - 60px);
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;

  /* background: linear-gradient(#000000, #008fa2); */
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: var(--h1-size-mobile);
  line-height: 1.2;
  color: var(--color-grey-01);
  margin-bottom: 20px;
}

.highlights {
  font-weight: 700;
  color: var(--color-green-01);
}

.hero-description {
  font-size: var(--p-size-mobile);
  line-height: 1.5;
  color: var(--color-grey-01);
  margin-bottom: 20px;
}

.hero-cta {
  background-color: var(--color-green-01);
  width: 50%;
  display: inline-flex;
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-green-01);
  border-radius: 5px;
  transition: all 0.2s linear;
}

.cta-button {
  color: var(--color-grey-01);
  font-size: var(--p-size-mobile);
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.hero-cta:hover {
  background-color: transparent;
  box-shadow: none;
  border: 1px solid var(--color-grey-01);
}

/* SERVICES */

.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 50px;
  padding-bottom: 50px;

  background-color: var(--color-grey-01);
}

.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-title {
  font-size: var(--h2-size-mobile);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-black-02);
}

.services-description {
  font-size: var(--p-service-size-mobile);
  line-height: 1.2;
  color: var(--color-black-02);
  text-align: center;
}

.services-divider {
  width: 80%;
  border: none;
  height: 1px;
  background-color: var(--color-grey-03);
  margin: 20px 0;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-item {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
  gap: 10px;
  border: 1px solid var(--color-grey-03);
  border-radius: 5px;
  max-width: 100%;
  align-items: center;
  text-align: center;
}

.service-item:hover {
  background-color: rgba(0, 143, 162, 0.04);
  border: 1.5px solid var(--color-green-01);

  transition: all 0.2s linear;
}

.service-icon {
  width: 30px;
  height: 30px;
}

.service-item-title {
  font-size: var(--h3-size-mobile);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-black-02);
}

.service-item-description {
  font-size: var(--p-service-size-mobile);
  line-height: 1.5;
  color: var(--color-black-02);
}

/* CONTACT */

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 50px;
  padding-bottom: 50px;

  background-color: white;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info {
  margin-bottom: 50px;
}

.contact-title {
  font-size: var(--h2-size-mobile);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-green-01);
  text-align: center;

  margin-bottom: 10px;
}

.contact-description {
  font-size: var(--p-contact-size-mobile);
  line-height: 1.2;
  color: var(--color-black-02);
  text-align: center;

  margin-bottom: 25px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.contact-icon {
  width: 22px;
  height: 22px;
}

.contact-text {
  font-size: var(--p-contact-size-mobile);
  line-height: 1.5;
  color: var(--color-black-02);
}

.contact-text:hover {
  color: var(--color-green-01);
  font-weight: 400;
  transition: all 0.2s linear;
}

/* FORM */

.contact-form-container {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-bg-form);
  padding: 20px;
  border-radius: 10px;

  box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.3);
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-label {
  font-size: 15px;
  line-height: 1.5;
}

.form-input {
  max-width: 100%;
  padding: 5px;
  height: 18px;
  border: 1px solid var(--color-border-form);
  border-radius: 5px;
  margin-bottom: 20px;

  font-size: 13px;
  color: var(--color-black-02);
}

.form-mail-status {
  max-width: 100%;
  padding: 5px;
  height: 18px;
  margin-bottom: 16px;

  font-size: 13px;
  color: var(--color-black-02);
}

.form-mail-status .error{

  color: red
}

.form-textarea {
  max-width: 100%;
  padding: 5px;
  height: 100px;
  border: 1px solid var(--color-border-form);
  border-radius: 5px;

  margin-bottom: 20px;

  font-size: 13px;
  color: var(--color-black-02);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border: 1.5px solid var(--color-green-01);
}

.btn-submit {
  display: inline-block;
  background-color: var(--color-green-01);
  color: var(--color-grey-01);
  font-size: var(--p-contact-size-mobile);
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;

  transition: all 0.2s linear;
}

.btn-submit:hover {
  background-color: transparent;
  color: var(--color-grey-03);
  border: 1px solid var(--color-grey-03);
  transform: translateY(2px);
}

/* FOOTER */

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: var(--color-black-01);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-logo-info {
  display: flex;
  row-gap: 25px;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 160px;
  height: auto;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-icon {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  transform: translateY(2px);
  transition: all 0.2s linear;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-links-text {
  font-size: var(--p-footer-size-mobile);
  color: var(--color-grey-01);
  text-decoration: none;
}

.footer-links-text:hover {
  color: var(--color-green-01);
  font-weight: 500;
  transition: all 0.2s linear;
}

.footer-copy {
  font-size: var(--p-copy-footer-size-mobile);
  line-height: 1.5;
  color: var(--color-grey-01);
  text-align: center;
}

@media (min-width: 720px) {
  /* HEADER E NAV */

  .header {
    padding-left: 60px;
    padding-right: 60px;
  }

  /* HERO */

  .hero-section {
    padding-left: 60px;
    padding-right: 60px;
  }

  .hero-title {
    font-size: var(--h1-size-tablet);
  }

  .hero-cta {
    padding: 12px;
  }

  /* SERVICES */

  .services-section {
    padding-left: 60px;
    padding-right: 60px;
  }

  .service-item {
    width: 40%;
  }

  /* CONTACT */

  .contact-section {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (min-width: 1140px) {
  /* HEADER E NAV */

  .header {
    padding-left: 100px;
    padding-right: 100px;
    height: 80px;
  }

  .navbar {
    width: 1140px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    content: url(/assets/images/logo-timm-software.svg);
    width: 180px;
    height: auto;
  }

  .hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger-icon {
    display: none;
  }

  .nav-links {
    display: block;
  }

  .nav-list {
    display: flex;
    visibility: visible;
    opacity: 1;
    list-style: none;
    position: static;
    flex-direction: row;
    height: auto;
    background-color: transparent;
    gap: 35px;
    padding: 0;
  }

  .nav-link {
    display: inline-block;
    color: var(--color-grey-01);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s linear;
  }

  .nav-link:hover {
    transform: translateY(2px);
    color: var(--color-green-01);
  }

  /* HERO */

  .hero-section {
    padding-left: 100px;
    padding-right: 100px;
    height: calc(100vh - 80px);
  }

  .hero-content {
    width: 1140px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: var(--h1-size-desktop);
    width: 50%;
    white-space: wrap;

    margin-bottom: 30px;
  }

  .hero-description {
    font-size: var(--p-size-desktop);
    width: 50%;
    white-space: wrap;

    margin-bottom: 30px;
  }

  .hero-cta {
    padding: 10px;
    width: 22%;
  }

  .cta-button {
    font-size: 15px;
  }

  /* SERVICES */

  .services-section {
    padding-left: 100px;
    padding-right: 100px;
    height: 100vh;
  }

  .services-header {
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
  }

  .services-list {
    gap: 30px;
  }

  .services-title {
    font-size: var(--h2-size-desktop);
    font-weight: 700;
  }

  .services-description {
    font-size: var(--p-description-services-size-desktop);
  }

  .services-divider {
    margin-top: 5%;
    margin-bottom: 5%;
  }

  .service-item {
    width: 25%;
  }

  .service-item {
    align-items: start;
    text-align: left;
  }

  .service-item-title {
    font-size: var(--h3-size-desktop);
  }

  .service-item-description {
    font-size: var(--p-service-size-desktop);
  }

  /* CONTACT */

  .contact-section {
    padding-left: 100px;
    padding-right: 100px;
    height: 60vh;
  }

  .contact-container {
    flex-direction: row;
    column-gap: 200px;
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
  }

  .contact-info {
    width: 50%;
    margin-bottom: 0px;
  }

  .contact-title {
    font-size: var(--h2-size-desktop);
    font-weight: 700;
    line-height: 1;
    text-align: left;
    margin-bottom: 30px;
  }

  .contact-description {
    font-size: var(--p-contact-size-desktop);
    font-weight: 300;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 40px;
  }

  .contact-details {
    align-items: start;
    text-align: left;
  }

  .contact-text {
    font-size: var(--p-contact-size-desktop);
    font-weight: 300;
  }

  .contact-form-container {
    width: 50%;
  }

  .form-label {
    font-size: 18px;
    font-weight: 300;
  }

  .form-input {
    font-size: 14px;
    font-weight: 300;
  }

  .form-mail-status {
    font-size: 14px;
    font-weight: 300;
  }

  .form-textarea {
    font-size: 14px;
    font-weight: 300;
  }
  .btn-submit {
    font-size: 18px;
  }

  /* FOOTER */

  .footer-section {
    padding-left: 100px;
    padding-right: 100px;
    flex-direction: row;
    height: 200px;
  }

  .footer-container {
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-logo-info {
    align-items: start;
    width: 50%;
  }

  .footer-logo {
    width: 180px;
    height: auto;
  }

  .footer-info {
    width: 50%;
    align-items: end;
    gap: 20px;
  }

  .footer-links {
    align-items: end;
    gap: 8px;
  }

  .footer-links-text {
    font-size: var(--p-footer-size-desktop);
  }

  .footer-copy {
    font-size: var(--p-copy-footer-size-desktop);
    font-weight: 300;
    text-align: end;
  }
}
