body { 
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); 
  color: #fff; 
  overflow-x: hidden;
}

/* Enhanced Portfolio Header */
.portfolio-header { 
  text-align: center; 
  margin-top: 120px; 
  padding: 4rem 2rem;
  position: relative;
}

.portfolio-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-header h1 { 
  font-size: 4rem; 
  font-family: 'Playfair Display', serif; 
  font-weight: 700; 
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.portfolio-header .portfolio-underline { 
  width: 150px; 
  height: 4px; 
  background: linear-gradient(90deg, #d4af37, #f4d03f); 
  border-radius: 2px; 
  margin: 2rem auto 3rem auto;
  position: relative;
  overflow: hidden;
}

.portfolio-header .portfolio-underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

/* Enhanced Project Categories Grid */
.project-categories-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 3rem; 
  max-width: 1400px; 
  margin: 0 auto 6rem auto; 
  padding: 0 2rem;
}

.project-category-card { 
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(10, 10, 10, 0.8)); 
  border-radius: 25px; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
}

.project-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.project-category-card:hover::before {
  left: 100%;
}

.project-category-card:hover { 
  transform: translateY(-15px) scale(1.02); 
  box-shadow: 0 25px 60px rgba(212, 175, 55, 0.3);
  border-color: rgba(212, 175, 55, 0.5);
}

.project-category-thumb { 
  width: 100%; 
  height: 250px; 
  object-fit: cover; 
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.project-category-card:hover .project-category-thumb {
  transform: scale(1.1);
}

.project-category-title { 
  padding: 2rem; 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: #d4af37; 
  font-family: 'Playfair Display', serif; 
  text-align: center;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 26, 0.9));
}

/* Enhanced Project Sections */
.project-section { 
  margin: 6rem 0; 
  padding: 4rem 2rem;
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.5), rgba(10, 10, 10, 0.5));
  border-radius: 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.project-section-title { 
  font-size: 3rem; 
  font-family: 'Playfair Display', serif; 
  font-weight: 700; 
  color: #d4af37; 
  text-align: center; 
  margin-bottom: 3rem;
  letter-spacing: 2px;
  position: relative;
}

.project-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
  border-radius: 2px;
}

.project-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 3rem; 
  margin-top: 3rem;
}

.project-img { 
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
  border-radius: 20px; 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-img:hover { 
  transform: scale(1.05) rotate(1deg); 
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
}

/* Enhanced Back Link */
.back-link { 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center; 
  margin: 4rem auto 2rem auto; 
  color: #d4af37; 
  font-size: 1.2rem; 
  text-decoration: none; 
  font-weight: 600; 
  letter-spacing: 1px; 
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.back-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s ease;
}

.back-link:hover::before {
  left: 100%;
}

.back-link:hover { 
  color: #fff; 
  border-color: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-header h1 { font-size: 2.5rem; }
  .project-categories-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-section-title { font-size: 2rem; }
  .project-section { margin: 3rem 0; padding: 2rem 1rem; }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}