/* Projects Hero Section */

.container {
  max-width: 1200px;
  margin: 0 auto;
}
.projects-hero {
  padding: 200px 20px 60px 20px;
  background-color: black;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
}

.projects-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
}

.projects-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.projects-hero p {
  font-size: 20px;
  color: #cdcdcd;
}

/* Mobile styles for Hero */
@media (max-width: 716px) {
  .projects-hero {
    padding: 120px 20px 40px 20px;
    min-height: 300px;
  }

  .projects-hero h1 {
    font-size: 2rem;
  }

  .projects-hero p {
    font-size: 1rem;
  }
}

/* Categories Section */
.categories-section {
  padding: 80px 20px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.categories-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.category-card {
  background-color: #1f1f1f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Background images for each category */
.category-card:nth-child(1) {
  background-image: url(../assets/projects/ksa/Riyadh-Metro-Station/RiyadhMetroStation_3A1.jpg);
}

.category-card:nth-child(2) {
  background-image: url(../assets/projects/commercial-residential/District_S/district-s-01.jpg);
}

.category-card:nth-child(3) {
  background-image: url(../assets/projects/private-villas/Villa-Mr-Nasser/Villa-Mr-Nasser-01.jpg);
}

.category-card:nth-child(4) {
  background-image: url(../assets/projects/offices-showrooms/Ferrari-Headquarters/Ferrari-Headquarters-01.jpg);
}

.category-card:nth-child(5) {
  background-image: url(../assets/projects/hotels-restaurants/Zayzoom-Hotel/Zayzoom-Hotel-01.jpg);
}

.category-card:nth-child(6) {
  background-image: url(../assets/projects/public-bldgs-Institutions/United-States-Embassy/United-States-Embassy-01.jpg);
}

.category-card:nth-child(7) {
  background-image: url(../assets/projects/offshore-work/Villa-Al-Omari/Villa-Al-Omari-01.jpg);
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.7)
  );
  transition: background 0.3s ease;
  z-index: 0;
}

.category-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.5)
  );
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.category-info {
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.category-info h3 {
  font-size: 1.75rem;
  color: #f0f0f0;
  margin-bottom: 10px;
}

/* Mobile styles for Categories Section */
@media (max-width: 716px) {
  .categories-section {
    padding: 60px 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-card {
    min-height: 150px;
  }

  .category-info h3 {
    font-size: 1.5rem;
  }
}
