:root {
  --text-color: #111;
  --secondary-text-color: #666;
  --secondary-color: #fff;
  --tertiary-color: #fffbf5;
  --primary: #0096c7;
  --gray: #444;
  --lightgray: #e4e4e4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

ul,
ol {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-size: 1rem;
  /* background-color: #faf5ea; */
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-family: 'Figtree';
}

.app-container {
  overflow-y: scroll;
  /* scroll-snap-type: y proximity; */
  height: 100vh;
  scroll-behavior: smooth;
  perspective: 20px;
  overflow-x: hidden;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100px;
  transition: all 0.3s ease;
  &:hover {
    opacity: 0.8;
    transform: translateX(3px);
  }
  img {
    width: 100%;
  }
}

.hero {
  color: white;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transform-style: preserve-3d;
  background: #fafafa;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, 0.58) 30%,
    transparent 100%
  );

  @media (max-width: 768px) {
    height: auto;
    flex-direction: column;
  }

  .bg {
    background-image: url('https://images.unsplash.com/photo-1620287341056-49a2f1ab2fdc?q=80&w=1260&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translateZ(-10px) scale(1.6);
    z-index: 0;

    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(255, 255, 255, 0.9) 100%
      );
    }
  }

  /* scroll-snap-align: start; */
  .hero-content {
    padding-left: 2rem;
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* max-width: 50rem; */
    flex: 1;

    @media (max-width: 768px) {
      padding: 5rem 2rem 0 2rem;
      align-items: center;
      justify-content: center;
      /* padding-top: 2rem; */
    }

    .hero-title {
      color: #111;
      font-family: 'Figtree';
      font-size: 3rem;
      line-height: 1.2;
      font-weight: 400;
      text-align: center;
    }
    p {
      color: #111;
      font-size: 1.5rem;
      max-width: 56rem;
      text-align: center;
      /* font-family: 'Figtree'; */
    }

    @media (max-width: 768px) {
      font-size: 2rem;
    }
  }
  .hero-button {
    font-size: 1.125rem;
  }

  .image-bg {
    background: rgba(255, 255, 255, 0.1); /* branco transparente */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* para compatibilidade */
    border-radius: 12px;
    padding: 1rem;
  }
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 4rem;
    img {
      width: 70%;
      height: 100%;
      object-fit: cover;
      transition: all 0.3s ease;
    }

    justify-content: flex-end;
  }
}

.contact-section {
  .social-icons {
    display: flex;
    gap: 2rem;
    a {
      color: var(--text-color);
      font-size: 1.2rem;
      display: block;
      display: flex;
      font-weight: 500;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-decoration: none;
      gap: 0.5rem;
      transition: all 0.3s ease;
      &:hover {
        opacity: 0.8;
        transform: translateY(-3px);
      }
    }
    img {
      width: 30px;
      height: 30px;
    }
  }
}

