* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wrapper,
.content {
  position: relative;
  width: 100%;
  z-index: 1;
}

.content {
  overflow-x: hidden;
}

.content .section {
  width: 100%;
  height: 100vh;
}

.content .section.hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  position: relative;
}

.grid-item {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  position: relative;
  overflow: hidden;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 0;
  transition: background 0.3s ease;
}

.grid-item:hover {

  z-index: 5;
}

.grid-item:hover::before {
  background: rgba(0, 0, 0, 0.1); /* Hover durumunda daha hafif karartma */
}

/* Her bir grid öğesine farklı bir servis resmi ekle */
.grid-item[data-service="builder"] {
  background-image: url(./services/builder.webp);
}

.grid-item[data-service="construction"] {
  background-image: url(./services/construction.webp);
}

.grid-item[data-service="kitchen"] {
  background-image: url(./services/kitchen.webp);
}

.grid-item[data-service="remodels"] {
  background-image: url(./services/remodels.webp);
}

.grid-item[data-service="luxury"] {
  background-image: url(./services/luxury.webp);
}

.grid-item[data-service="closet"] {
  background-image: url(./services/closet.webp);
}

/* Logo konteyneri ve logoları merkeze yerleştir */
.logo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.grid-item:hover .logo-container {
  transform: scale(1.1);
}

.service-logo {
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.image-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  perspective: 500px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Scroll göstergesi stilleri */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  z-index: 10;
  opacity: 0;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mouse-wheel {
  background-color: #fff;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouse-wheel 1.5s ease infinite;
}

.chevron {
  width: 18px;
  height: 6px;
  opacity: 0;
  transform: scale(0.3);
  animation: move-chevron 3s ease-out infinite;
}

.chevron:before,
.chevron:after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: #fff;
}

.chevron:before {
  left: 0;
  transform: skewY(30deg);
}

.chevron:after {
  right: 0;
  transform: skewY(-30deg);
}

@keyframes mouse-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes move-chevron {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.3);
  }
  40%, 60% {
    opacity: 1;
    transform: translateY(8px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.3);
  }
}

/* Mobil ve masaüstü görselleri için */
.mobile-image {
  display: none !important;
}

.desktop-image {
  display: block !important;
}

/* Mobil cihazlar için medya sorgusu (768px ve altı) */
@media only screen and (max-width: 768px) {
  .mobile-image {
    display: block !important;
  }
  
  .desktop-image {
    display: none !important;
  }
  
  /* Mobil için grid yapısını değiştir - 2 sütun, 3 satır */
  .content .section.hero {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .scroll-indicator {
    bottom: 25px;
  }
  
  .mouse {
    width: 22px;
    height: 36px;
  }
  
  .chevron {
    width: 16px;
    height: 5px;
  }
}
