/* Services Marquee Carousel - Derun Studio */

.services-marquee-wrapper {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  justify-items: center;
}

.services-marquee-carousel {
  position: relative;
}

/* Service Card Item */
.service-card-item {
  transition: all 0.4s ease;
  padding: 20px;
}
.owl-carousel .owl-item {
  justify-items: center !important;
}

.service-card {
  background: var(--nefes-beji);
  border: 2px solid var(--derun-toprak);
  border-radius: 28px 32px 30px 34px;
  padding: 40px 32px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 420px;
  box-shadow: 4px 4px 0px rgba(139, 106, 78, 0.1),
    8px 8px 0px rgba(139, 106, 78, 0.05);
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 15px,
    rgba(124, 154, 109, 0.05) 15px,
    rgba(124, 154, 109, 0.05) 30px
  );
  border-radius: 28px 32px 30px 34px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

/* Service Icon */
.service-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 8px;
  filter: grayscale(0.2);
  transition: all 0.4s ease;
}

/* Service Title */
.text-h4 {
  font-family: var(--font--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--derun-toprak);
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

/* Service Description */
.body-2 {
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  opacity: 0.85;
  margin: 0;
  flex-grow: 1;
}

/* CENTER ITEM STYLES */
.service-card-item.center-item {
  cursor: default;
}

.service-card-item.center-item .service-card {
  transform: translateY(-8px);
  border-color: var(--doga-yesil);
  background: var(--su-mavisi);
  box-shadow: 6px 6px 0px rgba(124, 154, 109, 0.2),
    12px 12px 0px rgba(124, 154, 109, 0.1),
    0 20px 40px rgba(124, 154, 109, 0.15);
}

.service-card-item.center-item .service-card::before {
  opacity: 1;
}

.service-card-item.center-item .service-icon {
  filter: grayscale(0);
  align-self: center;
  max-width: 200px;
  transform: scale(1.1) rotate(5deg);
}

.service-card-item.center-item .text-h4 {
  color: var(--doga-yesil);
}
.owl-carousel .owl-item img {
  align-self: center;
  max-width: 200px;
}

/* Non-center items - smaller and less prominent */
.owl-item:not(.center) .service-card {
  opacity: 0.6;
  transform: scale(0.9);
}

.owl-item:not(.center):hover .service-card {
  opacity: 0.8;
}

/* Owl Carousel Custom Navigation */
.services-marquee-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 80px);
  left: 40px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.services-marquee-carousel .owl-nav button {
  pointer-events: all;
  background: var(--nefes-beji) !important;
  border: 2px solid var(--derun-toprak) !important;
  border-radius: 50%;
  color: var(--derun-toprak);
  font-size: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0;
  box-shadow: 2px 2px 0px rgba(139, 106, 78, 0.2);
  cursor: pointer;
}

.services-marquee-carousel .owl-nav button:hover {
  background: var(--doga-yesil) !important;
  border-color: var(--doga-yesil) !important;
  color: white;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 4px 4px 0px rgba(124, 154, 109, 0.3);
}

.services-marquee-carousel .owl-nav button svg {
  width: 40px;
  height: 40px;
}

.services-marquee-carousel .owl-nav .owl-prev {
  position: relative;
}

.services-marquee-carousel .owl-nav .owl-next {
  position: relative;
}

/* Owl Carousel Dots */
.services-marquee-carousel .owl-dots {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.services-marquee-carousel .owl-dots .owl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--derun-toprak);
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.4;
}

.services-marquee-carousel .owl-dots .owl-dot:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.services-marquee-carousel .owl-dots .owl-dot.active {
  background: var(--doga-yesil);
  border-color: var(--doga-yesil);
  width: 36px;
  border-radius: 6px;
  opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .service-card-item.center-item .service-card {
    transform: translateY(-6px) rotate(-0.5deg) scale(1);
  }

  .services-marquee-carousel .owl-nav {
    width: calc(100% - 60px);
    left: 30px;
  }

  .services-marquee-carousel .owl-nav button {
    width: 54px;
    height: 54px;
  }
}

@media screen and (max-width: 991px) {
  .services-marquee-wrapper {
    padding: 50px 0;
  }

  .service-card {
    padding: 36px 28px;
    min-height: 260px;
  }

  .service-icon {
    font-size: 56px;
  }

  .text-h4 {
    font-size: 22px;
  }

  .body-2 {
    font-size: 15px;
  }

  .services-marquee-carousel .owl-nav {
    width: calc(100% - 40px);
    left: 20px;
  }

  .services-marquee-carousel .owl-nav button {
    width: 48px;
    height: 48px;
  }

  .services-marquee-carousel .owl-nav button svg {
    width: 36px;
    height: 36px;
  }

  /* Show all details on tablet/mobile */
  .owl-item .service-card {
    opacity: 1;
    transform: scale(1);
  }

  .owl-item:not(.center) .service-card {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 767px) {
  .service-card {
    padding: 32px 24px;
    min-height: 240px;
  }

  .service-icon {
    font-size: 52px;
  }

  .text-h4 {
    font-size: 20px;
  }

  .services-marquee-carousel .owl-nav {
    width: calc(100% - 20px);
    left: 10px;
  }

  .services-marquee-carousel .owl-nav button {
    width: 44px;
    height: 44px;
  }

  .services-marquee-carousel .owl-nav button svg {
    width: 30px;
    height: 30px;
  }

  .services-marquee-carousel .owl-dots {
    margin-top: 40px;
  }
}

/* Animation Enhancement */
@keyframes serviceCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card-item {
  display: grid;
  justify-content: center;
  animation: serviceCardFadeIn 0.6s ease forwards;
}
