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

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  /* Allow scrolling for content pages, hidden x */
  background: #050510;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
}

/* Background Video Layer */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Promoted from -1 to 0 to sit above body bg */
  pointer-events: all;
  /* Allow clicks for random video swap */
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.65) saturate(1.1);
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out, filter 1.6s ease-in-out;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 20% 20%, rgba(0, 240, 255, 0.1), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(191, 0, 255, 0.1), transparent 50%),
    #050510;
}

.bg-video.active {
  opacity: 1;
  filter: brightness(0.9) saturate(1.3) hue-rotate(15deg);
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35));
  z-index: 1;
  pointer-events: none;
}

.overlay::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 120deg, rgba(191, 0, 255, 0.08), rgba(100, 0, 255, 0.08), rgba(191, 0, 255, 0.08));
  filter: blur(80px);
  opacity: 0.4;
  animation: pulse 14s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes pulse {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: rotate(25deg) scale(1.08);
    opacity: 0.5;
  }

  100% {
    transform: rotate(-20deg) scale(1.04);
    opacity: 0.35;
  }
}

/* Navigation */
nav.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  background: rgba(5, 5, 16, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-brand {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(191, 0, 255, 0.4);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, #00f0ff, #bf00ff);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Page Containers */
.page-container {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  padding-top: 100px;
  /* Space for nav */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo Wrap (Home) */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 24px;
}

.logo-large {
  max-width: 600px;
  width: 80%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 22px rgba(128, 0, 255, 0.25)) drop-shadow(0 0 14px rgba(0, 255, 255, 0.18));
}

.coming-soon {
  margin-top: 24px;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  background: linear-gradient(135deg, #00f0ff 0%, #bf00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

/* Content Pages */
.content-wrap {
  max-width: 900px;
  width: 90%;
  margin: 0 auto 100px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

h1.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  nav.main-nav {
    padding: 15px 20px;
    background: rgba(5, 5, 16, 0.95);
  }

  .nav-content {
    justify-content: space-between;
  }

  .nav-brand {
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: rgba(5, 5, 16, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 500;
    pointer-events: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 20px 40px;
    display: block;
    position: relative;
    z-index: 999;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(191, 0, 255, 0.3);
    cursor: pointer;
  }

  .page-container {
    padding-top: 80px;
  }

  .content-wrap {
    width: 95%;
    padding: 25px;
    margin-bottom: 60px;
  }

  h1.page-title {
    font-size: 2rem;
  }

  .logo-large {
    width: 90%;
  }

  .coming-soon {
    font-size: 20px;
  }

  /* Mobile menu overlay - sits BEHIND nav-links */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    pointer-events: auto;
  }

  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 10;
  width: 100%;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #bf00ff;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  margin-top: 20px;
}

.contact-info h3 {
  color: #bf00ff;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form-container h3 {
  color: #bf00ff;
  margin-bottom: 25px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-details p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.contact-details a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #00f0ff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #bf00ff;
  box-shadow: 0 0 10px rgba(191, 0, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.submit-btn {
  background: transparent;
  border: 1px solid #bf00ff;
  color: #bf00ff;
  padding: 12px 30px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-weight: 600;
  align-self: flex-start;
}

.submit-btn:hover {
  background: #bf00ff;
  color: #fff;
  box-shadow: 0 0 20px rgba(191, 0, 255, 0.4);
}

/* Philosophy Page Styles */
.philosophy-content {
  line-height: 1.8;
  color: #e0e0e0;
}

.philosophy-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #fff;
  border-bottom: 2px solid rgba(191, 0, 255, 0.3);
  padding-bottom: 10px;
}

.philosophy-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: #bf00ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.philosophy-content blockquote {
  margin: 25px 0;
  padding: 20px 25px;
  border-left: 3px solid #00f0ff;
  background: rgba(0, 240, 255, 0.05);
  font-style: italic;
  color: #ccc;
}

.philosophy-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.philosophy-content ul li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.philosophy-content ul ul {
  margin-top: 10px;
  padding-left: 20px;
}

.philosophy-content p {
  margin-bottom: 15px;
}

.philosophy-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

.philosophy-content .img-container {
  text-align: center;
  margin: 30px 0;
}

.philosophy-content .img-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(191, 0, 255, 0.2);
  box-shadow: 0 0 20px rgba(191, 0, 255, 0.15);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Waves Page Styles */
.waves-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #ccc;
  font-style: italic;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.playlist-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(191, 0, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
}

.playlist-item:hover {
  border-color: rgba(191, 0, 255, 0.5);
  box-shadow: 0 0 20px rgba(191, 0, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .playlist-grid {
    grid-template-columns: 1fr;
  }
}