/* Minimal reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: #030303;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

/* Page wrapper centering stage in viewport */
.page-container {
  position: relative;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #030303;
}

/* Base stage container holding picture and hotspots */
.scalia-stage {
  position: relative;
  display: block;
  margin: auto;
}

.scalia-picture,
.scalia-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Hotspots container layer - locked to the exact aspect ratio stage */
.hotspots-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Transparent clickable link hotspots */
.hotspot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
  border-radius: 4px;
}

.hotspot:hover {
  opacity: 0.85;
}

.hotspot:active {
  opacity: 0.7;
}

/* Accessible focus ring only on keyboard navigation */
.hotspot:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* ----------------------------------------------------
   ULTRA-PREMIUM ROUND WHATSAPP BUTTON (BOTTOM-RIGHT)
   ---------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
  animation: waPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.whatsapp-float:active {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.wa-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes waPopIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* ----------------------------------------------------
   MOBILE / PORTRAIT CONFIGURATION (578 x 1024 Aspect)
   Entire image contained within viewport - NO CROP, NO OVERFLOW
   ---------------------------------------------------- */
@media (max-width: 768px), (orientation: portrait) {
  .scalia-stage {
    width: min(100vw, calc(100dvh * (578 / 1024)));
    height: min(100dvh, calc(100vw * (1024 / 578)));
    aspect-ratio: 578 / 1024;
  }

  .hotspot-instagram {
    left: 20.0%;
    top: 89.0%;
    width: 18.5%;
    height: 9.5%;
  }

  .hotspot-linkedin {
    left: 40.75%;
    top: 89.0%;
    width: 18.5%;
    height: 9.5%;
  }

  .hotspot-email {
    left: 61.5%;
    top: 89.0%;
    width: 18.5%;
    height: 9.5%;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }

  .wa-icon {
    width: 25px;
    height: 25px;
  }
}

/* ----------------------------------------------------
   DESKTOP / LANDSCAPE CONFIGURATION (1024 x 578 Aspect)
   Entire image contained within viewport - NO CROP, NO OVERFLOW
   ---------------------------------------------------- */
@media (min-width: 769px) and (orientation: landscape) {
  .scalia-stage {
    width: min(100vw, calc(100dvh * (1024 / 578)));
    height: min(100dvh, calc(100vw * (578 / 1024)));
    aspect-ratio: 1024 / 578;
  }

  .hotspot-instagram {
    left: 41.2%;
    top: 85.5%;
    width: 4.8%;
    height: 11.5%;
  }

  .hotspot-linkedin {
    left: 47.6%;
    top: 85.5%;
    width: 4.8%;
    height: 11.5%;
  }

  .hotspot-email {
    left: 54.0%;
    top: 85.5%;
    width: 4.8%;
    height: 11.5%;
  }
}
