/* Brands section */
.services-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
  height: 80vh;
  padding: 0%;
  margin: 0%;

  background-color: white;
}

.services-section h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--hero-overlay-color);
  font-family: var(--regular-text);
  font-weight: 600;
  font-size: 2.8rem;
}

.service-card-container {
  display: flex;
  justify-content: center;

  width: auto;
  height: auto;
  gap: 10vh;
  margin-top: 10vh;
}

/*Service card styles */

.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  position: relative;

  margin: auto;
  width: 200px;
  height: 250px;
  /* original box shdow setting*/
  /* background-color: rgb(255, 255, 255);
    box-shadow: 5px 5px 60px rgb(235, 235, 235), -5px -5px 60px rgb(178, 178, 178);   
    border-radius: 15px;
    End of original box shadow settings*/

  /* New box shadow  2024-09-23*/
  background-color: whitesmoke;
  border: rgb(90, 90, 90, 0.2) 1px solid;
  -webkit-box-shadow: 7px 4px 9px -3px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 7px 4px 9px -3px rgba(0, 0, 0, 0.75);
  box-shadow: 7px 4px 12px -3px rgba(0, 0, 0, 0.75);

  /*
    --hero-overlay-color: #1d1d1d; 
    --hero-overlay-color-lighter: #5a5a5a;  */

  transition: all 0.5s;
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 10vh;
  width: 10vh;

  background-color: rgb(42, 42, 42);
  border-radius: 50%;

  position: absolute;
  margin: auto;
  transition: all 0.5s;
}

.service-card:hover .icon-container {
  margin-top: 0px;
  background-color: rgb(42, 42, 42);
  width: 100%;
  height: 100%;
  border-radius: 0px;
  transition: all 0.4s;
}

.service-card:hover p {
  color: var(--primary-light);
  transition: all 0.6s;
}

.service-icon {
  height: 90%;
  width: 90%;

  max-width: 6vh;
  max-height: 6vh;

  filter: brightness(0) saturate(100%) invert(100%) sepia(39%) saturate(3676%)
    hue-rotate(23deg) brightness(100%) contrast(99%);
}

.service-card p {
  font-size: 1.3rem;
  font-family: var(--regular-text);
  font-weight: 600;
  color: black;
  text-align: center;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.7s;
}

.service-card,
.services-section h4 {
  animation: fade-in linear;
  animation-timeline: view();
  animation-range-start: -30vh;
  animation-range-end: 40vh;
}
@keyframes fade-in {
  from {
    scale: 0.3;
    opacity: 0.3;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

/* Services page design */
.services-intro {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: 60px 0;
  background-color: #f5f5f7;
  position: relative;
  overflow: hidden;
}

.services-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.8),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(240, 240, 245, 0.8),
      transparent 40%
    );
  z-index: 0;
}

.services-intro-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.services-intro-title h1 {
  color: #1d1d1f;
  font-family: var(--regular-text);
  font-weight: 600;
  font-size: 2.8rem;
  text-align: center;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-top: 10vh;
}

.services-intro-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
  width: 90%;
  max-width: 1000px;
  justify-content: center;
  margin: 0 auto;
}

/* Modern Apple-style glassmorphism cards */
.service-intro-card {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.service-intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  z-index: 1;
}

.service-intro-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.service-card-image-container {
  width: 100%;
  height: 210px;
  min-height: 210px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.service-card-image-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
  z-index: 1;
}

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

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

.service-card-content {
  flex: 1;
  min-height: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-intro-card h2 {
  color: #1d1d1f;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  font-family: var(--regular-text);
  flex-shrink: 0;
}

.service-intro-card ul {
  list-style: none;
  padding: 0 0.5rem 0 0;
  margin: 0 0 16px;
  flex: 0 0 auto;
  min-height: 8.5em;
  overflow-y: hidden;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  position: relative;
}

.service-intro-card ul::-webkit-scrollbar {
  width: 5px;
}

.service-intro-card ul::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  margin: 5px 0;
}

.service-intro-card ul::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.service-intro-card ul:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}

.service-intro-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: #1d1d1f;
  font-size: 1.05rem;
  line-height: 1.5;
  font-family: var(--regular-text);
}

.service-intro-card ul li:last-child {
  margin-bottom: 0;
}

.service-intro-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgb(51, 51, 51);
  font-weight: bold;
}

.learn-more-button {
  align-self: center;
  font-family: var(--regular-text);
  font-size: 1rem;
  font-weight: 600;
  background-color: rgb(51, 51, 51);
  color: var(--primary-light);
  border: none;
  border-radius: 30px;
  padding: 0.8rem 0;
  width: 85%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-top: auto;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.learn-more-button:hover {
  background-color: rgb(40, 40, 40);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 90%;
}

.learn-more-button:active {
  background-color: rgb(45, 45, 45);
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Reszponzív design */
@media (max-width: 1400px) {
  .card-container {
    width: 95%;
    max-width: 900px;
    gap: 35px 25px;
  }

  .service-intro-card {
    height: auto;
  }

  .service-card-image-container {
    height: 200px;
    min-height: 200px;
  }
}

@media (max-width: 1100px) {
  .card-container {
    max-width: 820px;
    gap: 30px 20px;
  }

  .service-intro-card {
    height: auto;
  }

  .service-card-image-container {
    height: 190px;
    min-height: 190px;
  }

  .service-intro-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .service-intro-card ul li {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
}

@media (max-width: 992px) {
  .services-intro {
    padding: 40px 0;
  }

  .services-intro-title h1 {
    font-size: 2.4rem;
  }

  .card-container {
    max-width: 700px;
    gap: 25px;
  }

  .service-intro-card {
    height: auto;
  }

  .service-card-image-container {
    height: 180px;
    min-height: 180px;
  }

  .service-card-content {
    padding: 22px 20px;
  }

  .learn-more-button {
    font-size: 0.95rem;
    padding: 0.7rem 0;
  }
}

@media (max-width: 768px) {
  .services-intro-title h1 {
    font-size: 2rem;
    padding: 0 15px;
  }

  .card-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 30px;
  }

  .service-intro-card {
    width: 100%;
    height: auto;
  }

  .service-card-content {
    padding: 25px;
  }

  .service-intro-card h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
  }

  .service-intro-card ul li {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .learn-more-button {
    width: 90%;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .services-intro-title h1 {
    font-size: 1.8rem;
  }

  .card-container {
    width: calc(100% - 40px);
    gap: 25px;
  }

  .service-intro-card {
    height: auto;
  }

  .service-card-image-container {
    height: 160px;
    min-height: 160px;
  }

  .service-card-content {
    padding: 20px 18px;
  }

  .service-intro-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .learn-more-button {
    font-size: 0.9rem;
    padding: 0.7rem 0;
    width: 95%;
  }
}

/*ACTUAL CONTENT */
.services-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50vh;
  background-color: var(--white-orange);
}
