/* FONTS */
@font-face {
  font-family: "Atteron";
  src: url("Atteron.ttf") format("truetype");
}

@font-face {
  font-family: "Questrial";
  src: url("Questrial.ttf") format("truetype");
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root – viewport never scrolls */
html,
body {
  height: 100%;
  background-color: #000;
  overflow: hidden;           /* lock screen */
  overscroll-behavior: none;  /* reduce Safari bounce */
}

body {
  font-family: "Atteron", sans-serif;
  color: white;
}

/* APP – single global background that NEVER moves or disappears */
.app {
  width: 100vw;
  height: 100vh;
  position: relative;
  background-image: url("https://i.imgur.com/JijqSq4.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* HOME PAGE – transparent layer on top of background */
.home-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* HAMBURGER */
.hamburger-menu {
  position: absolute;
  top: 80px;
  left: 80px;
  width: 24px;
  height: 18px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 100;

  opacity: 1;
  transition: opacity 0.4s ease;
}

.hamburger-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

.hamburger-menu div {
  width: 100%;
  height: 3px;
  background: white;
}

/* MENU OVERLAY – fixed, covers screen, only this fades for menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  cursor: pointer;
  z-index: 200;

  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3); /* overlay, NOT background image */
  transition: opacity 1s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay.closed {
  opacity: 0;
  pointer-events: none;
}

/* MENU PANEL */
.menu-content {
  width: 480px;
  height: 100vh;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(7, 17, 17, 0.7),
    rgba(0, 0, 0, 0.85)
  );
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: default;

  opacity: 0;
  transition: opacity 1s ease;
}

/* Staggered fade for menu inner elements */
.menu-content h1,
.menu-content nav,
.menu-logo-icon {
  opacity: 0;
  transition: opacity 1s ease 0.15s;
}

/* When menu opens */
.menu-overlay.open .menu-content {
  opacity: 1;
}

.menu-overlay.open .menu-content h1,
.menu-overlay.open .menu-content nav,
.menu-overlay.open .menu-content .menu-logo-icon {
  opacity: 1;
}

/* MENU TITLE */
.menu-content h1 {
  font-family: "Atteron", serif;
  font-size: 40px;
  letter-spacing: 8px;
  margin-bottom: 80px;
  text-align: center;
}

/* MENU NAV (no scroll) */
.menu-content nav {
  display: flex;
  flex-direction: column;
  gap: 35px;
  overflow: hidden; /* menu never scrolls */
}

.menu-content nav button {
  background: none;
  border: none;
  color: white;
  font-family: "Atteron", serif;
  font-size: 24px;
  cursor: pointer;
  letter-spacing: 3px;
  transition: 0.3s;
}

.menu-content nav button:hover {
  color: #bbb;
  transform: translateX(10px);
}

/* MENU LOGO ICON */
.menu-logo-icon img {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
}

/* MOBILE-ONLY CLOSE BUTTON INSIDE MENU */
.menu-close-btn {
  display: none; /* enabled in mobile breakpoint */
}

/* CONTENT PAGES */
/* Fixed overlay layer, non-scrollable */
@keyframes contentFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.content-page {
  position: fixed;
  inset: 0;
  z-index: 150;

  display: flex;
  align-items: stretch;
  justify-content: flex-start;

  /* Dark overlay, fixed */
  background: rgba(0, 0, 0, 0.75);

  opacity: 0;
  animation: contentFadeIn 1s forwards; /* 1s fade IN */
}

/* Fade OUT on close: overlay + text fade, background stays */
.content-page.closing {
  animation: none;
  opacity: 0;
  transition: opacity 1s ease;
}

/* SCROLL CONTAINER – ONLY THIS SCROLLS */
.content-inner {
  flex: 1;
  padding: 80px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Content inside scroll container */
.page-content {
  max-width: 900px;
  width: 100%;
}

/* Upload page: allow full width so 50/50 layout works */
.upload-page .page-content {
  max-width: 100%;
}

.page-content h1 {
  font-family: "Atteron", serif;
  font-size: 42px;
  letter-spacing: 6px;
  margin-bottom: 40px;
}

.page-content p {
  font-family: "Questrial", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* CLOSE BUTTON – fixed relative to viewport, won't move on scroll */
.close-btn {
  position: fixed;
  top: 80px;
  right: 80px;
  width: 30px;
  height: 30px;
  font-size: 30px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 300;
  transition: transform 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
  color: #bbb;
  transform: rotate(90deg);
}

/* UPLOAD PAGE LAYOUT */
.upload-page .upload-layout {
  display: flex;
  gap: 80px;
  position: relative;
  z-index: 1;
}

/* Upload text side */
.upload-text {
  flex: 1;
}

.upload-text h1 {
  font-family: "Atteron", serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 6px;
  margin-bottom: 40px;
}

.upload-text p {
  font-family: "Questrial", sans-serif;
  font-size: 20px;
  line-height: 1.9;
  margin-bottom: 28px;
  font-weight: 300;
}

.upload-text ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 30px 0;
}

.upload-text li {
  font-family: "Questrial", sans-serif;
  font-size: 20px;
  line-height: 1.9;
  margin-bottom: 22px;
  padding-left: 30px;
  position: relative;
  font-weight: 300;
}

.upload-text li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: white;
  font-size: 24px;
}

/* Upload form side */
.upload-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-form form {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-form input,
.upload-form textarea {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 20px;
  font-family: "Questrial", sans-serif;
  font-size: 18px;
  border-radius: 10px;
}

.upload-form textarea {
  min-height: 150px;
}

.upload-form button {
  background: white;
  color: black;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  letter-spacing: 3px;
  cursor: pointer;
  border-radius: 10px;
}

.upload-form button:hover {
  background: #ddd;
}

/* SOUNDCLOUD BLOCK */
.soundcloud-container {
  margin-top: 40px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

/* KOKOPELLI FIXED LOGO – desktop */
.kokopelli-fixed-logo {
  position: fixed;
  bottom: 80px;
  right: 80px;
  width: 315px; /* 2.5x desktop */
  height: auto;
  z-index: 500;
}

.kokopelli-fixed-logo img {
  width: 100%;
  height: auto;
}

/* TABLET BREAKPOINT */
@media (max-width: 1024px) {
  .content-inner {
    padding: 60px;
  }

  .upload-page .upload-layout {
    gap: 40px;
  }
}

/* PHONE BREAKPOINT */
@media (max-width: 768px) {

  .hamburger-menu {
    top: 40px;
    left: 30px;
  }

  .menu-content {
    width: 100%;
    padding: 60px 30px;
  }

  .menu-content h1 {
    font-size: 32px;
    letter-spacing: 5px;
    margin-bottom: 50px;
  }

  .menu-content nav button {
    font-size: 20px;
    text-align: center;
  }

  .menu-logo-icon img {
    width: 80px;
    height: 80px;
    bottom: 40px;
  }

  /* Mobile-only close button */
  .menu-close-btn {
    display: block;
    position: absolute;
    top: 30px;
    right: 24px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .menu-close-btn:hover {
    color: #bbb;
    transform: rotate(90deg);
  }

  /* Content pages on mobile */
  .content-inner {
    padding: 40px 24px;
  }

  .page-content h1 {
    font-size: 30px;
    margin-bottom: 28px;
  }

  .page-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .close-btn {
    top: 30px;
    right: 24px;
    font-size: 26px;
  }

  .upload-page .upload-layout {
    flex-direction: column;
    gap: 32px;
    height: auto;
    margin-top: 40px;
  }

  .upload-text h1 {
    font-size: 30px;
    margin-bottom: 28px;
  }

  .upload-text p,
  .upload-text li {
    font-size: 16px;
    line-height: 1.7;
  }

  .upload-form form {
    max-width: 100%;
  }

  .upload-form button {
    width: 100%;
  }

  /* MOBILE KOKOPELLI SIZE + CENTER + FADE */
  .kokopelli-fixed-logo {
    bottom: 80px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 189px;           /* 1.5x mobile */
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  .kokopelli-fixed-logo img {
    width: 100%;
  }

  /* Visible only on home when menu is closed */
  .kokopelli-fixed-logo.state-home-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* When menu opens or you leave home, fade it out */
  .kokopelli-fixed-logo.state-other {
    opacity: 0;
    pointer-events: none;
  }
}
