/* Projects Page Styles */

/* Hero Section */
.projects-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/construction-pattern.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%);
  z-index: 1;
}

.projects-hero .container {
  position: relative;
  z-index: 2;
}

.min-vh-70 {
  min-height: 70vh;
}

.tracking-wide {
  letter-spacing: 2px;
}

.projects-hero h1 {
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.projects-hero .lead {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.projects-hero .btn {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
  transition: all 0.3s ease;
}

.projects-hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(199, 160, 59, 0.3);
}

/* Filter Section */
.projects-filter {
  z-index: 1020;
  transition: all 0.3s ease;
}

.filter-buttons .btn {
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #dee2e6;
}

.filter-buttons .btn:hover {
  border-color: #C7A03B;
  color: #C7A03B;
  transform: translateY(-2px);
}

.filter-buttons .btn.active {
  background: #C7A03B;
  border-color: #C7A03B;
  color: white;
}

/* Project Cards */
.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(199, 160, 59, 0.95);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.project-description {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #495057;
}

.meta-item i {
  font-size: 1.1rem;
}

.project-content .btn {
  transition: all 0.3s ease;
}

.project-content .btn:hover {
  background: #C7A03B;
  border-color: #C7A03B;
  transform: translateX(5px);
}

/* All Projects Table */
.all-projects {
  padding: 80px 0;
}

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.table {
  margin-bottom: 0;
}

.table thead {
  background: #1a1a1a;
  color: white;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  padding: 18px 15px;
  border: none;
}

.table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.01);
}

.table tbody td {
  padding: 20px 15px;
  vertical-align: middle;
}

.badge {
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 50px;
}

/* Project Item Filtering */
.project-item {
  transition: all 0.4s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .projects-hero {
    padding: 60px 0 40px;
  }

  .projects-hero h1 {
    font-size: 2.5rem;
  }

  .min-vh-70 {
    min-height: auto;
    padding: 40px 0;
  }

  .filter-buttons {
    gap: 10px !important;
  }

  .filter-buttons .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .project-image-wrapper {
    height: 220px;
  }

  .project-content {
    padding: 20px;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 10px;
  }

  .all-projects {
    padding: 60px 0;
  }

  .table {
    font-size: 0.85rem;
  }

  .table thead th,
  .table tbody td {
    padding: 12px 10px;
  }
}

@media (max-width: 576px) {
  .projects-hero h1 {
    font-size: 2rem;
  }

  .projects-hero .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .project-image-wrapper {
    height: 200px;
  }
}

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

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  .project-card {
    background: #2d2d2d;
  }

  .project-title {
    color: white;
  }

  .project-description {
    color: #adb5bd;
  }

  .meta-item {
    color: #ced4da;
  }

  .all-projects {
    background: #1a1a1a !important;
  }

  .table tbody tr:hover {
    background: #2d2d2d;
  }
}
