.portfolio-grid {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;

    /* 4 colunas no desktop, cai para 2 no tablet e 1 no mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-item {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;

    /* proporção 16:9 – ajuste se quiser 4:3 use 75% */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}

/* delay crescente para cada item */
.portfolio-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* … continue conforme precisar */
@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* nao mexer daqui pra cima */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  text-decoration: none;
  z-index: 9999;
  animation: fadeInUp 0.5s ease-out;
}

.whatsapp-icon {
  background: rgba(170, 37, 211, 0.2); /* 80% transparente */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: transform 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.05);
}

.whatsapp-icon img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.badge {
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 3px 6px;
  position: absolute;
  top: -5px;
  right: -5px;
  animation: pulse 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
