
body {
  margin: 0;
  background: #07070c;
  color: white;
  font-family: Arial, sans-serif;
  overflow: hidden;

  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* BACKGROUND */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background: radial-gradient(circle at 30% 30%, #2a2a6a, transparent 40%),
              radial-gradient(circle at 70% 60%, #1b1b3a, transparent 40%),
              radial-gradient(circle at 50% 50%, #0b0b14, #0b0b14);

  animation: bgMove 12s infinite alternate ease-in-out;
}

@keyframes bgMove {
  0% { transform: scale(1); }
  100% { transform: scale(1.1) translate(5%, -5%); }
}

/* SCREEN SYSTEM */
.screen {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  gap: 18px;

  opacity: 0;
  filter: blur(10px);
  transform: scale(1.02);

  pointer-events: none;

  transition: 0.5s ease;
}

.screen.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  pointer-events: auto;
}

.hidden {
  display: none !important;
}

/* INTRO */
#intro {
  position: fixed;
  inset: 0;
  background: #07070c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  animation: introFade 1.4s ease forwards;
  animation-delay: 1.2s;
}

#intro h1 {
  letter-spacing: 10px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes introFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* TEXT */
.title {
  font-size: 3rem;
  letter-spacing: 4px;
}

.subtitle {
  color: #aaa;
}

/* GLASS MENU */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;

  max-width: 600px;

  padding: 20px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.menu button {
  padding: 12px 18px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);

  color: white;
  border-radius: 12px;

  cursor: pointer;

  min-width: 120px;

  transition: 0.25s ease;
}

.menu button:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.15);
}


#creditBtn {
  position: absolute;
  bottom: 18px;
  right: 18px;

  padding: 8px 12px;

  font-size: 12px;
  text-decoration: none;

  color: white;

  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);

  border-radius: 10px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index: 20;

  transition: 0.2s ease;
}

#creditBtn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

/* ===== GALLERY FIXED ===== */

.viewer {
  position: relative;
  width: 90%;
  max-width: 900px;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden; /* IMPORTANT */
}

#slideshow {
  width: 100%;
  max-height: 70vh;

  object-fit: contain;

  background: #0f0f18;
  border-radius: 18px;

  position: relative;
  z-index: 1;

  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ARROWS (ONLY ONCE, CLEAN) */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2.5rem;

  background: rgba(255,255,255,0.08);
  border-radius: 14px;

  cursor: pointer;

  z-index: 10;

  transition: 0.2s ease;
}

.arrow:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.05);
}

.left { left: 10px; }
.right { right: 10px; }

/* TOPBAR */
.topbar {
  position: absolute;
  top: 20px;
  left: 20px;
}

.topbar button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

/* SLIDE ANIMATION */
.slide-in {
  animation: slideIn 0.35s ease forwards;
}

.slide-out {
  animation: slideOut 0.35s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-60px);
    opacity: 0;
  }
}

/* RIPPLE */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
