/* SEÇÃO PORTFÓLIO - VERSÃO COM ANIMAÇÃO PURA EM CSS */

.portfolio-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
}

.portifolio-sec {
  width: 90%;
  background-color: rgb(241, 235, 235);
  margin-bottom: 6rem;
  padding-bottom: 6rem;
  border-radius: 15px;
  overflow: hidden; /* ESSA É A LINHA QUE FAZ OS CARDS SUMIREM NAS BORDAS */
  position: relative;

  object-fit: contain;
}

.textoPortifolio {
  display: flex;
  align-items: center;
  flex-direction: column;

  margin-bottom: 4rem;
}

.textoPortifolio h4 {
  font-size: 1.4rem;
}

/* Efeito de sombra suave nas bordas */

.section-title2 {
  text-align: center;
  font-size: 2.8rem;
  margin-top: 4rem;
  color: #f97316;
}

/* === MUDANÇAS PRINCIPAIS AQUI === */

.portfolio-carousel-container {
  /* Removemos a linha 'animation' daqui */
  display: flex;
  flex-wrap: nowrap;
  cursor: grab;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
}

.portfolio-carousel-container:active {
  cursor: grabbing;
}

.portfolio-carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* 2. OS CARDS INDIVIDUAIS */
.portfolio-item {
  /* NOVO: Impede que os cards sejam "espremidos" */
  flex-shrink: 0;

  width: 300px;
  margin: 0 15px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* === O RESTANTE DO CÓDIGO PERMANECE IGUAL === */

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  pointer-events: none;
  user-drag: none; /* Safari */
  -webkit-user-drag: none; /* Chrome */
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}
