/* ====== section====== */
/* Ajusta apenas a seção de portfolio/carousel */
#Novidades {
    margin: 0rem 0;      /* reduz o espaço acima e abaixo */
    padding: 1rem 0;     /* espaço interno da seção */
}

/* ===== MENU ===== */
.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  color: var(--title-color);
  transition: color 0.3s, text-shadow 0.3s;
}

.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 0 12px hsla(32, 100%, 50%, 0.8);
}
.nav__menu a.active-link {
  color: var(--first-color) !important; /* força a cor laranja */
  text-shadow: 0 0 12px hsla(32, 100%, 50%, 0.8); /* glow laranja */
}
/* ===== SUBMENU ===== */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--body-color);
  border: 2px solid var(--first-color);
  border-radius: 1.2rem;
  padding: 0.3rem 0;
  min-width: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 14px 48px hsla(32, 100%, 50%, 0.5);
  z-index: 200;
}

/* Mostrar submenu no hover (desktop) */
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Links do submenu */
.submenu__link {
  display: block;
  padding: 0.7rem 1.4rem;
  color: var(--title-color);
  transition: all 0.3s;
}

/* Hover laranja + glow */
.submenu__link:hover {
  color: var(--first-color);
  background: hsla(32, 100%, 50%, 0.1);
  box-shadow: inset 0 0 14px hsla(32, 100%, 50%, 0.5);
}
/*=============== CURSOR ===============*/
.cursor{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: var(--first-color-light);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--first-color);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: transform .2s ease-out, 
              left .2s ease-out,
              top .2s,
              width .2s,
              height .2s,
}

.hide-cursor{
  width: 0;
  height: 0;
}
/* ====== BUTTONS====== */
.buttons-wrapper {
    display: flex;
    flex-direction: column;

    gap: 1.5rem; /* espaço entre os botões e os ícones */
}

.buttons {
    display: flex;
    gap: 1rem; /* espaço entre os dois botões */
}

/* Blobs gerais */
.carousel {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background-color: var(--container-color);
  padding: 2rem;
}

/* Cada item precisa criar um contexto de empilhamento */
.carousel .item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

/* Blob decorativo (no topo e visível atrás do conteúdo) */
.carousel .blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
      rgba(247, 121, 3, 0.8) 0%,
      rgba(252, 129, 14, 0.6) 70%,
      rgba(255, 220, 120, 0) 100%);
  filter: blur(40px); /* menos blur = mais brilho */
  opacity: 0.9;       /* mais visível */
  z-index: 0;         /* atrás do conteúdo */
  animation: blobFloat 10s ease-in-out infinite alternate;
}

/* canto superior direito */
.carousel .blob-top-right {
  top: -50px;
  right: -50px;
}

/* canto inferior esquerdo */
.carousel .blob-bottom-left {
  bottom: -50px;
  left: -50px;
}

/* animação suave */
@keyframes blobFloat {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(15px, -15px);
  }
  100% {
    transform: scale(1.1) translate(0, 0);
  }
}


/* Garante que o conteúdo do carousel fique acima */
.carousel .list,
.carousel .content,
.carousel img {
  position: relative;
  z-index: 2;
}

/* Garante que imagem e texto fiquem acima dos blobs */
.carousel .item img,
.carousel .content {
  position: relative;
  z-index: 2;
}

.carousel__social {
    display: flex;
    gap: 2rem;  
    margin-top: 10px;         
}

.carousel__social-link {
  color: var(--title-color);
  font-size: 1.25rem;       /* aumenta o tamanho dos ícones, opcional */
  transition: transform 0.4s, color 0.4s;
}

.carousel__social-link:hover {
  color: var(--first-color);
  transform: translateY(-5px); /* leve efeito de "flutuar" ao passar o mouse */
}

/* ====== PROJETOS.CSS ====== */
body.page-projetos {
  background-color: var(--body-color);
  color: var(--text-color);
  font-family: var(--body-font);
  overflow-x: hidden;
}

.projects__title {
  text-align: center;
  color: var(--first-color);
  font-family: var(--second-font);
  font-size: 2rem;
  margin-top: 2rem;
}
/* carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  border-radius: 1rem;
}

.carousel .list {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel .list .item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.carousel .list .item.active {
  opacity: 1;
  z-index: 2;
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: var(--first-color)
}
.carousel .list .item .buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap; /* permite quebra se for preciso */
}

.buttons button {
    background-color: var(--body-color);
    border: 3px solid var(--first-color);
    color: var(--title-color);
    padding: 0.8rem 1rem;
    box-shadow: 0 8px 32px hsl(32, 100%, 70%),
                inset 8px -8px 30px hsl(32, 100%, 50%);
    border-radius: 3rem;
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
    display: inline-flex;
    align-items: center;
    column-gap: 0.4rem;
    transition: box-shadow 0.4s;
    text-align: center;
    cursor: pointer;
    font-size: 13px
}

.buttons button i {
    font-weight: initial;
    font-size: 1rem;
}

