/* Base Body Styles */
body {
  margin: 0;
  padding: 0;
  background-color: black;
  font-family: 'Decima', monospace;
  cursor: auto;
  transition: color 0.5s ease;
}

body.hide-cursor, 
body.hide-cursor * {
  cursor: none !important;
}

.hide-label #cursorLabel {
  display: none !important;
}

/* Header Layout */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  position: relative;
  z-index: 10;
}

/* Name & Bio Zone */
#nameZone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1000;
  padding: 50px;
  margin: -50px;
}
.name {
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  mix-blend-mode: difference;
}
#bioText {
  max-width: 400px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: white;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
#bioText.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Music Controls & Date */
#musicZone {
  position: relative;
  padding: 20px;
  margin: -20px;
  z-index: 1000;
}
.center-group {
  display: flex;
  align-items: center;
  gap: 15px;
}
.date,
.audio-controls button,
.now-playing {
  color: white;
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.audio-controls button {
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: white;
}
.now-playing {
  font-family: 'Decima', monospace;
  font-size: 0.9rem;
  color: white;
}

/* Image Viewer & Gallery */
#imageViewer {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  touch-action: pan-y; /* Allow vertical scrolling but horizontal swipe detection */
}
#galleryImage {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  transition: transform 0.1s ease-out;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

/* Cursor Label */
#cursorLabel {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 0.9rem;
  mix-blend-mode: difference;
  color: white;
  font-family: 'Decima', monospace;
  transition: opacity 0.4s ease;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Info Button & Zone */
#infoZone {
  padding: 50px;
  margin: -50px;
  position: relative;
  z-index: 1000;
}
#infoBtn {
  position: relative;
  display: inline-block;
  border: 1px solid white;
  padding: 0.3em 0.6em;
  cursor: pointer;
  color: white;
  mix-blend-mode: difference;
}

/* Info Panel */
#infoPanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  z-index: 9999;
  background-color: rgb(255,255,255);
  mix-blend-mode: difference;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
  cursor: default !important;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: width 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
}
#infoPanel.open {
  width: 100vw;
  opacity: 1;
  visibility: visible;
}

/* Email Link */
#emailLink {
  display: block;
  font-size: 2.5rem;
  color: white;
  font-family: 'Decima', monospace;
  text-align: center;
  text-decoration: none;
  margin-bottom: 20px;
  mix-blend-mode: difference;
}
#emailLink:hover {
  text-decoration: underline;
}

/* Close Button (Under email) */
.close-btn {
  background-color: transparent;
  border: 1px solid black;
  color: black; /* Always black */
  font-family: 'Decima', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5em 2em;
  margin-top: 10px;
  align-self: center;
  mix-blend-mode: normal;
  transition: all 0.3s ease;
}
.close-btn:hover {
  background-color: white;
  color: black;
  mix-blend-mode: difference;
}

/* Panel Open Behavior */
body.panel-open header,
body.panel-open footer,
body.panel-open .audio-controls button,
body.panel-open .now-playing,
body.panel-open .date,
body.panel-open #infoBtn {
  mix-blend-mode: normal !important;
  color: transparent !important;
}
body.panel-open #galleryImage {
  filter: blur(10px);
  transition: filter 0.4s ease;
}

/* Footer */
footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Landing Screen */
#landingScreen {
  position: fixed;
  inset: 0;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
#enterBtn {
  font-family: 'Decima', monospace;
  font-size: 1.5rem;
  background-color: white;
  color: black;
  border: none;
  padding: 0.7em 1.5em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#enterBtn:hover {
  background-color: rgb(152,152,152);
}

/* Main Content Fade-In */
#mainContent { display: none; }
#mainContent.fade-in { animation: fadeIn 0.6s forwards; }
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

/* Fonts */
@font-face {
  font-family: 'Suisse Mono';
  src: url('./fonts/SuisseIntlMono-Bold.woff2') format('woff2'),
       url('./fonts/SuisseIntlMono-Bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse Mono';
  src: url('./fonts/SuisseIntlMono-Thin.woff2') format('woff2'),
       url('./fonts/SuisseIntlMono-Thin.woff') format('woff');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'Decima';
  src: url('./fonts/DecimaMono.woff2') format('woff2'),
       url('./fonts/DecimaMono.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Decima';
  src: url('./fonts/DecimaMono-Bold.woff2') format('woff2'),
       url('./fonts/DecimaMono-Bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
