:root {
  --charcoal: #1C1C1C;
  --steel: #4A4A4A;
  --concrete: #F5F5F5;
  --sky: #BFD8E5;
  --yellow: #F2C94C;
}

.projects-hero {
  position: relative;
  padding: 120px 20px;
  background: linear-gradient(135deg, var(--concrete) 0%, var(--sky) 100%);
  overflow: hidden;
}

.projects-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23BFD8E5" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.35;
}

.projects-hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.projects-hero-content h1 {
  margin: 0 0 10px;
  font-size: 48px;
  color: var(--charcoal);
}

.projects-hero-content p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--steel);
  font-size: 18px;
}

.projects-featured {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.projects-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23BFD8E5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.4;
  z-index: 0;
}

.projects-featured .container {
  position: relative;
  z-index: 1;
}

.projects-featured .section-subtitle {
  text-align: center;
  color: var(--steel);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.projects-featured .section-title {
  text-align: center;
  color: var(--charcoal);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.projects-featured .title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--sky));
  margin: 0 auto 40px;
  border-radius: 2px;
}

.projects-featured-swiper {
  padding: 20px 0 60px;
  margin: 0 20px;
}

.projects-featured .project-card {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(28,28,28,0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}

.projects-featured .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(28,28,28,0.25);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  color: #fff;
  transition: all 0.3s ease;
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.9) 100%);
}

.project-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card-meta {
  font-size: 15px;
  opacity: 0.95;
  font-weight: 500;
}

/* Swiper Navigation */
.projects-featured-swiper .swiper-button-next,
.projects-featured-swiper .swiper-button-prev {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(28, 28, 28, 0.15);
  transition: all 0.3s ease;
}

.projects-featured-swiper .swiper-button-next:hover,
.projects-featured-swiper .swiper-button-prev:hover {
  background: var(--yellow);
  transform: scale(1.1);
}

.projects-featured-swiper .swiper-button-next:after,
.projects-featured-swiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 700;
}

.projects-featured-swiper .swiper-pagination {
  bottom: 20px;
}

.projects-featured-swiper .swiper-pagination-bullet {
  background: rgba(28, 28, 28, 0.3);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.projects-featured-swiper .swiper-pagination-bullet-active {
  background: var(--yellow);
  transform: scale(1.2);
}

.projects-filters {
  padding: 40px 0 0;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.filter label {
  display: block;
  margin-bottom: 8px;
  color: var(--steel);
  font-weight: 600;
}

.filter select {
  width: 100%;
  border: 1px solid var(--sky);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--charcoal);
}

.projects-list {
  padding: 40px 0 80px;
  background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
  position: relative;
}

.projects-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots-light" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="%23BFD8E5" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23dots-light)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.projects-list .container {
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 0 20px;
}

.project-item {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(28,28,28,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block; /* Ensure proper display behavior */
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit text color */
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(28,28,28,0.15);
}

.project-item-overlay { 
  position: absolute; inset: 0; 
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.8) 100%);
  color: #fff; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end;
  padding: 20px;
  transition: all 0.3s ease;
}

.project-item:hover .project-item-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 20%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.9) 100%);
}

.project-item-title { 
  font-size: 18px; 
  font-weight: 700; 
  margin-bottom: 6px;
  line-height: 1.3;
}

.project-item-meta { 
  font-size: 13px; 
  opacity: 0.95;
  font-weight: 500;
}

.projects-actions { 
  text-align: center; 
  margin-top: 40px;
  padding-top: 20px;
}
.load-more {
  background: linear-gradient(90deg, var(--yellow), var(--sky));
  color: var(--charcoal);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 201, 76, 0.3);
}

.load-more:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .projects-featured-swiper {
    margin: 0 15px;
  }
}

@media (max-width: 768px) {
  .projects-featured-swiper {
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .projects-hero-content h1 { font-size: 36px; }
  .projects-hero-content p { font-size: 16px; }
  
  .projects-featured {
    padding: 60px 0 40px;
  }
  
  .projects-featured .section-title {
    font-size: 28px;
  }
  
  .projects-featured .project-card { 
    height: 320px;
    border-radius: 20px;
  }
  
  .project-card-overlay {
    padding: 24px 20px;
  }
  
  .project-card-title {
    font-size: 20px;
  }
  
  .project-card-meta {
    font-size: 14px;
  }
  
  .projects-featured-swiper .swiper-button-next,
  .projects-featured-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .projects-featured-swiper .swiper-button-next:after,
  .projects-featured-swiper .swiper-button-prev:after {
    font-size: 14px;
  }
  
  /* Enhanced project grid for tablets */
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px 0 15px;
  }
  
  .project-item { 
    height: 240px;
    border-radius: 14px;
  }
  
  .project-item-overlay {
    padding: 18px;
  }
  
  .project-item-title {
    font-size: 17px;
  }
  
  .project-item-meta {
    font-size: 12px;
  }
  
  .projects-actions {
    margin-top: 30px;
    padding-top: 15px;
  }
  
  .load-more {
    padding: 14px 28px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .projects-featured .project-card { 
    height: 280px;
  }
  
  .project-card-overlay {
    padding: 20px 16px;
  }
  
  .project-card-title {
    font-size: 18px;
  }
  
  /* Enhanced mobile project grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px 0 12px;
  }
  
  .project-item {
    height: 220px;
    border-radius: 12px;
  }
  
  .project-item-overlay {
    padding: 16px;
  }
  
  .project-item-title {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .project-item-meta {
    font-size: 11px;
  }
  
  .projects-actions {
    margin-top: 25px;
    padding-top: 10px;
  }
  
  .load-more {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 25px;
  }
  
  /* Filter improvements for mobile */
  .filters-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px;
  }
  
  .filter select {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .filter label {
    font-size: 14px;
    margin-bottom: 6px;
  }
}

@media (max-width: 360px) {
  /* Extra small screens */
  .projects-grid {
    padding: 0 8px 0 8px;
    gap: 12px;
  }
  
  .project-item {
    height: 200px;
    border-radius: 10px;
  }
  
  .project-item-overlay {
    padding: 14px;
  }
  
  .project-item-title {
    font-size: 15px;
  }
  
  .project-item-meta {
    font-size: 10px;
  }
  
  .load-more {
    padding: 10px 20px;
    font-size: 14px;
  }
}


