.projects-section {
  padding: 4rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.projects-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.projects-header.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out;
}

.projects-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.projects-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  transition: all 0.3s ease;
  line-height: 1;
}

.projects-title:hover .projects-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-secondary);
}

.projects-title h2 {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Project Card Styles */
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.project-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 300px;
  background: var(--bg-tertiary);
}

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

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

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
  opacity: 0.15;
}

.project-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.project-description {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-description-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.bullet-point {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  margin-top: 0.625rem;
  margin-right: 0.875rem;
  flex-shrink: 0;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  font-size: 0.875rem;
  border-radius: 1.25rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

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

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
  font-size: 0.95rem;
}

.github-link {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.github-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.demo-link {
  background: var(--gradient-primary);
  color: white;
  border: 1px solid transparent;
}

.demo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.link-icon {
  font-size: 1.125rem;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    flex-direction: row;
    min-height: 400px;
  }

  .project-image-container {
    width: 50%;
    min-height: 400px;
  }

  .project-details {
    width: 50%;
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .projects-title h2 {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    max-width: 1000px;
  }
}

@media (max-width: 767px) {
  .project-links {
    flex-direction: column;
  }

  .project-link {
    width: 100%;
  }
}
