/* --- Portrait-Only Rotation Overlay --- */
#rotate-device-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0f172a; /* Deep professional dark background */
  color: #ffffff;
  z-index: 99999; /* Sits above all page content */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: inherit;
}

#rotate-device-overlay .rotate-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  stroke: #38bdf8; /* Brand accent color */
  animation: gentle-rotate 2.5s infinite ease-in-out;
}

#rotate-device-overlay h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

#rotate-device-overlay p {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 320px;
  line-height: 1.5;
}

/* Keyframe animation to visually prompt rotation */
@keyframes gentle-rotate {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(90deg); }
  60% { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}

/* Trigger: Show ONLY on mobile/tablets (max width 1024px) when in landscape mode */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  #rotate-device-overlay {
    display: flex !important;
  }
}