/* === SEÇÃO DE PROJETOS === */
.projects-section {
  padding: 10rem 0;
  background: linear-gradient(to bottom, #ffffff 0%, var(--light-tertiary-color) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.8rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Filtros */
.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: rgba(115, 7, 119, 0.1);
  color: var(--primary-color);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

/* Grid de Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Cards */
.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 2;
}

.project-image {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-tech {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-tech span {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.project-info {
  padding: 2.5rem;
}

.project-title {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.project-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.project-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  color: var(--text-color);
  opacity: 0.8;
}

.project-meta i {
  margin-right: 0.5rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.project-btn.demo {
  background: var(--gradient-primary);
  color: white;
}

.project-btn.code {
  background: rgba(23, 21, 21, 0.1);
  color: #171515;
}

.project-btn.details {
  background: rgba(115, 7, 119, 0.1);
  color: var(--primary-color);
}

.project-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Controles */
.projects-controls {
  text-align: center;
}

.btn-load-more {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 1.2rem 3rem;
  font-size: 1.5rem;
}

.btn-load-more:hover {
  background: var(--gradient-primary);
  color: white;
}

/* Responsividade */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-image {
    height: 200px;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
}