/* ============================================
   PROJECTS PAGE STYLES - Naved Infratech
   ============================================ */

/* Projects Hero Section */
.projects-hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  padding: 8rem 2rem 4rem;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.projects-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

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

.projects-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 900;
}

.projects-hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
}

/* Project Stats Section */
.project-stats {
  background: var(--white);
  padding: 4rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1.0625rem;
  color: var(--text-gray);
  font-weight: 600;
}

/* Filter Section */
.projects-filter {
  padding: 4rem 0 2rem;
  background: var(--white);
}

.filter-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.filter-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.filter-header p {
  font-size: 1.125rem;
  color: var(--text-gray);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.75rem 2rem;
  background: var(--light-bg);
  color: var(--text-dark);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.filter-btn:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: transparent;
}

/* Search Box */
.search-box {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-normal);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  pointer-events: none;
}

/* Projects Gallery */
.projects-gallery {
  padding: 3rem 0 6rem;
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--light-bg);
}

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

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

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-bg), var(--light-secondary));
  border: 2px dashed var(--border-light);
}

.placeholder-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 102, 204, 0.85),
    rgba(0, 64, 128, 0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h4 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.overlay-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-location {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
}

.no-results-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.no-results h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* Projects CTA Section */
.projects-cta {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.projects-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

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

.projects-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.projects-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.projects-cta .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.projects-cta .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.projects-cta .btn-primary:hover {
  background: var(--light-bg);
  color: var(--primary-dark);
}

.projects-cta .btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.projects-cta .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 968px) {
  .projects-hero {
    padding: 6rem 2rem 3rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .filter-buttons {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .projects-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .projects-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .projects-hero {
    padding: 5rem 1.5rem 2.5rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

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

  .project-info h3 {
    font-size: 1.125rem;
  }

  .overlay-content h4 {
    font-size: 1.125rem;
  }
}

/* Animation on scroll */
.project-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

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

.project-card:nth-child(1) {
  animation-delay: 0.05s;
}
.project-card:nth-child(2) {
  animation-delay: 0.1s;
}
.project-card:nth-child(3) {
  animation-delay: 0.15s;
}
.project-card:nth-child(4) {
  animation-delay: 0.2s;
}
.project-card:nth-child(5) {
  animation-delay: 0.25s;
}
.project-card:nth-child(6) {
  animation-delay: 0.3s;
}