.main-title {
  font-family: 'Figtree';
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 400;
  @media (max-width: 768px) {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  &.lg {
    font-size: 4rem;

    @media (max-width: 768px) {
      font-size: 2.5rem;
    }
  }
}

.main-description {
  font-size: 1.2rem;
  color: var(--secondary-text-color);
  margin-top: 1rem;
  font-weight: 400;
}

.content-block {
  height: 100vh;
  scroll-snap-align: start;
  scroll-behavior: smooth;
}

header {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: #fff;

  @media (max-width: 768px) {
  }

  nav {
    ul {
      display: flex;
      gap: 2rem;
      align-items: center;

      @media (max-width: 768px) {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
      }

      li {
        display: block;
        a {
          color: var(--text-color);
          text-decoration: none;
          font-size: 1rem;
          transition: all 0.3s ease;
          transform: translateY(0);
          font-family: 'Figtree';
          display: block;
          font-weight: 500;

          &:hover {
            color: var(--primary);
          }

          @media (max-width: 768px) {
            font-size: 1.5rem;
            color: var(--text-color);
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    position: fixed;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    top: 0;
    left: 0;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.2); */
    background-color: rgba(0, 150, 199, 0.1);
    backdrop-filter: blur(10px);

    transform: translateX(100%);
    transition: all 0.3s ease;
    .logo {
      display: none;
    }
    &.active {
      transform: translateX(0);
    }
    li {
      a {
        color: var(--primary);
      }
    }
  }
}

.container {
  height: 100vh;
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: #fff;
}

.container-inner {
  padding: 0 2rem;
  width: 100%;
  display: flex;

  @media (max-width: 768px) {
    flex-direction: column;
    padding: 0;
  }
}

#about {
  background-color: #f6f6f6;
  transform: translateY(0);
  img {
    aspect-ratio: 9 / 16;
    max-width: 330px;
    object-fit: cover;
    border-radius: 1rem;
    transform: skew(-10deg);
    transition: all 0.3s ease;
    animation: autoShowskewAnim both;
    animation-timeline: view(70% 5%);

    @media (max-width: 768px) {
      aspect-ratio: 1 / 1;
    }
    &:hover {
      transform: skew(-10deg) scale(1.1);
    }
    justify-self: flex-end;
  }
  display: none;
}

.about-section {
  width: 100%;
  background-color: rgb(250, 250, 250);
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  padding: 5rem 0;
  transform: translateY(0);
  .about-title {
    color: var(--text-color);
  }
  height: 100%;
}

.about-content {
  display: flex;
}

.parallax-content {
  animation: pullUp linear forwards;
  animation-timeline: scroll();
  animation-range: entry 0% exit 100%;
}

@keyframes pullUp {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(-80px);
  }
}

.blur-el {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  height: 90px;

  backdrop-filter: blur(10px);

  /* Máscara para sumir suavemente no topo */
  mask: linear-gradient(to top, black, transparent);
}

.mid-content-section {
  display: flex;
  align-items: center;
  /* gap: 2rem; */
  padding: 5rem 0 0;
  .mid-content-left,
  .mid-content-right {
    flex: 1;
  }

  @media (max-width: 768px) {
    width: 100%;
    padding: 2rem;
  }

  .images-container {
    display: flex;
    gap: 3rem;
    align-items: center;

    @media (max-width: 768px) {
      flex-direction: column;
    }
    img {
      aspect-ratio: 9 / 16;
      max-width: 330px;
      object-fit: cover;
      border-radius: 0.2rem;
      transform: skew(-10deg);
      transition: all 0.3s ease;
      animation: autoShowskewAnim both;
      animation-timeline: view(70% 5%);
      /* animation-range-start: contain;
      animation-range-end: cover; */
      /* &:hover {
        transform: skew(-10deg) scale(1.1);
      } */
      @media (max-width: 768px) {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
      }
    }
  }

  .mid-content-left {
    .images-container {
      justify-content: flex-start;
    }
  }

  .mid-content-right {
    .images-container {
      justify-content: flex-end;
    }
  }

  .container-inner {
    display: flex;
    gap: 3rem;
    align-items: center;
  }
}

.services {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  grid-template-columns: repeat(3, minmax(300px, 1fr));

  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(1, minmax(300px, 1fr));
  }

  .service {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 6px;
    background-color: rgb(248, 246, 244, 0.4);
    border: solid 1px #f1f1f1;

    /* height: 200px; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* overflow: hidden; */

    transition: all 0.5s ease;
    &:hover {
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
      transform: translateY(-3px);
    }

    .service-title {
      font-size: 1.5rem;
      font-weight: 500;
      color: #111;
      text-align: center;
    }
    .service-description,
    p {
      font-size: 1.2rem;
      color: var(--secondary-text-color);
      text-align: center;
    }
  }
  .service-icon {
    font-size: 2.5rem;
    /* border: solid 1px #ccc; */

    svg {
      stroke: var(--lightgray);
    }
  }
}

.contact-section {
  /* padding: 0 2rem; */
  padding: 5rem 0;
}

@keyframes autoShowskewAnim {
  from {
    transform: skew(-10deg);
  }
  to {
    transform: skew(0deg);
  }
}

/* helpers */

.tac {
  text-align: center;
}

.btn {
  padding: 1rem 1.8rem;
  border-radius: 6px;
  background-color: #ccc;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  /* text-transform: uppercase; */
  font-family: 'Figtree';
  transition: all 0.3s ease;
  font-size: 1.125rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  display: inline-block;

  &:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    transform: translateY(-3px);
  }

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

.text-primary {
  color: var(--primary);
}

.items-center {
  display: flex;
  align-items: center;
}
.items-start {
  display: flex;
  align-items: flex-start;
}
.gap-1 {
  gap: 1rem;
}
.gap-2 {
  gap: 2rem;
}
.gap-3 {
  gap: 3rem;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* estado inicial: invisível e levemente deslocado para baixo */
.reveal {
  opacity: 0;
  transform: translateY(-30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

/* quando a classe .visible for adicionada, anima para o estado final */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 10;
  position: absolute;
  top: 2rem;
  right: 2rem;
}
.hamburger.active {
  span {
    &:first-child {
      transform: translateY(9px) rotate(45deg);
    }

    &:nth-child(2) {
      opacity: 0;
    }

    &:last-child {
      transform: translateY(-9px) rotate(-45deg);
    }
  }
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  position: absolute;
  transition: transform 0.3s ease;

  &:first-child {
    top: 0;
  }

  &:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  &:last-child {
    bottom: 0;
  }

  &.active {
    span {
      &:first-child {
        transform: translateY(9px) rotate(45deg);
      }

      &:nth-child(2) {
        opacity: 0;
      }

      &:last-child {
        transform: translateY(-9px) rotate(-45deg);
      }
    }
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

.d-flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.max-w-screen-xl {
  max-width: 1200px;
  margin: 0 auto;
}

.max-w-screen-sm {
  max-width: 40rem;
  margin: 0 auto;
}
