/* SERVICES DECORATION */
.services-decoration-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 0;
  margin-top: -50px;
  z-index: 1;
}

.services-decoration {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* SERVICES SECTION */
.services-section {
  padding: 6rem 2rem 6rem 2rem;
  background-color: #0d0d0d;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  z-index: 2;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
}

.services-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  opacity: 0;
  transform: translateY(80px);
}

.services-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.services-description {
  font-size: 1.125rem;
  color: #ffffff;
  line-height: 1.6;
  max-width: 700px;
}

.services-cards-wrapper {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(80px);
}

.services-cards {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services-cards::-webkit-scrollbar {
  display: none;
}

.services-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(18, 26, 31, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.services-nav-button svg {
  width: 24px;
  height: 24px;
}

.services-nav-button:hover {
  background: rgba(255, 86, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.services-nav-button:active {
  transform: translateY(-50%) scale(0.96);
}

.services-nav-prev {
  left: -28px;
}

.services-nav-next {
  right: -28px;
}

.service-card {
  position: relative;
  min-width: 500px;
  width: 600px;
  height: 342px;
  background-color: #20282c;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.service-card-content {
  position: relative;
  width: 100%;
  height: auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #20282c;
  z-index: 2;
  gap: 1rem;
}

.service-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  transition: color 0.3s ease;
}

.service-card-button {
  width: 56px;
  height: 56px;
  background-color: #e85107;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.service-card-button svg {
  width: 24px;
  height: 24px;
}

.service-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex: 1;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-title {
  color: #e85107;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.services-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateY(80px);
}

.services-footer-text {
  font-size: 1.125rem;
  color: #ffffff;
  margin: 0;
}

.services-footer-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #ffffff;
  color: #0d0d0d;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.services-footer-button:hover {
  background-color: #e85107;
  color: #ffffff;
  transform: translateY(0);
  box-shadow: none;
  border-color: #e85107;
}

.services-footer-button svg {
  transition: transform 0.3s ease;
}

.services-footer-button:hover svg {
  transform: translateX(6px);
}

.services-section.is-visible .services-header {
  animation: servicesRise 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  animation-delay: 0.1s;
}

.services-section.is-visible .services-cards-wrapper {
  animation: servicesRise 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  animation-delay: 0.25s;
}

.services-section.is-visible .services-footer {
  animation: servicesRise 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  animation-delay: 0.4s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .services-title {
    font-size: 2.5rem;
  }

  .services-nav-button {
    width: 48px;
    height: 48px;
  }

  .services-nav-prev {
    left: -20px;
  }

  .services-nav-next {
    right: -20px;
  }

  .service-card {
    min-width: 450px;
    width: 450px;
    height: 350px;
  }

  .service-card-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .services-decoration-wrapper {
    padding: 0;
    margin-top: -30px;
  }

  .services-decoration {
    width: 100%;
  }

  .services-section {
    padding: 4rem 1.5rem;
  }

  .services-cards-wrapper {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }

  .services-nav-button {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 0;
    transform: translateY(0);
  }

  .services-nav-prev {
    left: calc(50% - 56px);
  }

  .services-nav-next {
    right: calc(50% - 56px);
  }

  .services-header {
    margin-bottom: 3rem;
    align-items: flex-start;
    text-align: left;
  }

  .services-title {
    font-size: 2rem;
  }

  .services-description {
    font-size: 1rem;
  }

  .service-card {
    min-width: 100%;
    width: 100%;
    height: 300px;
    flex-direction: column;
  }

  .service-card-content {
    width: 100%;
    padding: 2rem;
    clip-path: none;
    height: auto;
  }

  .service-card-title {
    font-size: 1.25rem;
  }

  .service-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    clip-path: none;
  }

  .service-card-button {
    width: 48px;
    height: 48px;
  }

  .services-footer {
    flex-wrap: nowrap;
  }

  .services-footer-text {
    font-size: 1rem;
  }

  .services-footer-button {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .services-decoration-wrapper {
    padding: 0;
    margin-top: -20px;
  }

  .services-decoration {
    width: 100%;
  }

  .services-section {
    padding: 3rem 1rem;
  }

  .services-cards-wrapper {
    padding-bottom: 2.5rem;
  }

  .services-nav-button {
    width: 36px;
    height: 36px;
  }

  .services-nav-prev {
    left: calc(50% - 44px);
  }

  .services-nav-next {
    right: calc(50% - 44px);
  }

  .services-title {
    font-size: 1.75rem;
  }

  .service-card {
    min-width: 100%;
    width: 100%;
    height: auto;
    flex-direction: column;
  }

  .service-card-content {
    padding: 1.5rem;
    width: 100%;
    clip-path: none;
  }

  .service-card-title {
    font-size: 1.25rem;
  }

  .service-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    clip-path: none;
  }

  .service-card-button {
    width: 40px;
    height: 40px;
  }

  .services-footer {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .services-footer-text {
    font-size: 0.9375rem;
  }

  .services-footer-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    white-space: nowrap;
  }
}

@keyframes servicesRise {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

