/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dynamic viewport height support for mobile browsers */
:root {
  --viewport-height: 100vh;
  --viewport-width: 100vw;
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
  }
}

@supports (width: 100dvw) {
  :root {
    --viewport-width: 100dvw;
  }
}

body, html {
  height: 100%;
  font-family: 'Space Mono', monospace;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.4;
  /* Prevent overscroll on mobile and provide fallback background */
  overscroll-behavior-y: contain;
  min-height: 100vh;
}

/* Page States */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--viewport-height);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
  opacity: 1;
  visibility: visible;
}

.page.blur {
  filter: blur(20px);
  transform: scale(1.05);
}

/* Floating Navigation Bubbles */
.nav-bubbles {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.nav-left-bubble {
  display: flex;
}

.nav-right-bubble {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  position: relative;
}

.bubble {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.bubble:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.menu-trigger .page-name {
  color: #ccc;
  margin-right: 8px;
}

.menu-trigger .page-name.current-page {
  color: #fff;
}

.menu-trigger i {
  opacity: 0.8;
}

.bubble.logo {
  font-weight: 400;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bubble.logo:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Menu Dropdown */
.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-section {
  margin-bottom: 20px;
}

.menu-section:last-child {
  margin-bottom: 0;
}

.menu-section h3 {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-links li {
  margin: 0 0 8px 0;
}

.menu-links li:last-child {
  margin-bottom: 0;
}

.menu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.menu-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.menu-links a i {
  font-size: 14px;
  min-width: 16px;
  color: #ccc;
}

.nav-items {
  margin-bottom: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-item span {
  color: #999;
  font-size: 11px;
  min-width: 20px;
}

/* Hero Page */
.hero {
  background: linear-gradient(135deg, #111 0%, #000 100%);
  background-image: url('IMG_2505.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  height: var(--viewport-height);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.overlay {
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
  width: 100%;
  padding: 60px 24px 40px;
  text-align: center;
}

/* Static Social Icons */
.floating-icons {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: nowrap;
  max-width: 90vw;
}

.floating-icons a {
  color: #fff;
  font-size: 28px;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0.85;
}

.floating-icons a:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Music Page */
.music-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--viewport-height);
  background: linear-gradient(135deg, #111 0%, #000 100%);
  background-image: url('IMG_2505.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.6s;
  overflow-y: auto;
  padding: 60px 20px 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-appearance: none;
  -webkit-overflow-scrolling: auto;
  /* Ensure full coverage */
  min-height: 100vh;
}

.music-page::-webkit-scrollbar {
  display: none;
}

.music-page.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

.music-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

.albums-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.album-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.album-card {
  cursor: pointer;
  transition: all 0.4s ease;
  transform: translateY(0);
  opacity: 0;
  animation: slideDown 0.6s ease forwards;
}

.album-card:nth-child(1) { animation-delay: 0.1s; }
.album-card:nth-child(2) { animation-delay: 0.2s; }
.album-card:nth-child(3) { animation-delay: 0.3s; }
.album-card:nth-child(4) { animation-delay: 0.4s; }
.album-card:nth-child(5) { animation-delay: 0.5s; }
.album-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideDown {
  from {
    transform: translateY(-100px) rotateZ(-10deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) rotateZ(0deg);
    opacity: 1;
  }
}

.album-card:hover {
  transform: translateY(-12px) scale(1.02);
}

.album-artwork {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  transition: all 0.4s ease;
}

.album-card:hover .album-artwork {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}

.album-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-info {
  display: none;
}

.album-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.album-type {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.album-date {
  font-size: 12px;
  color: #999;
}

/* Album Detail Page - Updated to match music page methodology exactly */
.album-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #111 0%, #000 100%);
  background-image: url('IMG_2505.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.6s;
  overflow-y: auto;
  padding: 60px 20px 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-appearance: none;
  -webkit-overflow-scrolling: auto;
  /* Ensure full coverage */
  min-height: 100vh;
}

.album-detail::-webkit-scrollbar {
  display: none;
}

.album-detail.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

.album-detail::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

.album-detail-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.album-detail-artwork {
  width: 280px;
  height: 280px;
  margin: 40px auto 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.album-detail-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-detail-title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.album-detail-meta {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 40px;
}

.streaming-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
  justify-items: center;
}

.streaming-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
}

.streaming-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.streaming-link i {
  font-size: 18px;
  min-width: 20px;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Fluid Responsive Design - Works on ALL screen sizes */
@media screen and (max-width: 768px) {
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

  body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }

  /* Navigation - scales with screen */
  .nav-bubbles {
    top: 2vh;
    left: 3vw;
    right: 3vw;
  }

  .bubble {
    padding: clamp(8px, 1.5vh, 16px) clamp(12px, 4vw, 24px);
    font-size: clamp(11px, 3vw, 16px);
  }

  .bubble.logo {
    font-size: clamp(12px, 3vw, 18px);
  }

  .menu-dropdown {
    min-width: clamp(180px, 50vw, 300px);
    right: -2vw;
  }

  /* Home page elements */
  .hero {
    background-attachment: scroll;
    min-height: var(--viewport-height);
    overflow: hidden;
    max-height: var(--viewport-height);
  }

  .overlay {
    padding: clamp(6vh, 10vh, 15vh) clamp(16px, 4vw, 32px) clamp(20vh, 25vh, 30vh);
  }

  .floating-icons {
    bottom: clamp(20px, 4vh, 40px);
    gap: clamp(12px, 3vw, 24px);
    max-width: 92vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .floating-icons::-webkit-scrollbar {
    display: none;
  }

  .floating-icons a {
    font-size: clamp(24px, 6vw, 36px);
    flex-shrink: 0;
    min-width: clamp(40px, 8vw, 60px);
  }

  /* Music page */
  .music-page {
    background-attachment: scroll;
    padding: clamp(6vh, 8vh, 12vh) clamp(16px, 4vw, 32px) clamp(10vh, 12vh, 15vh);
    min-height: var(--viewport-height);
  }

  .albums-container {
    padding: clamp(12px, 2vh, 24px) clamp(12px, 3vw, 24px);
  }

  .album-grid {
    max-width: clamp(280px, 75vw, 400px);
    gap: clamp(20px, 4vh, 40px);
  }

  /* Album detail page - matches music page methodology */
  .album-detail {
    background-attachment: scroll;
    padding: clamp(6vh, 8vh, 12vh) clamp(16px, 4vw, 32px) clamp(10vh, 12vh, 15vh);
    min-height: 100vh;
  }

  .album-detail-content {
    max-width: 90vw;
    padding: 0 clamp(8px, 2vw, 16px);
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* Album artwork - scales perfectly with screen */
  .album-detail-artwork {
    width: clamp(200px, 80vw, 350px);
    height: clamp(200px, 80vw, 350px);
    margin: clamp(24px, 6vh, 48px) auto clamp(16px, 4vh, 32px);
  }

  .album-detail-title {
    font-size: clamp(18px, 5vw, 28px);
    margin-bottom: clamp(8px, 2vh, 16px);
  }

  .album-detail-meta {
    font-size: clamp(12px, 3vw, 16px);
    margin-bottom: clamp(24px, 6vh, 40px);
  }

  /* Streaming links - responsive grid */
  .streaming-links {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(16px, 3vh, 24px);
    margin-bottom: clamp(32px, 8vh, 60px);
    width: 100%;
    max-width: 100%;
    justify-items: center;
  }

  .streaming-link {
    padding: clamp(16px, 3vh, 24px) clamp(20px, 5vw, 28px);
    font-size: clamp(14px, 3.5vw, 16px);
    min-height: clamp(56px, 7vh, 68px);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 90vw;
    box-sizing: border-box;
  }
  
  .streaming-link i, 
  .streaming-link img {
    width: clamp(18px, 4.5vw, 22px);
    height: clamp(18px, 4.5vw, 22px);
    margin-right: clamp(16px, 4vw, 20px);
  }
}

/* Only prevent scrolling on home page for small screens */
@media screen and (max-width: 480px) {
  body, html {
    overflow-y: hidden;
  }
  
  /* Force single column for streaming links on very small screens */
  .streaming-links {
    grid-template-columns: 1fr;
  }
}

/* Info Page - Updated to match album detail page methodology exactly */
.info-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #111 0%, #000 100%);
  background-image: url('IMG_2505.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.6s;
  overflow-y: auto;
  padding: 60px 20px 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-appearance: none;
  -webkit-overflow-scrolling: auto;
  /* Ensure full coverage */
  min-height: 100vh;
}

.info-page::-webkit-scrollbar {
  display: none;
}

.info-page.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

.info-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

.info-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.info-image {
  width: 280px;
  height: 280px;
  margin: 40px auto 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-text {
  margin-bottom: 40px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.info-text p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
  letter-spacing: 0.3px;
}

.info-text p:last-child {
  margin-bottom: 0;
}

.info-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.info-footer .social-icons {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.info-footer .social-icons a {
  color: #fff;
  font-size: 28px;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0.85;
}

.info-footer .social-icons a:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Info page mobile responsive - matches album detail page methodology */
@media screen and (max-width: 768px) {
  .info-page {
    background-attachment: scroll;
    padding: clamp(6vh, 8vh, 12vh) clamp(16px, 4vw, 32px) clamp(10vh, 12vh, 15vh);
    min-height: 100vh;
  }

  .info-content {
    max-width: 90vw;
    padding: 0 clamp(8px, 2vw, 16px);
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* Info image - scales perfectly with screen */
  .info-image {
    width: clamp(200px, 60vw, 280px);
    height: clamp(200px, 60vw, 280px);
    margin: clamp(24px, 6vh, 48px) auto clamp(16px, 4vh, 32px);
  }

  .info-text {
    max-width: 100%;
    margin-bottom: clamp(24px, 6vh, 40px);
  }

  .info-text p {
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.5;
    margin-bottom: clamp(16px, 4vh, 24px);
  }

  .info-footer .social-icons {
    gap: clamp(16px, 5vw, 32px);
  }

  .info-footer .social-icons a {
    font-size: clamp(24px, 6vw, 32px);
  }
}

/* Upcoming Page - Following info page pattern */
.upcoming-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #111 0%, #000 100%);
  background-image: url('IMG_2505.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.6s;
  overflow: hidden;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-appearance: none;
  /* Ensure full coverage */
  min-height: 100vh;
}

.upcoming-page::-webkit-scrollbar {
  display: none;
}

.upcoming-page.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

.upcoming-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

.upcoming-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upcoming-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 100%;
}

.upcoming-embed iframe {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  height: 80vh !important;
}

/* Upcoming page mobile responsive */
@media screen and (max-width: 768px) {
  .upcoming-page {
    background-attachment: scroll;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
  }

  .upcoming-content {
    max-width: 90vw;
    padding: 0;
    box-sizing: border-box;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upcoming-embed iframe {
    max-width: 100%;
    width: 100% !important;
    height: 80vh !important;
    min-height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .upcoming-embed iframe {
    height: 80vh !important;
    min-height: 280px;
  }
}
