#portfolioSection {
  /* background-color: #dfdfdf; */
}

.sec-header {
  text-align: center;
  /* Center align the header */
  margin-top: 40px;
  margin-bottom: 20px;
}

.sec-header h2 {
  font-size: 3rem;
  color: black;
  font-weight: bold;
  margin-bottom: 1rem;
}

.indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  flex-wrap: wrap;
  /* border: 1px solid #ccc; */
  text-align: center;
}

.mixer {
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid #f3faf9;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  /* text-transform: uppercase; */
}

.mixer.active,
.mixer:hover {
  color: white;
  background-color: orangered;
  border-color: orangered;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1140px;
  /* padding: 0px 50px; */
  margin: 50px auto 20px;
}

.work-card {
  position: relative;
  /* width: 100%; */
  max-width: 100%;
  padding: 1rem 2rem;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #ebf3f1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  order: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  cursor: pointer;
  border: 0.3px solid black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.work-card:hover::before {
  opacity: 1;
}

.work-card::after {
  content: "CLICK HERE";
  position: absolute;
  top: 50%;
  font-size: 16px;
  font-weight: bold;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0;
  font-family: Rubik;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

.grid a {
  z-index: 7;
}

.work-card:hover::after {
  opacity: 1;
}

.work-card h4 {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: orangered;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 1rem;
  }
}

.partners-section {
  margin: 50px 80px 50px;
  padding: 20px;
  text-align: center;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 70px;
}

.partner-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 200px;
  height: 205px;
  /* Ensure the height is set */
  text-align: center;
  perspective: 1000px;
  flex: 1 1 calc(33.333% - 20px);
  /* Responsive grid with 3 columns */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.partner-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.partner-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.partner-front {
  background-color: white;
  z-index: 2;
  transform: rotateY(0deg);
}

.partner-item img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 10px;
}

.partner-name {
  font-family: "Rubik", sans-serif;
  font-size: 0.8em;
  color: #333;
  font-weight: 600;
  background-color: #efefef;
  padding: 10px 0;
}

.partner-item a {
  text-decoration: none;
  color: inherit;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .partner-item {
    flex: 1 1 calc(50% - 20px);
    /* 2 columns for tablets */
  }
}

@media (max-width: 480px) {
  .partner-item {
    flex: 1 1 100%;
    /* 1 column for mobile devices */
  }

  .partners-grid {
    gap: 50px;
  }
}

.view-more-container {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.view-more {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1.2em;
  color: white;
  background-color: orangered;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 60px;
  transition: background-color 0.3s ease;
}

.view-more:hover {
  background-color: rgb(237, 93, 41);
  color: white;
}

a:hover {
  text-decoration: none;
}

#work-heading {
  text-align: center;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 40px;
  position: relative;
  display: block;
}

#work-heading::after {
  content: "";
  display: block;
  width: 50px;
  /* Adjust the width to make the underline smaller */
  height: 3px;
  /* Adjust the height to make the underline smaller */
  background-color: orangered;
  margin: 5px auto 0;
  /* Center the underline and add some margin to create space between the text and the underline */
  border-radius: 5px;
  /* Optional: make the underline rounded */
}
