/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #9b1999 0%, #9b1999b1 100%);
  color: white;
  padding: 50px 0;
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 750;
  margin-bottom: 2rem;
}

.hero-section p {
  font-size: 1.0rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(155, 25, 153, 0.1);
  border: none;
  border-top: 4px solid #9b1999;
}

.project-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.project-card .card-body {
  padding: 1.5rem;
  position: relative;
}

.project-card .card-title {
  font-weight: 700;
  color: #001F5B;
  margin-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.project-card .card-text {
  color: #666;
  font-size: 0.9rem;
}

/* Category Badge in Card */
.project-card .category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.7rem;
  z-index: 1;
}

.category-badge.web-dev {
  background-color: #b3c9f9;
}

.category-badge.uiux {
  background-color: #f7bef6;
}

.category-badge.ml-robotics {
  background-color: #fad7c4;
}

.category-badge i {
  font-size: 0.7rem;
}

/* GitHub Icon in Card */
.project-card .github-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #9b1999;
  font-size: 25px;
  transition: all 0.3s ease;
  z-index: 1;
}

.project-card .github-icon:hover {
  color: #7a1479;
  transform: scale(1.15);
}

.section-spacing {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

/* Responsive Styles for Homepage */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1441px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
