/* Projects Section Styles */
#projects {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 4rem;
  padding: 5rem 0;
  background: var(--bg-color);
  scroll-margin-top: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  padding: 0 2rem;
}

.project-card {
  position: relative;
  background: var(--second-bg-color);
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--main-color) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.project-card:hover::before {
  opacity: 0.05;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--main-color);
  box-shadow: 0 20px 40px rgba(0, 239, 255, 0.1), 
              0 0 20px rgba(0, 239, 255, 0.1);
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--main-color), #00d4ff);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
}

.project-icon i {
  font-size: 2rem;
  color: var(--bg-color);
}

.project-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(0, 239, 255, 0.1);
  color: var(--main-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 239, 255, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: scale(1.05);
}

.project-content p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
  opacity: 0.9;
}

.project-metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 239, 255, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--main-color);
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-links {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.btn-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid var(--main-color);
  text-align: center;
  background: var(--main-color);
  color: var(--bg-color);
  min-width: 150px;
}

.btn-demo:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: 0 0 15px var(--main-color);
  transform: translateY(-2px);
}

.btn-demo i {
  font-size: 1rem;
}

/* Animation Enhancements */
.project-card .animate {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
  }
  
  .project-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.5rem;
  }
  
  .project-metrics {
    flex-direction: column;
    gap: 1rem;
  }
  
  .project-links {
    justify-content: center;
  }
  
  .btn-demo {
    min-width: 120px;
    padding: 0.7rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    padding: 0 0.5rem;
  }
  
  .project-card {
    padding: 1.2rem;
  }
  
  .project-icon {
    width: 50px;
    height: 50px;
  }
  
  .project-icon i {
    font-size: 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.3rem;
  }
  
  .project-tags {
    gap: 0.3rem;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}
