@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("/styles/variables.css");
@import url("/styles/icons-definition.css");
@import url("/styles/letter-animation_group1.css");
@import url("/styles/letter-animation_group2.css");

* {
  padding: 0;
  border: none;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  height: 100dvh;
  font-family: "Poppins", sans-serif;
  background: var(--bg-image) no-repeat center / cover fixed;
  transition: all 0.8s ease;
  background-color: var(--bg-color);
}

.main {
  max-width: 1600px;
  margin: 0 auto;
  height: inherit;
  padding: 0;
}

@media (max-width: 1600px) {
  .main {
    padding: 0 15px;
  }
}

.container {
  width: 100%;
  display: flex;
  height: inherit;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 100px 0px;
}

.toggle-theme {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  background: none;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border: 0.5px solid var(--border-color);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;

  .toggle-theme__icon {
    font-size: 1.15rem;
    color: var(--second-color);
  }

  &:hover {
    transform: scale(0.95);
    transition: all 300ms;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  }
}

/* logo block */
.logo {
  width: 100%;
  max-width: 1100px;
  position: relative;
  color: var(--primary-color);

  .logo__img {
    width: 100%;
    aspect-ratio: 1345 / 247;
    animation: logo_fade-in 1s ease forwards;
  }

  .logo__selo-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 12.73%;
    aspect-ratio: 172 / 193;
    z-index: 99;
  }

  .logo__selo-overlay:active {
    cursor: var(--cursorA);
  }

  .logo__selo-overlay:active ~ .logo__img {
    animation: logo_fade-out 1s ease forwards;
  }
}

@keyframes logo_fade-in { 0% { opacity: 0.15; } 100% { opacity: 1; } }
@keyframes logo_fade-out { 0% { opacity: 1; } 100% { opacity: 0.15; } }


/* social-links block */
.social-links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  align-items: center;

  .social-links__item {
    min-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    border-top: 2px solid transparent;

    .tooltip {
      width: 2px;
      height: 200px;
      background-color: var(--second-color);
      position: absolute;
      right: 5vw;
      top: -200px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
      white-space: nowrap;
    }

    .tooltip::before {
      position: absolute;
      content: "";
      width: 2px;
      height: 100px;
      background-color: var(--second-color);
      right: 36px;
      bottom: 185px;
      transform: rotate(-45deg);
    }

    .tooltip::after {
      position: absolute;
      content: "Acesse meu Portfólio";
      width: 200px;
      border-radius: 10px;
      height: 35px;
      background: var(--second-color);
      right: 70px;
      bottom: 250px;
      color: var(--third-color);
      text-align: center;
      align-content: center;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .social-links__item:hover .tooltip {
      opacity: 1;
    }
  }
  
  .social-links__item:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transform: scale(0.95);
    transition: all 500ms;
    
  }

  [href="https://alvarento.dev"]:hover  {
    border-color: var(--second-color);
  }
  

  .social-links__icon {
    width: min(50px, 10vw);
    aspect-ratio: 1;
    object-fit: cover;
  }

  .social-links__text {
    color: var(--primary-color);
    font-size: min(1.07rem, 4vw);
  }
}

@media screen and (max-width: 768px) {
  .social-links {
    flex-direction: column;
  }

  .social-links__item {
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  }
}
