/* Modern Apple-stílusú Szolgáltatások szekció dark mode alapon */
.services-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
  min-height: 80vh;
  height: auto;
  padding: 6rem 0;
  margin: 0;
  overflow: visible;
  background-color: #0d0d0d; /* Sötét háttér az Apple dark mode stílushoz */
  position: relative;
  z-index: 1;
}

/* Háttér gradiens effekt - eltávolítva */
/* .services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(173, 255, 47, 0.05) 0%,
    rgba(173, 255, 47, 0.02) 30%,
    rgba(10, 10, 10, 0) 70%
  );
  z-index: -1;
  transition: background-position 0.5s ease-out;
} */

/* Neon fényhatás a háttéren - eltávolítva */
/* .services-section .background-glow {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 10px;
  background: rgba(229, 130, 0, 0.5);
  filter: blur(70px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: -1;
  animation: glow 4s infinite alternate;
  transition: transform 0.8s ease-out;
} */

/* @keyframes glow {
  0% {
    opacity: 0.3;
    width: 50%;
    filter: blur(70px);
  }
  100% {
    opacity: 0.4;
    width: 60%;
    filter: blur(90px);
  }
} */

/* Szekció címsor - letisztított Apple design */
.services-section h1.section-title {
  font-family: var(--regular-text);
  font-weight: 300; /* Vékony betűstílus */
  font-size: 2.8rem;
  color: var(--primary-light);
  margin-bottom: 4rem;
  text-align: center;
  letter-spacing: 0.04em; /* Növelt betűköz az Apple stílusához */
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* Kártya konténer */
.service-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 80vw;
  max-width: 1200px;
  height: auto;
  gap: 4rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  perspective: 1000px; /* 3D perspektíva a hover hatásokhoz */
}

/* Modern Apple-stílusú szolgáltatás kártyák */
.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  width: 220px;
  height: 320px;
  cursor: pointer;
  text-decoration: none; /* Link esetén ne legyen aláhúzás */
  color: inherit; /* Örökölje a szülő szövegszínét */
  /* Hosszabb átmenet minden tulajdonságra a stabilabb megjelenés érdekében */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(35, 35, 35, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 47, 0.15); /* Greenyellow keretszín - egyezés a visit-us szekcióval */
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  /* CSS változók a JS számára */
  --after-opacity: 0;
  --after-transition-delay: 0.05s;
  /* Anti-villogás: megnöveljük a kártyák valós hover területét, de vizuálisan megtartjuk az eredeti méretet */
  /* A negatív margin és pozitív padding kombinációja növeli a hover területet */
  margin: -10px;
  padding: 10px;
}

/* JS által hozzáadott hover osztály aktív állapot */
.service-card.hover-active {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px -2px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 193, 47, 0.08) inset,
    /* Zöld árnyalat hozzáadva a hover állapothoz is */ 0 0 80px 10px
      rgba(255, 193, 47, 0.05) inset;
}

/* Fény effekt a kártya tetején - az eredeti ::before elem */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  z-index: 3;
}

/* Háttér ragyogás a kártya aljához - az eredeti ::after elem */
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 193, 47, 0.099), transparent);
  opacity: var(--after-opacity);
  transition: opacity 0.5s ease;
  transition-delay: var(--after-transition-delay);
  z-index: 0;
}

/* Ikon konténer */
.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  width: 90px;
  background: linear-gradient(
    135deg,
    rgba(50, 50, 50, 0.9),
    rgba(30, 30, 30, 0.9)
  );
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  position: relative;
  top: -10px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 16px -3px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  z-index: 2;
  /* Átmeneti késleltetés */
  transition-delay: 0.05s;
}

/* Ikon stílus */
.service-icon {
  height: 42px;
  width: 42px;
  /* Alapállapot: ikon színezése a primer világos (narancs) árnyalatra */
  /* Megjegyzés: képfájloknál (SVG/PNG) a pontos var(--primary-light) szín nem közvetlenül alkalmazható, ezért közelítő filtert használunk */
  filter: invert(76%) sepia(66%) saturate(653%) hue-rotate(1deg) brightness(102%) contrast(101%);
  transition: all 0.5s ease;
  opacity: 0.9;
  transition-delay: 0.05s; /* Késleltetett visszaállás */
}

