@import "css/global.css";

/*About*/
#about {
    margin-left: 7%;
    margin-right: 7%;
}

#about .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#about .content .left {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 50px;
}


#offer .section-title::before {
    left: 50%;
    transform: translateX(-50%);
}

#offer .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}


#about .content .left .about-us {
    color: var(--description-color);
    font-size: 16.5px;
    max-width: 80%;
    line-height: 1.6;
}

#about .content .right {
    display: flex;
    justify-content: end;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

#about .content .right img {
    width: auto;
    max-height: 370px;
    position: relative;
    z-index: 1;
    right: 100px;
    border-radius: 40px;
}

#about .img-desc {
    transition: transform 0.4s ease-in-out;
}

#about .img-desc:hover{
    transform: scale(1.05)
}

#features {
  padding: 40px 46px;
  padding-top: 0px;
  background: rgba(221, 221, 221, 0.055);
  display: flex;
  justify-content: center;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px;
  max-width: 1323px;
  width: 100%;
}

.feature-box {
  display: flex;
  flex-direction: column; 
  align-items: center;     
  text-align: center;     
  gap: 16px;
  background: rgba(255, 255, 255, 0.664);
  border: 2px solid rgba(65, 65, 65, 0.082);
  border-radius: 11px;
  padding: 20px;
  transition: 0.3s;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  margin-top: 10px;
  margin-bottom: 7px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon i {
  color: #fffffffa;
  font-size: 22px;
}

.feature-description h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white-color);
}

.feature-description p {
  font-size: 0.97rem;
  line-height: 1.4;
  color: var(--description-color);
}

.feature-description h3::after {
  content: "";
  display: block;
  width: 160px; /* długość linii */
  height: 1.5px;
  background-color: var(--main-color); /* lub inny kolor */
  margin: 8px auto 0 auto; /* wyśrodkowanie */
  margin-bottom: 20px;
  border-radius: 999px; /* zaokrąglenie końców */
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#offer {
  padding: 60px 46px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
}

.offer-description {
    color: var(--description-color);
    font-size: 16.5px;
    max-width: 100%;
    line-height: 3.5;
    text-align: center;
    margin: 0 auto;
}


.offer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px;
  max-width: 1323px;
  width: 100%;
}

.offer-box {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  height: 320px;
  transition: transform 0.3s ease;
}

.offer-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.offer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
  transition: 0.3s ease;
  display: block;
}

.offer-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75));
  z-index: 1;
}

.offer-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 10px 20px;
  z-index: 2;
  width: 90%;
}

.offer-overlay h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.offer-overlay p {
  font-size: 1.05rem;
  color: #eaeaea;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* TABLETY (np. iPad, 768px - 991px) */
@media (max-width: 992px) {
  /* About */
  #about {
    margin-left: 5%;
    margin-right: 5%;
  }

  #about .content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  #about .content .left {
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  #about .content .left .about-us {
    max-width: 100%;
    font-size: 16px;
  }

  #about .content .right {
    justify-content: center;
  }

  #about .content .right img {
    max-height: 320px;
    right: 0;
  }

  /* Features i Offer: 2 kolumny */
  .features-container,
  .offer-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }

  .offer-description {
    font-size: 16px;
    line-height: 2.5;
    padding: 0 10px;
  }

  .offer-box {
    height: 280px;
  }
}

/* TELEFONY (do 768px) */
@media (max-width: 768px) {
  #about {
    margin-left: 4%;
    margin-right: 4%;
  }

  #about .content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  #about .content .left {
    gap: 25px;
    align-items: center;
    text-align: center;
  }

  #about .content .left .about-us {
    max-width: 100%;
    font-size: 15.5px;
  }

  #about .content .right {
    justify-content: center;
  }

  #about .content .right img {
    max-height: 240px;
    right: 0;
  }

  .features-container,
  .offer-container {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .feature-description h3 {
    font-size: 1.2rem;
  }

  .feature-description p {
    font-size: 0.9rem;
  }

  .offer-description {
    font-size: 15px;
    line-height: 2;
    padding: 0 10px;
  }

  .offer-box {
    height: 240px;
  }

  .offer-overlay h3 {
    font-size: 1.2rem;
  }

  .offer-overlay p {
    font-size: 0.95rem;
  }
}

