/*
=====================================
AQUIBON WEBSITE - PROJECTS PAGE CSS
=====================================
Project: Aquibon Water & Solar Solutions
Developer: Blaxium Hub
Author: Brian Guvava
Version: 1.0.0
=====================================
*/

/* ===== PROJECTS HERO SECTION ===== */
.projects-hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.projects-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.projects-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(25, 118, 210, 0.85) 0%,
    rgba(33, 33, 33, 0.75) 50%,
    rgba(46, 125, 50, 0.85) 100%
  );
  z-index: 2;
}

.projects-hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

.projects-hero-title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.projects-hero-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  font-weight: var(--font-regular);
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.projects-hero-scroll {
  margin-top: 3rem;
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  color: var(--white);
  transform: translateY(-5px);
}

.scroll-indicator i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.scroll-indicator p {
  font-size: 0.9rem;
  margin: 0;
  font-weight: var(--font-medium);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== PROJECT STATISTICS SECTION ===== */
.project-stats-section {
  padding: 5rem 0;
  background: var(--white);
}

.stats-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.05), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-green);
}

.stats-card:hover::before {
  left: 100%;
}

.stats-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  transition: all 0.4s ease;
}

.stats-card:hover .stats-icon {
  transform: scale(1.1) rotate(5deg);
}

.stats-number {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: var(--font-bold);
  color: var(--primary-black);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stats-label {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: var(--font-semibold);
  color: var(--primary-black);
  margin-bottom: 0.5rem;
}

.stats-description {
  font-family: var(--font-secondary);
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ===== PROJECT FILTER SECTION ===== */
.project-filter-section {
  padding: 5rem 0;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--white);
  border: 2px solid var(--light-gray);
  color: var(--text-gray);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: var(--font-medium);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.filter-btn:hover::before {
  left: 100%;
}

/* ===== PROJECT CARDS ===== */
.project-item {
  transition: all 0.4s ease;
}

.project-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  display: none;
}

.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(46, 125, 50, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-green);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-actions {
  display: flex;
  gap: 0.5rem;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-type {
  background: var(--primary-green);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-medium);
}

.project-location {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: var(--font-medium);
}

.project-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: var(--font-semibold);
  color: var(--primary-black);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-description {
  font-family: var(--font-secondary);
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: auto;
}

.metric {
  text-align: center;
  padding: 0.75rem 0;
  background: rgba(46, 125, 50, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all 0.3s ease;
}

.metric:hover {
  background: rgba(46, 125, 50, 0.1);
  border-color: var(--primary-green);
}

.metric strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: var(--font-bold);
  color: var(--primary-green);
  margin-bottom: 0.25rem;
}

.metric small {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: var(--font-medium);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: 5rem 0;
  background: var(--white);
}

.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.05), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-green);
}

.testimonial-card:hover::before {
  left: 100%;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--accent-orange);
  font-size: 1.1rem;
}

.testimonial-text {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-green);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: serif;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info h5 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
  color: var(--primary-black);
  margin-bottom: 0.25rem;
}

.author-info p {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
}

/* ===== PROJECT MODAL STYLES ===== */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
  color: var(--white);
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

.modal-title {
  font-family: var(--font-primary);
  font-weight: var(--font-semibold);
}

.btn-close {
  filter: brightness(0) invert(1);
}

.project-detail-info {
  background: rgba(46, 125, 50, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.detail-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(46, 125, 50, 0.1);
  font-family: var(--font-secondary);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item strong {
  color: var(--primary-green);
  font-weight: var(--font-semibold);
}

/* ===== CTA SECTION ===== */
.projects-cta-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.projects-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.projects-cta-section h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cta-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-buttons .btn:hover::before {
  left: 100%;
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== LOAD MORE BUTTON ===== */
#loadMoreProjects {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

#loadMoreProjects::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#loadMoreProjects:hover::before {
  left: 100%;
}

#loadMoreProjects:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .projects-hero-title {
    font-size: 2.8rem;
  }
  
  .projects-hero-subtitle {
    font-size: 1.2rem;
  }
  
  .project-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .project-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .projects-hero-section {
    height: 60vh;
  }
  
  .projects-hero-title {
    font-size: 2.2rem;
  }
  
  .projects-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .project-stats-section,
  .project-filter-section,
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .stats-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
  
  .project-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .project-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 575.98px) {
  .projects-hero-title {
    font-size: 1.8rem;
  }
  
  .projects-hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .project-card {
    margin-bottom: 1.5rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .project-detail-info {
    padding: 1rem;
  }
}
