@keyframes fadeInProj {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Filter tabs ---- */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.proj-filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1px solid #2a2a2a;
  border-radius: 50px;
  background: transparent;
  color: var(--gray);
  font-size: 0.85rem;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}

.proj-filter-btn:hover {
  border-color: var(--blue);
  color: var(--white);
}

.proj-filter-btn.active {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ---- Card image with hover overlay ---- */
.img-project {
  position: relative;
  background-color: var(--white);
  border-radius: 16px;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.img-project img {
  width: 130%;
  height: 130%;
  object-fit: contain;
  display: block;
  padding-top: 8%;
  transition: transform 0.4s ease;
}

.card-project:hover .img-project img {
  transform: scale(1.05);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.card-project:hover .img-overlay {
  opacity: 1;
}

.overlay-btn {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.overlay-btn:hover {
  transform: scale(1.15);
  background: #0056b3;
}

/* ---- Project type badge ---- */
.proj-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(0, 123, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(0, 123, 255, 0.2);
  margin-top: 1.2rem; /* Espaço para não grudar na imagem */
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---- Card title ---- */
.text-project h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.3rem 0 0.4rem;
  font-family: "Montserrat", sans-serif;
}

/* ---- Remove old span style for type (now badge) ---- */
.text-project > span {
  display: none;
}

/* ---- API chip (replace icon approach) ---- */
.api-chip {
  font-size: 0.75rem;
  color: var(--gray);
  border: 1px solid #2a2a2a;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* ---- Btn with arrow icon ---- */
.btn-project a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 0.65rem;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    background-color 0.25s,
    gap 0.2s;
  text-decoration: none;
}

.btn-project a:hover {
  background-color: #0056b3;
  gap: 0.7rem;
}

.btn-project a i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.btn-project a:hover i {
  transform: translateX(3px);
}

/* ---- Card hover border glow ---- */
.card-project {
  border: 1px solid transparent;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card-project:hover {
  transform: translateY(-6px);
  border-color: #1e1e1e;
  box-shadow: 0 12px 40px rgba(0, 123, 255, 0.07);
}

/* ---- Store buttons (Play Store + App Store lado a lado) ---- */
.btn-stores {
  display: flex;
  gap: 0.5rem;
}

.btn-stores a {
  flex: 1;
}

/* ---- Empty state ---- */
.proj-empty {
  width: 100%;
  padding: 4rem 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gray);
}

.proj-empty i {
  font-size: 2.5rem;
  opacity: 0.3;
}

.proj-empty p {
  font-size: 1rem;
  opacity: 0.5;
}

/* ---- Active nav ---- */
.active-nav {
  color: var(--blue) !important;
}

/* ---- MODAL DE GALERIA (CARROSSEL) ---- */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.show {
  display: flex;
  opacity: 1;
}

.gallery-content {
  position: relative;
  max-width: 85%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#gallery-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.close-modal {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}

.close-modal:hover {
  color: var(--blue);
  transform: rotate(90deg);
}

.gallery-nav {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 50%;
  margin: 0 20px;
  transition: all 0.25s ease;
}

.gallery-nav:hover {
  background: var(--blue);
  transform: scale(1.1);
}

.gallery-counter {
  color: #888;
  margin-top: 15px;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ============================================
   EFEITO DE SCROLL NA IMAGEM COMPRIDA (HOVER)
   ============================================ */

.img-project.scroll-mockup {
  padding: 0;
  align-items: flex-start;
  border-top: 12px solid #2a2a2a;
}

.img-project.scroll-mockup .project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  padding-top: 0;
  transition: object-position 5s ease-in-out !important;
}

.card-project:hover .img-project.scroll-mockup .project-image {
  object-position: bottom;
}

.card-project:hover .img-project.scroll-mockup .img-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.img-project.scroll-mockup .overlay-btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ---- Behance dual-button layout ---- */
.btn-dual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-behance {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem !important;
  background-color: transparent !important;
  color: var(--white) !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 8px;
  font-size: 0.85rem !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease !important;
}

.btn-behance:hover {
  border-color: #1769ff !important;
  color: #1769ff !important;
  background-color: rgba(23, 105, 255, 0.06) !important;
}

.btn-behance i {
  font-size: 1rem;
}

/* btn-stores with behance also gets flex-col */
.btn-stores {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
