@import url("./global.css");
@import url("./header.css");
@import url("./introducao.css");
@import url("./sobre.css");
@import url("./habilidade.css");
@import url("./projetos.css");
@import url("./rodape.css");

/* Celular pequeno */
@media (min-width: 320px) and (max-width: 479px) {
  .banner {
    align-content: center;
  }

  .detalhe::before {
    display: none;
  }

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

  .projetos h2 {
    text-align: center;
  }

  .sobre h2,
  .habilidade h2,
  .projetos h2 {
    font-size: 2rem !important;
  }
}

/* Celular */
@media (max-width: 480px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    align-items: center;
    justify-items: stretch;

    min-height: 6rem;
    height: auto;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .header p {
    grid-column: 1;
    justify-self: center;
    width: auto;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .header p::before {
    display: none;
  }

  .hamburger {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    background: #a99bed;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .hamburger span {
    position: relative;
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .hamburger span::before,
  .hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .hamburger span::before {
    top: -8px;
  }

  .hamburger span::after {
    top: 8px;
  }

  .hamburger:hover {
    background: #8a75d2;
  }

  .hamburger[aria-expanded="true"] span {
    background: transparent;
  }

  .hamburger[aria-expanded="true"] span::before {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger[aria-expanded="true"] span::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
    display: none;
  }

  .menu-open .header nav {
    display: block;
  }

  .header-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100%, 360px);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    background: #8877dd54;
    border-radius: 1rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }

  .header-menu li {
    width: 100%;
  }

  .header-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    background: #a99bed;
    color: #fff;
    border-radius: 0.75rem;
  }

  .header-menu a:hover {
    background: #8a75d2;
  }

  .header-menu li {
    width: 100%;
  }

  .header-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    background: #a99bed;
  }

  .banner {
    padding: 0;
  }

  .banner-foto {
    width: 100%;
    max-width: 250px;
    margin: 0 0;
  }

  .banner-introducao {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    padding: 0 1rem;
  }

  .banner h1 {
    font-size: 1.7rem;
    justify-content:;
  }

  .banner h1::after {
    display: none;
  }

  .banner .botao {
    margin: 1rem auto;
    width: fit-content;
  }

  .sobre {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 1rem;
    height: 90%;
  }

  .sobre h2 {
    font-size: 2rem;
  }

  .sobre p {
    font-size: 1.2rem;
    letter-spacing: 0.2px;
    line-height: 32px;
    padding: 0 0;
    max-width: 100%;
  }

  .habilidade {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 1rem;
    height: auto;
  }

  .habilidade h2 {
    grid-column: 1;
    width: auto;
    font-size: 2.5rem;
    text-align: center;
  }

  .habilidade ul {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    padding: 0;
  }

  .habilidade li {
    font-size: 1.3rem;
    padding: 1rem 2rem;
    width: 100%;
  }

  .rodape__conteudo {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .rodape__texto p {
    font-size: 1.2rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .rodape__contatos li a {
    font-size: 1.2rem;
  }
}

/* Celular grande */
@media (min-width: 481px) and (max-width: 768px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    align-items: center;
    justify-items: stretch;

    min-height: 6rem;
    height: auto;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .header p {
    grid-column: 1;
    justify-self: center;
    width: auto;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .header p::before {
    display: none;
  }

  .hamburger {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    background: #a99bed;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .hamburger span {
    position: relative;
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .hamburger span::before,
  .hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .hamburger span::before {
    top: -8px;
  }

  .hamburger span::after {
    top: 8px;
  }

  .hamburger:hover {
    background: #8a75d2;
  }

  .hamburger[aria-expanded="true"] span {
    background: transparent;
  }

  .hamburger[aria-expanded="true"] span::before {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger[aria-expanded="true"] span::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
    display: none;
  }

  .menu-open .header nav {
    display: block;
  }

  .header-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    background: #8877dd54;
    border-radius: 1rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }

  .header-menu li {
    width: 100%;
  }

  .header-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    background: #a99bed;
  }

  .banner {
    padding: 0;
    gap: 1rem;
  }

  .banner-foto {
    width: 100%;
    max-width: 250px;
    margin: 0 0;
  }

  .banner-introducao {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    padding: 0 1rem;
  }

  .banner h1 {
    font-size: 1.7rem;
    justify-content:;
  }

  .banner h1::after {
    display: none;
  }

  .banner .botao {
    margin: 1rem auto;
    width: fit-content;
  }

  .sobre {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 1rem;
    height: 80vh;
  }

  .sobre h2 {
    font-size: 2rem;
  }

  .sobre p {
    font-size: 1.2rem;
    letter-spacing: 0.2px;
    line-height: 32px;
    padding: 0 0;
    max-width: 100%;
  }

  .detalhe::before {
    display: none;
  }

  .habilidade {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 1rem;
    height: auto;
  }

  .habilidade h2 {
    grid-column: 1;
    width: auto;
    font-size: 2.5rem;
    text-align: center;
  }

  .habilidade ul {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    padding: 0;
  }

  .habilidade li {
    font-size: 1.3rem;
    padding: 1rem 2rem;
    width: 100%;
  }

  .rodape__conteudo {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .rodape__texto p {
    font-size: 1.2rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .rodape__contatos li a {
    font-size: 1.2rem;
  }
}

/* Tablet / Notebook pequeno */
@media (min-width: 769px) and (max-width: 1000px) {
  .header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    align-items: center;
    justify-items: center;

    min-height: 6rem;
    height: auto;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .header p {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    text-align: center;
    display: block;
  }

  .header p::before {
    display: none;
  }

  .header nav {
    grid-column: 1;
    width: 100%;
    justify-self: center;
  }

  .header-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    justify-items: center;
    align-items: center;
  }

  .header-menu li {
    width: 100%;
  }

  .header-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    background: #a99bed;
  }

  .banner {
    padding: 0;
    gap: 1rem;
  }

  .banner-foto {
    width: 100%;
    max-width: 250px;
    margin: 0 0;
  }

  .banner-introducao {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    padding: 0 1rem;
  }

  .banner h1 {
    font-size: 1.7rem;
    justify-content:;
  }

  .banner h1::after {
    display: none;
  }

  .banner .botao {
    margin: 1rem auto;
    width: fit-content;
  }

  .sobre {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 1rem;
    height: 80vh;
  }

  .sobre h2 {
    font-size: 2rem;
  }

  .sobre p {
    font-size: 1.2rem;
    letter-spacing: 0.2px;
    line-height: 32px;
    padding: 0 0;
    max-width: 100%;
  }

  .detalhe::before {
    display: none;
  }

  .habilidade {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 1rem;
    height: auto;
  }

  .habilidade h2 {
    grid-column: 1;
    width: auto;
    font-size: 2.5rem;
    text-align: center;
  }

  .habilidade ul {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    padding: 0;
  }

  .habilidade li {
    font-size: 1.3rem;
    padding: 1rem 2rem;
    width: 100%;
  }

  .rodape__conteudo {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .rodape__texto p {
    font-size: 1.2rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .rodape__contatos li a {
    font-size: 1.2rem;
  }
}

/* Notebook */
@media (min-width: 1001px) and (max-width: 1280px) {
  .header a {
    font-size: 1.1rem;
  }

  .banner h1 {
    font-size: 3rem;
  }

  .banner h1::after {
    display: none;
  }

  .sobre h2 {
    font-size: 2.5rem;
  }

  .sobre p {
    font-size: 1.7rem;
    letter-spacing: 0.2px;
    line-height: 32px;
    padding: 0 0;
    max-width: 100%;
  }

  .detalhe::before {
    display: none;
  }

  .habilidade h2 {
    font-size: 3.5rem;
  }

  .habilidade li {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    width: 100%;
  }
}

/* Desktop */
@media (min-width: 1281px) {
  .banner h1 {
    font-size: 4.2rem;
  }

  .banner h1::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 100%;
    width: 100%;
    height: 10px;
    background: #a99bed;
    background: linear-gradient(to right, #8877dd, #3f3d5600);
    opacity: 0;
    z-index: -1;
    transform-origin: left center;
    animation: underline-in 3s ease-out forwards;
  }
}

.hidden {
  opacity: 0;
  filter: blur(15px);
  transform: translateX(-10%);
  transition: all 4s;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
  transition: all 2s;
}

.hiddenCards {
  opacity: 0;
  filter: blur(15px);
  transform: translateX(-50%);
  transition: all 2s;
}

.cardsProjetos.show .hiddenCards {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.cardsProjetos.show .hiddenCards:nth-child(1) {
  transition-delay: 0s;
}

.cardsProjetos.show .hiddenCards:nth-child(2) {
  transition-delay: 400ms;
}

.cardsProjetos.show .hiddenCards:nth-child(3) {
  transition-delay: 700ms;
}

.cardsProjetos.show .hiddenCards:nth-child(4) {
  transition-delay: 1000ms;
}
