/* Tanı ve Tedavi Teknolojilerimiz — VitalCare tarzı + 3D flip */

.hk-tech {
  --hk-navy: #274760;
  --hk-blue: #307bc4;
  --hk-ice: #d2eaef;
  --hk-slate: #4c7091;
  --hk-sans: "Figtree", "Poppins", system-ui, sans-serif;
  --hk-ui: "Poppins", system-ui, sans-serif;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(48, 123, 196, 0.28), transparent 60%),
    linear-gradient(180deg, #1f3a4d 0%, var(--hk-navy) 48%, #1a3142 100%);
}

.hk-tech__wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.hk-tech__head {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.hk-tech__eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--hk-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(210, 234, 239, 0.78);
}

.hk-tech__title {
  margin: 0;
  font-family: var(--hk-sans);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.hk-tech__rule {
  width: min(18rem, 70%);
  height: 2px;
  margin: 1.15rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(210, 234, 239, 0.55), transparent);
  transform-origin: 50% 50%;
}

.hk-tech__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.hk-tech__card {
  position: relative;
  margin: 0;
  border: 0;
  background: transparent;
  outline: none;
}

.hk-tech__scene {
  perspective: 1500px;
  height: 100%;
}

.hk-tech__flip {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(340px, 42vw, 430px);
  transform-style: preserve-3d;
  will-change: transform;
}

.hk-tech__face {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px rgba(8, 18, 30, 0.28);
}

.hk-tech__face--front {
  background: #1a3142;
}

.hk-tech__face--back {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(48, 123, 196, 0.35), transparent 65%),
    linear-gradient(165deg, #2f5570 0%, var(--hk-navy) 55%, #1a3142 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}

.hk-tech__media {
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  overflow: hidden;
}

.hk-tech__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.hk-tech__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(39, 71, 96, 0.96) 0%,
    rgba(76, 112, 145, 0.55) 42%,
    rgba(255, 255, 255, 0) 72%
  );
  pointer-events: none;
}

.hk-tech__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  padding: 0 1.1rem 1.35rem;
  text-align: center;
}

.hk-tech__copy-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 18rem;
}

.hk-tech__name {
  margin: 0;
  font-family: var(--hk-sans);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.hk-tech__lede {
  margin: 0;
  font-family: var(--hk-ui);
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hk-tech__desc {
  margin: 0;
  font-family: var(--hk-ui);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 18rem;
}

.hk-tech__back-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.hk-tech__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.hk-tech__icon--back {
  width: 3.1rem;
  height: 3.1rem;
  background: rgba(210, 234, 239, 0.16);
}

.hk-tech__icon img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hk-tech__card:focus-visible .hk-tech__scene {
  outline: 2px solid var(--hk-ice);
  outline-offset: 3px;
  border-radius: 32px;
}

@media (max-width: 960px) {
  .hk-tech__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hk-tech__flip {
    min-height: clamp(320px, 58vw, 400px);
  }
}

@media (max-width: 620px) {
  .hk-tech__wrap {
    width: min(1100px, calc(100% - 28px));
  }

  .hk-tech__grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .hk-tech__flip {
    min-height: 360px;
  }

  .hk-tech__face {
    border-radius: 26px;
  }

  .hk-tech__media {
    inset: 7px;
    border-radius: 18px;
  }

  .hk-tech__head {
    margin-bottom: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-tech__flip {
    transition: none !important;
  }
}
