/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.header {
  position: relative;
  background: url("../ImageCase/textile-fashion.jpg") no-repeat center center/cover;
  height: 200px;
  color: white;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 50px;
}

.overlay h1, 
.overlay p {
  color: white;
  margin: 0;
}


.container-sectors {
  width: 80%;
  margin: auto;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}


.sector-container {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  gap: 15px;
}


.item {
  flex: 1 1 calc(20% - 15px); 
  max-width: 250px; 
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.3s ease-in-out;
}


.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}


.item:hover img {
  transform: scale(1.1);
}


.item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.item:hover .overlay {
  opacity: 1;
}


.item h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.item:hover h3 {
  opacity: 1;
}


.item p {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


h1 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #333;
}

p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .item {
      flex: 1 1 calc(33.33% - 15px);
  }
}

@media (max-width: 768px) {
  .item {
      flex: 1 1 calc(50% - 15px); 
  }
}

@media (max-width: 480px) {
  .item {
      flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .header {
      height: 180px;
      padding-left: 20px;
  }
  .overlay {
      padding-left: 20px;
  }
}