.buttons button:hover {
    box-shadow: 0 8px 48px hsl(32, 100%, 0.7%),
                inset 8px -8px 30px hsl(32, 100%, 50%);
}

/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
      transition: transform 0.8s ease;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item::after {
  content: '';
  position: absolute;
  top: -5%;
  right: 0;
  width: 4px;
  height: 110%;
  background: linear-gradient(
    180deg,
    rgba(255, 165, 0, 0) 0%,
    hsl(39, 100%, 50%) 15%,
    hsl(25, 100%, 50%) 100%
  );
  filter: blur(1.5px);
  border-radius: 2px 0 0 2px;
  pointer-events: none;
  z-index: 10;
}

.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: black;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .item .content .title{
    font-weight: bold;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 58%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    z-index: 100;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons-wrapper {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .title{
    animation-delay: 1.2s;
}
.carousel .list .item:nth-child(1) .topic{
    animation-delay: 1.4s;
}
.carousel .list .item:nth-child(1) .des{
    animation-delay: 1.6s;
}
.carousel .list .item:nth-child(1) .content .buttons-wrapper { 
    animation-delay: 1.8s;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    width: 0;
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
@keyframes showThumbnail{
    to{
        width: 150px;
    }
}
.carousel.next .thumbnail{
    transform: translateX(150px);
    animation: tranformThumbnail .5s 1 forwards;
}

@keyframes transformThumbnail {
  to {
    transform: translateX(0);
  }
}

/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outImage{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    width: 0;
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons-wrapper{
    animation: contentOut 1.5s linear 1 forwards;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}

/* running time */
.time{
    width: 100%;
    height: 5px;
    background-color: var(--first-color);
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
      height: 4px;
}

.carousel.next .time,
.carousel.prev .time{
    width: 100%;
    animation: timeRunning 2s linear forwards;
}

@keyframes timeRunning{
    to{
        width:0 ;
    }
}

/* ====== MOBILE 320px ===== */
@media screen and (max-width: 320px) {

  /* ===== CONTAINER ===== */
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 0.2rem;
    margin-inline: auto;
    box-sizing: border-box;
  }

  /* MENU */
  .nav__menu { display: none; }
  .nav__menu.show { display: block; }
  .nav__list { flex-direction: column; gap: 0.5rem; }

  /* Submenu */
  .has-submenu .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    width: 100%;
    margin-top: 0.4rem;
  }
  .has-submenu:hover > .submenu,
  .has-submenu.submenu-open .submenu { display: block; }

  /* Botões */
  .buttons button {
    font-size: 0.4rem;
    padding: 0.3rem 0.4rem;
    column-gap: 0.2rem;
  }
  .buttons button i { font-size: 0.6rem; }

  /* Carousel */
   .carousel {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background-color: var(--container-color);
    padding: 1rem;
}

  .carousel .list .item .content {
    top: 5%; /* ainda mais para cima */
  }

  .carousel .list .item .content .title { font-size: 1rem; }
  .carousel .list .item .content .topic { font-size: 1.2rem; }
  .carousel .list .item .content .author { font-size: 0.8rem; letter-spacing: 2px; }
  .carousel .list .item .content .des { font-size: 0.5rem; line-height: 1rem; }

  /* Setas do carousel */
  .arrows { top: 82%; right: 50%; transform: translateX(50%); }

  /* Ícones sociais */
  .carousel__social { gap: 0.5rem; }
  .carousel__social-link { font-size: 0.75rem; }
   .carousel__social {
    margin-top: 0px; /* ainda mais próximo */
  }
}

@media screen and (max-width: 768px){

  /* ===== CONTAINER ===== */
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 0.5rem;
    margin-inline: auto;
    box-sizing: border-box;
  }

  /* MENU */
  .nav__menu { display: none; }
  .nav__menu.show { display: block; }
  .nav__list { flex-direction: column; gap: 1rem; }

  /* Submenu */
  .has-submenu .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    width: 100%;
    margin-top: 0.5rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .has-submenu:hover > .submenu,
  .has-submenu.submenu-open .submenu { display: block; }

  /* Botões */
  .buttons button {
    font-size: 0.4rem;
    padding: 0.4rem 0.5rem;
    column-gap: 0.2rem;
  }
  .buttons button i { font-size: 0.6rem; }

  /* Carousel */
  .carousel {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background-color: var(--container-color);
  padding: 1rem;
}

.carousel .list .item .content {
    top: 5%; /* ainda mais para cima */
  }
  .carousel .list .item .content .title { font-size: 1.2rem; }
  .carousel .list .item .content .topic { font-size: 1.5rem; }
  .carousel .list .item .content .author { font-size: 1rem; letter-spacing: 5px; }
  .carousel .list .item .content .des { font-size: 0.8rem; line-height: 1.2rem; }

  /* Setas do carousel */
  .arrows { top: 80%; right: 52%; }

  /* Ícones sociais */
  .carousel__social { gap: 1rem; }
  .carousel__social-link { font-size: 0.75rem; }
   .carousel__social {
    margin-top: 0px; 
  }
}

