

/* ================================
   DIGITAL VISITING CARD SYSTEM
   PREMIUM VERSION – FULL REPLACE
================================ */

/* RESET ISOLATION */
#mdh-card-root {
  all: initial;
}

/* =====================================
   PREMIUM GOLD CONTACT ICON
===================================== */

.mdh-contact-icon {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 58px;   /* matched to WhatsApp */
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Gold circle base – refined */
.mdh-contact-icon::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f4d77b, #c9a227);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.25),
    inset 0 4px 8px rgba(255,255,255,0.35),
    inset 0 -6px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  z-index: -1;
}

/* Icon size adjusted */
.location-icon {
  width: 26px;
  height: 26px;
  fill: #111;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
  transition: transform 0.3s ease;
}

/* Hover lift */
.mdh-contact-icon:hover::before {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 6px 12px rgba(255,255,255,0.4),
    inset 0 -8px 16px rgba(0,0,0,0.35);
}

.mdh-contact-icon:hover .location-icon {
  transform: scale(1.08);
}

/* Scroll hide */
.mdh-contact-icon.mdh-scroll-hide {
  opacity: 0.5;
  transform: translateX(-20px);
}

/* =====================================
   OVERLAY
===================================== */

.mdh-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.mdh-overlay.active {
  display: flex;
}

/* =====================================
   CARD WRAPPER
===================================== */

.mdh-card-wrapper {
  perspective: 1400px;
  position: relative;
}

/* =====================================
   CARD
===================================== */

.mdh-card {
  width: min(90vw, 420px);
  aspect-ratio: 16 / 9;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================
   CARD FACES
===================================== */

.mdh-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

/* Back side */
.mdh-card-back {
  background-image: url("card-back.jpg");
}

/* Front side */
.mdh-card-front {
  background-image: url("card-front.jpg");
  transform: rotateY(180deg);
}

/* Flip */
.mdh-card.is-flipped {
  transform: rotateY(180deg);
}

/* =====================================
   CLICKABLE ZONES
===================================== */

.mdh-zone {
  position: absolute;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mdh-zone:hover {
  background: rgba(255,255,255,0.05);
}

.mdh-zone:active {
  background: rgba(255,255,255,0.08);
}

/* Phone numbers */
.mdh-phone-1 {
  bottom: 18%;
  left: 10%;
  width: 35%;
  height: 14%;
}

.mdh-phone-2 {
  bottom: 18%;
  right: 10%;
  width: 35%;
  height: 14%;
}

/* Addresses */
.mdh-studio {
  top: 17%;
  left: 15%;
  width: 70%;
  height: 14%;
}

.mdh-office {
  top: 32%;
  left: 15%;
  width: 70%;
  height: 18%;
}

.mdh-experience {
  top: 50%;
  left: 15%;
  width: 70%;
  height: 16%;
}

/* =====================================
   HINT TEXT
===================================== */

.mdh-card-hint {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}