/* Resume Image Popup Styles */
.resume-image-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Ensure the image preview appears above other popups by default */
  z-index: 13000;
  pointer-events: all;
  animation: floatIn 0.5s ease-out;
  transition: top 0.2s, left 0.2s, transform 0.2s;
}
/* Huge popup for resume preview */
.resume-image-popup .popup-card.popup-huge {
  width: 80vw;
  height: 90vh;
  max-width: 1200px;
  max-height: 95vh;
  min-width: 350px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 40px;
  padding-right: 40px;
}
.resume-image-popup .popup-card {
  background: #f5f5dc;
  border: 4px solid #000000;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(139, 69, 19, 0.1);
  padding: 10px 10px 10px 0px;
  min-width: 500px;
  font-family: 'VT323', monospace;
  transform: rotate(-1deg);
  position: relative;
  animation: subtleFloat 3s ease-in-out infinite;
  image-rendering: smooth;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  overflow: hidden;
  cursor: grab;
}
.resume-image-popup .popup-card.draggable {
  cursor: grab;
}
.resume-image-popup .popup-card.dragging {
  cursor: grabbing;
}
.resume-image-popup .resume-image {
  max-width: 95%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.resume-image-popup .popup-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0px;
  padding-bottom: 15px;
  border-bottom: 3px solid #000000;
  position: relative;
  z-index: 2;
}
.resume-image-popup .popup-title {
  font-size: 28px;
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.resume-image-popup .popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
  font-family: 'VT323', monospace;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s steps(2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3),
    inset -1px -1px 0 rgba(0, 0, 0, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10;
}
.resume-image-popup .popup-close:hover {
  background: #ff0000;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4),
    inset -1px -1px 0 rgba(0, 0, 0, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.3);
}
.resume-image-popup .popup-close:active {
  transform: scale(0.95);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4),
    inset -1px -1px 0 rgba(0, 0, 0, 0.4),
    inset 1px 1px 0 rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .resume-image-popup .popup-card {
    min-width: 280px;
    padding: 10px;
    min-height:1200px;
  }
  .resume-image-popup .popup-title {
    font-size: 22px;
  }
}
