/*--------------------
Global Styles
--------------------*/

/* ===== 1. Typography (Monograf Text Integration) ===== */
@font-face {
    font-family: 'Monograf Text';
    src: url('../fonts/MonografText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Monograf Text';
    src: url('../fonts/MonografText-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body {
    overflow: hidden;
    /* Updated to use Monograf Text */
    font-family: 'Monograf Text', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, black, #220033);
}
strong, b, .bold-text {
  font-weight: 700;
}
/*--------------------
Carousel Styles (unchanged)
--------------------*/
.carousel {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.carousel-item {
  --items: 12;
  --width: clamp(150px, 30vw, 300px);
  --height: clamp(200px, 40vw, 400px);
  --x: calc(var(--active) * 800%);
  --y: calc(var(--active) * 200%);
  --rot: calc(var(--active) * 120deg);
  --opacity: calc(var(--zIndex) / var(--items) * 3 - 2);
  position: absolute;
  z-index: var(--zIndex);
  width: var(--width);
  height: var(--height);
  margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
  border-radius: 10px;
  top: 50%;
  left: 50%;
  transform-origin: 0% 100%;
  box-shadow: 0 10px 50px 10px rgba(0,0,0,0.5);
  background: black;
  pointer-events: all;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform 0.8s cubic-bezier(0,0.02,0,1);
  overflow: hidden;
}

.carousel-item .carousel-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: var(--opacity);
  transition: opacity 0.8s cubic-bezier(0,0.02,0,1);
  font-family: 'Monograf Text', 'Helvetica Neue', sans-serif;
}

.carousel-item .carousel-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-item .title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: clamp(25px,3.5vw,38px);
  text-shadow: 0 4px 4px rgba(0,0,0,0.1);
}

.carousel-item .num {
  position: absolute;
  top: 10px;
  left: 20px;
  color: #fff;
  font-size: clamp(12px,7.6vw,46px);
}

/*--------------------
Cursor
--------------------*/
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  margin: calc(var(--size)*-0.5) 0 0 calc(var(--size)*-0.5);
  transition: transform 0.85s cubic-bezier(0,0.02,0,1);
  display: none;
  pointer-events: none;
  z-index: 10;
}

.cursor2 {
  --size: 2px;
  transition-duration: 0.7s;
}

@media (pointer: fine) {
  .cursor { display: block; }
}

/*--------------------
Popup Card
--------------------*/
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: popupFade 0.4s ease;
}

.popup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* <-- move the image to show top part */
  pointer-events: none;
  z-index: 1; /* ensure text overlays on top */
  position: absolute; /* absolute inside popup-card */
  top: 0;
  left: 0;
}




.popup-close {
  position: absolute;
  top: clamp(12px, 3vw, 16px);
  right: clamp(12px, 3vw, 16px);
  width: clamp(40px, 8vw, 50px);
  height: clamp(14px, 4vw, 25px);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.popup-close span {
  position: relative;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #ff80ff, #00ffff);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-close span::before,
.popup-close span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff80ff, #00ffff);
  border-radius: 1px;
  top: 0;
  left: 0;
  transition: transform 0.3s ease;
}

.popup-close span::before {
  transform: rotate(45deg);
}

.popup-close span::after {
  transform: rotate(-45deg);
}

.popup-close:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 25px rgba(255,128,255,0.6), 0 0 15px rgba(0,255,255,0.4);
  transform: scale(1.2) rotate(2deg);
}

.popup-close:hover span::before {
  transform: rotate(5deg);
}

.popup-close:hover span::after {
  transform: rotate(-5deg);
}



/*--------------------
Popup TTEXT
--------------------*/
.popup-text {
  position: relative; /* overlay on image */
  z-index: 2;
  width: 100%;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(20, 20, 30, 0.22);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
  margin-top: auto; /* stick at bottom */
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.popup-text:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 60px rgba(0,0,0,0.7);
}

.popup-title {
  font-family: 'Monograf Text', sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  color: #A88D59;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  animation: slideInTitle 0.6s ease-out forwards;
}

.popup-num {
  font-family: 'Monograf Text', sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  color: #A88D59;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(10px);
  animation: slideInNum 0.6s ease-out forwards;
  animation-delay: 0.15s;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

@keyframes slideInTitle {
  0% { opacity: 0; transform: translateY(15px) scale(0.95); }
  60% { transform: translateY(-3px) scale(1.02); } /* subtle overshoot */
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInNum {
  0% { opacity: 0; transform: translateY(15px); }
  60% { transform: translateY(-2px); } /* subtle overshoot */
  100% { opacity: 1; transform: translateY(0); }
}
