/* =========================================================
   serviceS GRID
========================================================= */

.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  perspective: 1200px;
}

/* =========================================================
   service CARD BASE
========================================================= */

.service-card {
  cursor: pointer;
  position: relative;

  border-radius: 16px;
  overflow: hidden;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);

  transition: transform 0.5s ease, border 0.5s ease;
  transform-style: preserve-3d;
}

/* HOVER LIFT */
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(200,169,106,0.4);
}

/* =========================================================
   INNER WRAPPER (3D LAYER)
========================================================= */

.service-card__inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* =========================================================
   IMAGE LAYER
========================================================= */

.service-card__media {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1.1);
  transition: transform 1s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
}

/* =========================================================
   CONTENT LAYER
========================================================= */

.service-card__content {
  padding: 20px;

  transform: translateZ(40px);
}

.service-card__content h3 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.service-card__content p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.service-card__content span {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* =========================================================
   3D LIGHTING EFFECT
========================================================= */

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255,255,255,0.12),
    transparent 45%
  );

  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

/* =========================================================
   MODAL BACKDROP
========================================================= */

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================================
   OVERLAY
========================================================= */

/* OVERLAY */
.service-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(18px);
}

/* =========================================================
   MODAL CONTENT BOX
========================================================= */

/* CONTENT */
.service-modal__content {
  width: min(1000px, 92%);
  max-height: 90vh;

  overflow-y: auto;

  background: linear-gradient(
    145deg,
    rgba(20,20,20,0.9),
    rgba(10,10,10,0.9)
  );

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;

  position: relative;

  transform: scale(0.85) translateY(40px);
  opacity: 0;
}
/* HERO */
.service-modal__hero {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* gradient overlay on hero */
.service-modal__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* BODY */
.service-modal__body {
  padding: 40px;
}

/* TAG */
.service-modal__tag {
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 10px;
}

/* GRID */
.service-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

/* BLOCKS */
.service-modal__block h3 {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.service-modal__block p,
.service-modal__block li {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* CTA */
.service-modal__cta {
  margin-top: 35px;
}

.service-modal__cta button {
  padding: 14px 22px;
  border: 1px solid var(--accent);
  background: transparent;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.service-modal__cta button:hover {
  background: var(--accent);
  color: black;
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.service-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
}