/* theme/fujico/css/home.css */

/* ===== SECTION COMMON ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}
.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

.section-subtitle {
  color: var(--dark-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 50px;
}

/* ===== INTRO SECTION ===== */
.section-intro .section-title {
  text-align: left;
}
.section-intro .section-subtitle {
  text-align: left;
  margin-left: 0;
}

/* ===== PRODUCTS SECTION ===== */
.section-products {
  background: radial-gradient(at center center, #ecc5bc 0%, #ffffff 70%);
  padding: 60px 0;
}

.section-products .card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;
}
.section-products .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.section-products .card img {
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.section-products .card .position-relative {
  overflow: hidden;
}
.section-products .card .position-relative:hover img {
  transform: scale(1.05);
}

.section-products .card .product-title a {
  color: var(--dark-text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: 0.3s;
}
.section-products .card .product-title a:hover {
  color: var(--secondary-color);
}

/* ===== SERVICES SECTION ===== */
.section-image-services {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img-wrapper {
  overflow: hidden;
  height: 300px;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.service-desc {
  color: #7f8c8d;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}
.service-link:hover {
  color: #e67e22;
}
.service-link i {
  transition: transform 0.3s ease;
}
.service-link:hover i {
  transform: translateX(5px);
}

/* ===== WHY SECTION ===== */
.section-why {
  background: radial-gradient(at center center, #ecc5bc 0%, #ffffff 70%);
}
.section-why .icon-box {
  text-align: center;
  padding: 20px;
}

/* ===== GALLERY SECTION ===== */
.section-gallery {
  padding: 80px 0;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.section-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.section-gallery .gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.section-gallery .gallery-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.section-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.section-gallery .gallery-item:hover img {
  transform: scale(1.05);
}
.section-gallery .gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--light-text);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.section-gallery .gallery-item:hover::after {
  opacity: 1;
}

/* Gallery animation */
@for $i from 1 through 12 {
  .section-gallery .gallery-item:nth-child(#{$i}) {
    animation: float 3s ease-in-out infinite alternate;
    animation-delay: #{$i * 0.1}s;
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ===== PARTNERS SECTION ===== */
.section-logos img {
  max-height: 60px;
  margin: 15px;
  filter: grayscale(100%);
  transition: 0.3s;
}
.section-logos img:hover {
  filter: grayscale(0%);
}

/* ===== NEWS SECTION ===== */
.section-news .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  overflow: hidden;
}
.section-news .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.section-news .card a {
  text-decoration: none;
  color: inherit;
}
.section-news .card a:hover {
  color: var(--secondary-color);
}
.section-news .card .card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
  transition: color 0.3s;
}

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 991.98px) {
  .section-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 2rem;
  }
  .service-img-wrapper {
    height: 180px;
  }
  .section-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 575.98px) {
  .section-products .card {
    padding: 1rem;
  }
  .section-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}