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

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Parkinsans", sans-serif;
  font-weight: 700;
  color: var(--profundo);
  line-height: 1.35;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* ========== PRINCIPAL ========== */

main{
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4);
}

.conteudo{
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.titulos{
  color: var(--profundo);
}

.titulos h1{
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: 0.2px;
}

.titulos h2{
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  opacity: .9;
}

.redes{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  justify-content: center;
}

.redes li{
  background: var(--profundo);
  border-radius: var(--radius-pill);
}

.redes li a{
  display: inline-block;
  text-decoration: none;
  color: var(--neblina);
  font-weight: 500;
  padding: .65rem 1rem;
  font-size: clamp(.9rem, .7vw + .6rem, 1rem);
}

.botao{
  display: inline-flex;
}

.botao a, .botao{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--profundo);
  color: var(--neblina);
  font-weight: 500;
  font-size: clamp(.95rem, .9vw + .6rem, 1.05rem);
  text-decoration: none;
  cursor: pointer;
}

.botao a:focus-visible, .redes a:focus-visible{
  outline: 3px solid #a89eb3;
  outline-offset: 3px;
}

.foto{
  width: min(20vw, 520px);
  display: flex;
  justify-content: center;
}

.foto img{
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: clamp(36px, 5vw, 64px);
  object-fit: cover;
  object-position: center 20%;
}

/* ========== PROJETOS ========== */

section{
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#projetos{
  padding: clamp(2rem, 4vw, 4rem) 1rem;
  display: grid;
  place-content: center;
}

.projeto{
  width: min(500px, 92vw);
  margin-inline: auto;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: clamp(24px, 3vw, 72px);
  background: var(--menta);
}

.imagem{
  border-radius: clamp(16px, 2vw, 36px);
  overflow: clip;
}

.imagem img{
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: top;
}

.descricao{
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: clamp(16px, 2vw, 36px);
  background: var(--neblina);
}

.textos h3{
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 700;
  color: var(--profundo);
}

.textos p{
  font-size: clamp(0.95rem, 1vw, 1rem);
  font-weight: 500;
  color: var(--profundo);
}

.tags, .links{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
  list-style: none;
}

.tags li{
  padding: .35rem .6rem;
  border-radius: .6rem;
  font-size: clamp(.5rem, .5vw + .4rem, .6rem);
  font-weight: 500;
  background: var(--profundo);
  color: var(--neblina);
}

.links li{
  font-size: clamp(.9rem, .8vw + .5rem, 1rem);
  font-weight: 700;
}

.links a{
  color: var(--oceano);
  text-decoration: underline;
}

/* ========== HOVER ========== */

.redes li:hover{
  background: var(--neblina);
}

.redes a:hover{
  color: var(--profundo);
}

.botao:hover > a, .botao a:hover{
  background: var(--neblina);
  color: var(--profundo);
}

.botao:hover{
  background: var(--neblina);
}

.links a:hover{
  text-decoration: none;
}

/* ========== RESPONSIVO ========== */

@media (max-width: 1024px){
  main{
    flex-direction: column;
    padding-block: var(--space-4);
  }
  .foto{ width: min(60vw, 520px); }
}

@media (min-height: 900px){
  .foto img{ aspect-ratio: 4 / 5; }
}

@media (max-width: 680px){
  .redes li a{ padding: .6rem .9rem;
    font-size: clamp(.7rem, .6vw + .5rem, 0.8rem); }
  .botao a{ width: 100%; }
  .projeto{ padding: var(--space-2); }
}

@media (max-width: 680px){
  main{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "titulos"
      "foto"
      "redes"
      "botao";
    gap: var(--space-3);
    justify-items: center;
  }

  .conteudo{ display: contents; }
  .titulos{ grid-area: titulos; text-align: center; }
  .foto{ grid-area: foto; width: min(40vw, 480px); }
  .redes{ grid-area: redes; justify-content: center; }
  .botao{ grid-area: botao; width: min(420px, 100%); }
  .redes li a{ padding: .6rem .9rem; }
  .botao a{ width: 100%; }
}


/* ===== CARROSSEL DE PROJETOS ===== */
section#projetos.carousel{
  display: block;
  padding: clamp(2rem, 4vw, 4rem) 0;
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
}

#projetos .carousel-track{
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: clamp(1rem,2vw,2rem) clamp(5vw,10vw,12vw);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

#projetos .carousel-track::-webkit-scrollbar{ height:10px; }
#projetos .carousel-track::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.25);
  border-radius: 999px;
}

#projetos .carousel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#projetos .carousel-track::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

#projetos .projeto{
  flex: 0 0 72%;
  width: auto;
  margin-inline: 0; 
  scroll-snap-align: center;
  transition: transform .35s ease, opacity .35s ease, filter .35s ease;
  transform-origin: center center;
  opacity: .45;
  filter: saturate(.7);
}

@media (min-width: 900px){
  #projetos .projeto{ flex-basis: 56%; }
}

#projetos .projeto.is-current{
  opacity: 1;
  transform: scale(1.02);
  filter: none;
}
#projetos .projeto:not(.is-current){
  transform: scale(.9);
}

#projetos .carousel-nav{
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  border: 0;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
#projetos .carousel-nav:hover{ background: rgba(255,255,255,.9); }
#projetos .carousel-nav:focus-visible{ outline: 3px solid #a89eb3; outline-offset: 2px; }
#projetos .carousel-nav.prev{ left: clamp(.5rem, 3vw, 1rem); }
#projetos .carousel-nav.next{ right: clamp(.5rem, 3vw, 1rem); }
#projetos .carousel-nav svg{ width: 22px; height: 22px; }

/* #projetos .carousel-dots{
  position: absolute;
  left: 50%; bottom: .75rem; translate: -50% 0;
  display: flex; gap: .5rem;
}
#projetos .carousel-dots .dot{
  width: 8px; height: 8px; border-radius: 999px; border: 0;
  background: rgba(0,0,0,.25); cursor: pointer;
}
#projetos .carousel-dots .dot.is-active{
  width: 20px; border-radius: 999px; background: rgba(0,0,0,.6);
} */

@media (prefers-reduced-motion: reduce){
  #projetos .projeto{ transition: none; }
}

section#projetos.carousel { overflow-x: hidden; overflow-y: visible; }
#projetos .carousel-track { overflow-y: visible; }

#projetos .imagem{
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 24px;
}

#projetos .imagem img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}