/* Project Gallery Styles */
:root {
  --primary-color: #4f46e5;
  --primary-foreground: #ffffff;
  --muted-foreground: #6b7280;
  --card-background: #ffffff;
  --card-foreground: #1f2937;
  --border-color: #e5e7eb;
  --accent-color: #f3f4f6;
}

.dark-mode {
  --primary-color: #0ea5e9;
  --primary-foreground: #ffffff;
  --muted-foreground: #9ca3af;
  --card-background: #1f2937;
  --card-foreground: #f9fafb;
  --border-color: #374151;
  --accent-color: #2d3748;
}

.project-gallery-section {
  padding: 80px 0;
}

.project-gallery-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-gallery-title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}

.project-gallery-description {
  max-width: 800px;
  color: var(--muted-foreground);
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* Estilos para o grid de projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.project-grid-item {
  width: 100%;
}

/* Estilos para os cards de projeto */
.project-card {
  position: relative;
  height: 27rem;
  border-radius: 0.75rem;
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.project-card-image {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
  z-index: 1;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.9) 100%
  );
  mix-blend-mode: normal;
  z-index: 5;
}

.dark-mode .project-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.9) 100%
  );
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #ffffff !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.project-card-title {
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.project-card-description {
  margin-bottom: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.project-card-link {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.project-card-link i {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.project-card:hover .project-card-link i {
  transform: translateX(4px);
}

/* Media queries para responsividade */
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-gallery-description {
    text-align: center;
    margin: 0 auto 2rem;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .project-gallery-title {
    font-size: 2.5rem;
  }

  .project-card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .project-gallery-section {
    padding: 40px 0;
  }

  .project-gallery-title {
    font-size: 1.75rem;
  }

  .project-gallery-description {
    margin: 0 1rem 1.5rem;
  }

  .projects-grid {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .project-card {
    height: 22rem;
  }

  .project-card-content {
    padding: 1rem;
  }

  .project-card-title {
    font-size: 1.125rem;
  }

  .project-card-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .project-card-link {
    font-size: 0.75rem;
  }
}

@media (hover: none) {
  .project-card:active .project-card-image {
    transform: scale(1.05);
  }

  .project-card:active .project-card-link i {
    transform: translateX(4px);
  }
}