/* Kártya szöveg */
.service-card p {
  font-family: var(--regular-text);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-light);
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 0 1rem;
  z-index: 1;
  letter-spacing: -0.02em;
  /* Késleltetett visszaállás */
  transition-delay: 0.05s;
}

/* Reszponzív beállítások */
@media screen and (min-width: 2551px) {
  .services-section {
    padding: 8rem 0;
  }

  .service-card {
    width: 240px;
    height: 340px;
  }

  .icon-container {
    height: 100px;
    width: 100px;
  }

  .service-card p {
    font-size: 1.4rem;
    bottom: 75px; /* 56px-ről 75px-re növelve */
  }
}

@media screen and (max-width: 1200px) {
  .services-section {
    padding: 6rem 0;
  }

  .service-card {
    width: 200px;
    height: 300px;
  }

  .service-card-container {
    width: 85vw;
    gap: 3rem;
  }

  .icon-container {
    height: 85px;
    width: 85px;
  }

  .service-icon {
    height: 40px;
    width: 40px;
  }

  .service-card p {
    font-size: 1.1rem;
    bottom: 65px; /* 48px-ről 65px-re növelve */
  }
}

@media screen and (max-width: 992px) {
  .services-section {
    padding: 5rem 0;
  }

  .service-card {
    width: 180px;
    height: 280px;
  }

  .service-card-container {
    width: 90vw;
    gap: 2.4rem;
  }

  .icon-container {
    height: 80px;
    width: 80px;
  }

  .service-icon {
    height: 36px;
    width: 36px;
  }

  .service-card p {
    font-size: 1rem;
    bottom: 60px; /* 45px-ről 60px-re növelve */
  }
}

@media screen and (max-width: 880px) and (min-width: 769px) {
  .service-card-container {
    gap: 2rem;
  }

  .service-card {
    width: 170px;
    height: 270px;
  }
}

@media screen and (max-width: 768px) {
  .services-section {
    height: auto;
    padding: 4rem 0;
  }

  .services-section h1.section-title {
    font-size: 2.3rem;
    font-weight: 300; /* Egységes vékony betűstílus */
    margin-bottom: 2.5rem;
    letter-spacing: 0.03em; /* Konzisztens betűköz */
  }

  /* Mobil nézetben egyszerűsítjük a háttér ragyogást - eltávolítva */
  /* .services-section .background-glow {
    width: 70%;
    filter: blur(50px);
  } */

  .service-card-container {
    flex-wrap: wrap;
    justify-content: center;
    width: 90vw;
    max-width: 600px;
    gap: 4rem 2.4rem;
    margin-bottom: 2rem;
  }

  .service-card {
    width: 180px;
    height: 260px;
    /* Kisebb méretű kártyáknál kisebb padding és margin az anti-villogáshoz */
    padding: 8px;
    margin: -8px;
  }

  .service-card p {
    font-size: 1rem;
    bottom: 55px; /* 42px-ről 55px-re növelve */
    color: var(--primary-light);
  }
}



@media screen and (max-width: 540px) {
  .services-section {
    padding: 3.5rem 0;
  }

  .services-section h1.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .service-card-container {
    gap: 3rem;
  }

  .service-card {
    width: 155px;
    height: 240px;
    /* Mobilnézetben csökkentjük a padding és margin értékeket */
    padding: 6px;
    margin: -6px;
  }

  .icon-container {
    height: 70px;
    width: 70px;
    top: -5px;
  }

  .service-icon {
    height: 32px;
    width: 32px;
  }

  .service-card p {
    font-size: 0.9rem;
    bottom: 50px; /* 38px-ről 50px-re növelve */
  }
}

@media screen and (max-width: 375px) {
  .service-card-container {
    width: 90vw;
    gap: 2.4rem;
  }

  .service-card {
    width: 140px;
    height: 220px;
    /* Legkisebb méretű kártyáknál legkisebb padding és margin */
    padding: 5px;
    margin: -5px;
  }

  .icon-container {
    height: 65px;
    width: 65px;
  }

  .service-icon {
    height: 30px;
    width: 30px;
  }

  .service-card p {
    font-size: 0.85rem;
    bottom: 45px; /* 35px-ről 45px-re növelve */
  }
}
