/* ===== TEAM HERO SECTION......................................................................................................... ===== */
.team-hero {
  position: relative;
  background: url("images/IMG_3972.JPG") center/cover no-repeat;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.8)
  );
  z-index: 1;
}
.team-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease-out forwards;
}
.team-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
  color: #ffd700;
}
.team-hero p {
  font-size: 1.2rem;
  color: #eaeaea;
  margin-bottom: 25px;
}
.btn-scroll {
  display: inline-block;
  padding: 12px 28px;
  background: #ffd700;
  color: #000;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-scroll:hover {
  background: #e6c200;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ===== PARTNERS SECTION......................................................................................................... ===== */
.partners-section {
  background: #0f0f0f;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}
.partners-container h2 {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 10px;
}
.partners-container p {
  color: #ccc;
  margin-bottom: 50px;
  font-size: 1.1rem;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}
.partner-card {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.partner-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.partner-card:hover img {
  transform: scale(1.05);
}
.partner-info {
  padding: 20px;
  background: #1a1a1a;
  transition: background 0.3s ease;
}
.partner-card:hover .partner-info {
  background: #111;
}
.partner-info h3 {
  font-size: 1.3rem;
  color: #ffd700;
  margin-bottom: 5px;
}
.partner-info .title {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 10px;
}
.partner-info .quote {
  font-size: 0.95rem;
  color: #eaeaea;
  font-style: italic;
}
/* Hover Card Glow */
.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.4);
}

/* ===== CASES BRIEF SECTION.............................................................................................. ===== */
.cases-brief {
  position: relative;
  background: url("images/img2.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}
.cases-overlay2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.cases-container2 {
  position: relative;
  z-index: 2;
}
.cases-container2 h2 {
  font-size: 2.2rem;
  color: #ffd700;
  margin-bottom: 10px;
}
.cases-container2 p {
  color: #ccc;
  margin-bottom: 40px;
  font-size: 1.05rem;
}
.cases-grid2 {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}
.case-card2 {
  background-color: grey;
  padding: 25px 20px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: auto;
  height: 100px;
}
.case-card2 h3 {
  font-size: 1.8rem;
  color: #ffd700;
  margin-bottom: 5px;
}
.case-card2 p {
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
}
.case-card2:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(255, 215, 0, 0.4);
}

/* POPULAR CASES SECTION.................................................................................... */
.popular-cases {
  position: relative;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.cases-overlay3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.cases-container3 {
  position: relative;
  z-index: 2;
}
.popular-cases h2 {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 10px;
}

.popular-cases p {
  color: #ccc;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.cases-grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.case-card3 {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.case-card3 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.case-card3:hover img {
  transform: scale(1.05);
}
.case-info {
  padding: 15px;
  text-align: left;
}
.case-info h3 {
  font-size: 1.2rem;
  color: #ffd700;
  margin-bottom: 5px;
}
.case-info p {
  font-size: 0.95rem;
  color: #ccc;
}
.case-card3:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(255, 215, 0, 0.4);
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-content {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #ffd700;
}
.modal-content img {
  width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 8px;
}

.popup-main-page {
  background-color: #fff;
}

/* RESPONSIVE DESIGN......................................................................................................... */
@media (max-width: 768px) {
  .team-hero h1 {
    font-size: 2.2rem;
  }
  .team-hero p {
    font-size: 1rem;
  }
  .partner-card img {
    height: 250px;
  }
  .partner-info h3 {
    font-size: 1.1rem;
  }
  .cases-grid3 {
    gap: 20px;
  }

  /* cases handled section */
  .cases-grid2 {
    gap: 20px;
  }
  .case-card2 {
    width: 140px;
    padding: 20px;
  }
  .cases-container2 h2 {
    font-size: 1.8rem;
  }
  /* popular cases section */
  .case-card3 img {
    height: 250px;
  }
  .popular-cases h2 {
    font-size: 2.3rem;
  }
  .case-info h3 {
    font-size: 1rem;
  }
  .case-info p {
    font-size: 0.85rem;
  }
  .partner-card img {
    height: 50vh;
  }
}
