/* ==================== HOMEPAGE SERVICES SECTION ==================== */
.homepage-services-section {
  background: white;
}

.homepage-services-section .main-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.homepage-services-section .main-section-desc {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.featured-materials-content .main-section-desc {
  margin-bottom: 64px;
}
.service-cards {
  gap: 20px;
}

.service-card-wrapper {
  display: flex;
}

.service-card {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  transition: all 0.3s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.service-card-label {
  position: relative;
  z-index: 2;
  padding: 30px;
  text-align: center;
}

.service-card-label span {
  display: inline-block;
  background: rgba(76, 175, 80, 0.95);
  color: white;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-label span {
  background: rgba(76, 175, 80, 1);
  transform: scale(1.05);
}

/* ==================== HOMEPAGE FEATURED MATERIALS SECTION ==================== */
.homepage-featured-materials {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.1);
}

.featured-materials-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.featured-materials-content {
  position: relative;
  z-index: 2;
}

/* Materials Tabs Navigation */
.materials-tabs-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(165, 165, 165, 0.5);
  padding-bottom: 12px;
  align-items: center;
  width: 100%;
}

.materials-tabs-wrapper {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
}

.materials-tab-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #a5a5a5;
  letter-spacing: 1.4px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 30%;
}

.materials-tab-btn:hover {
  color: #1a1a1a;
}

.materials-tab-btn.active {
  color: #262626;
}

.materials-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: #262626;
}

/* Tab Content */
.materials-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.materials-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Material Grid & Items */
.material-items {
  gap: 20px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.material-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.material-item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 230px;
  height: 230px;
}

.material-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.material-item:hover .material-item-image img {
  transform: scale(1.05);
}

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
  z-index: 2;
}

.sale-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}

.sale-badge-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-weight: 700;
}

.sale-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 2px;
}

.sale-percent {
  font-size: 20px;
  line-height: 1;
}

.material-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Featured Materials Button */
.featured-materials-button-wrapper {
  padding-top: 20px;
}

.btn-materials {
  border-radius: 0;
  padding: 14px 40px;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: var(--primary-color);
  color: #262626;
  border: 1px solid var(--primary-color);
}

.btn-materials:hover {
  background: #d9cebd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-materials:active {
  transform: translateY(0);
}

/* ==================== GET INSPIRED GALLERY SECTION ==================== */
.get-inspired-section {
  background: #f9f9f9;
  padding: 80px 0;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.1);
  background-image: url("../images/featured-bg.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.get-inspired-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Portfolio Gallery with Column Layout */
.get-inspired-gallery {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.get-inspired-gallery .gallery-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Type 1 Column - Two squares (410x354 each) */
.get-inspired-gallery .gallery-column-type1 {
  width: 410px;
}

/* Mixed Column - Portrait (410x477) + Landscape (410x231) */
.get-inspired-gallery .gallery-column-mixed {
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Gallery Items with specific aspect ratios */
.get-inspired-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Type 1: 410x354 (1.16:1 ratio) */
.get-inspired-gallery .gallery-item-type1 {
  aspect-ratio: 410 / 354;
}

/* Type 2: 410x477 (0.86:1 ratio) */
.get-inspired-gallery .gallery-item-type2 {
  aspect-ratio: 410 / 477;
}

/* Type 3: 410x231 (1.77:1 ratio) */
.get-inspired-gallery.gallery-item-type3 {
  aspect-ratio: 410 / 231;
}

.get-inspired-gallery .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.get-inspired-gallery .gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

/* Button wrapper */
.get-inspired-button-wrapper {
  padding-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
  .get-inspired-gallery {
    gap: 18px;
  }

  .get-inspired-gallery .gallery-column {
    gap: 18px;
  }

  /* .gallery-column-type1,
  .gallery-column-mixed {
    width: 360px;
  } */

  .get-inspired-gallery .gallery-item-type1 {
    aspect-ratio: 360 / 310;
  }

  .get-inspired-gallery .gallery-item-type2 {
    aspect-ratio: 360 / 420;
  }

  .get-inspired-gallery .gallery-item-type3 {
    aspect-ratio: 360 / 204;
  }
}

@media (max-width: 1024px) {
  .get-inspired-section {
    padding: 60px 0;
  }

  .get-inspired-header {
    margin-bottom: 40px;
  }

  .get-inspired-gallery .get-inspired-gallery {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .get-inspired-gallery .gallery-column {
    gap: 15px;
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .get-inspired-gallery .gallery-column-type1,
  .get-inspired-gallery .gallery-column-mixed {
    width: calc(33.333% - 10px);
    min-width: 200px;
  }

  .get-inspired-gallery .gallery-item-type1,
  .get-inspired-gallery .gallery-item-type2,
  .get-inspired-gallery .gallery-item-type3 {
    aspect-ratio: 1 / 1;
  }

  .get-inspired-header .main-section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .get-inspired-section {
    padding: 40px 0;
    background-size: 100%;
  }

  .get-inspired-gallery {
    flex-direction: column;
    gap: 15px;
  }

  .get-inspired-gallery .gallery-column {
    flex-direction: row;
    gap: 12px;
    width: 100%;
    justify-content: center;
  }

  .get-inspired-gallery .gallery-column-type1,
  .get-inspired-gallery .gallery-column-mixed {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .get-inspired-gallery .gallery-item-type1,
  .get-inspired-gallery .gallery-item-type2,
  .get-inspired-gallery .gallery-item-type3 {
    aspect-ratio: 1 / 1;
  }

  .get-inspired-header .main-section-title {
    font-size: 1.75rem;
  }

  .get-inspired-header .main-section-desc {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .get-inspired-section {
    padding: 40px 0;
  }

  .get-inspired-header {
    margin-bottom: 30px;
  }

  .get-inspired-gallery {
    flex-direction: column;
    gap: 12px;
  }

  .get-inspired-gallery .gallery-column {
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  .get-inspired-gallery .gallery-column-type1,
  .get-inspired-gallery .gallery-column-mixed {
    flex: 1;
    width: auto;
    max-width: none;
  }

  .get-inspired-gallery .gallery-item-type1,
  .get-inspired-gallery .gallery-item-type2,
  .get-inspired-gallery .gallery-item-type3 {
    aspect-ratio: 1 / 1;
  }

  .get-inspired-header .main-section-title {
    font-size: 1.5rem;
  }

  .get-inspired-header .main-section-desc {
    font-size: 0.95rem;
  }

  .btn-materials {
    padding: 12px 30px;
    font-size: 0.85rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cta-buttons {
    justify-content: center;
    align-items: center;
  }
  .cta-buttons .btn {
    max-width: 300px;
  }
  .service-card {
    min-height: 300px;
  }

  .service-card-label {
    padding: 20px;
  }

  .service-card-label span {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .materials-tabs-wrapper {
    gap: 30px;
  }

  .materials-tab-btn {
    font-size: 0.9rem;
    padding-bottom: 15px;
  }

  .material-items {
    gap: 10px;
  }
}

@media (max-width: 680px) {
  .container,
  .container-md,
  .container-sm {
    max-width: 90% !important;
  }
  .product-categories-section {
    padding: 20px 0 !important;
  }
  .service-card {
    min-height: 250px;
  }

  .service-card-label {
    padding: 15px;
  }

  .service-card-label span {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .materials-tabs-wrapper {
    gap: 15px;
  }

  .materials-tab-btn {
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .btn-materials {
    padding: 12px 30px;
    font-size: 0.85rem;
  }
}
