/* === Variables === */
:root {
  --copper: #c87941;
  --copper-light: #e8a060;
  --teal: #1de4d4;
  --teal-dim: #0fa89e;
  --purple: #7b4fc9;
  --purple-light: #a072e8;
  --deep: #04070d;
  --text: #cce8e6;
  --muted: #4a7080;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/bg1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 35% at 50%  0%,  rgba(29,228,212,0.12)  0%, transparent 65%),
    radial-gradient(ellipse 35% 25% at 15%  30%, rgba(123,79,201,0.14)  0%, transparent 55%),
    radial-gradient(ellipse 30% 20% at 85%  20%, rgba(57,217,122,0.08)  0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 75%  85%, rgba(200,121,65,0.10)  0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20%  80%, rgba(29,228,212,0.07)  0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.drop-cap::first-letter {
  font-family: 'Cinzel Decorative', serif;
  color: var(--copper);
  float: left;
  font-size: 5em;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 6px;
}

em {
  color: var(--teal);
  text-shadow: 0 0 20px rgba(29,228,212,0.3);
  font-style: italic;
}

p {
  margin-bottom: 1.5em;
}

/* === Keyframes === */
@keyframes spin3d {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.15); }
}

@keyframes loaderDraw {
  from { stroke-dashoffset: 226; }
  to   { stroke-dashoffset: 0; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introFadeIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introExit {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(29,228,212,0.2)) drop-shadow(0 0 30px rgba(123,79,201,0.1));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(29,228,212,0.4)) drop-shadow(0 0 60px rgba(123,79,201,0.25));
  }
}

@keyframes irisRingExpand {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.6;
  }
  to {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

@keyframes diamond3dSpin {
  from { transform: rotateY(0deg) rotateX(0deg); }
  to   { transform: rotateY(360deg) rotateX(360deg); }
}

/* === Intro Overlay === */
.intro-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #04070d;
  z-index: 100;
  transition: opacity 0.8s ease;
}

.intro-overlay.exiting {
  opacity: 0;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/bg1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
}

.intro-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(29,228,212,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 30% 20% at 30% 60%, rgba(123,79,201,0.05) 0%, transparent 55%);
  pointer-events: none;
}

.intro-logo-wrap {
  margin-bottom: 32px;
  position: relative;
  animation: introFadeIn 1.8s ease-out both;
}

.intro-logo {
  width: 280px;
  display: block;
  animation: glowPulse 3s ease-in-out infinite;
}

.intro-subtitle {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--teal);
  font-size: 11px;
  margin-bottom: 40px;
}

/* === Iris Reveal === */
.iris-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  display: none;
}

.iris-overlay.active {
  display: block;
}

.iris-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.iris-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40vmin;
  height: 40vmin;
  border-radius: 50%;
  border: 1px solid rgba(29,228,212,0.25);
  box-shadow: 0 0 40px rgba(29,228,212,0.1), inset 0 0 40px rgba(29,228,212,0.05);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.iris-ring.animating {
  animation: irisRingExpand 2.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* === Black Hold === */
.black-hold {
  position: fixed;
  inset: 0;
  background: #04070d;
  z-index: 95;
  display: none;
}

/* === Main Content === */
.main-content {
  display: none;
  opacity: 1;
}

.main-content.visible {
  display: block;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  backdrop-filter: blur(12px);
  background: rgba(4,7,13,0.4);
}

.navbar-logo {
  height: 44px;
  border-radius: 2px;
}

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

.nav-link {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: var(--muted);
  text-shadow: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-link.active {
  color: var(--teal);
  text-shadow: 0 0 12px rgba(29,228,212,0.5);
}

.nav-icon {
  display: none;
  width: 22px;
  height: 22px;
}

.nav-link.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(29,228,212,0.5));
}

@media (max-width: 640px) {
  .navbar {
    padding: 12px 20px;
  }
  .navbar-logo {
    height: 32px;
  }
  .nav-links {
    gap: 24px;
  }
  .nav-icon {
    display: block;
  }
  .nav-label {
    display: none;
  }
}

/* === Sections === */
.section {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.section-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 40px 80px;
}

.section-content > * {
  opacity: 0;
  transform: translateY(24px);
}

.section-content.visible > * {
  animation: fadeInUp 0.9s ease-out forwards;
}

.section-content.visible > *:nth-child(1) { animation-delay: 0s; }
.section-content.visible > *:nth-child(2) { animation-delay: 0.15s; }
.section-content.visible > *:nth-child(3) { animation-delay: 0.3s; }
.section-content.visible > *:nth-child(4) { animation-delay: 0.45s; }
.section-content.visible > *:nth-child(5) { animation-delay: 0.6s; }

.section-heading {
  font-family: 'Space Mono', monospace;
  color: var(--purple-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 40px;
  font-weight: normal;
}

/* Silence p2 italic */
.silence-p2 {
  font-style: italic;
  color: var(--teal-dim);
}

/* === Pull Quote === */
.pull-quote {
  position: relative;
  padding-left: 32px;
  margin: 48px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.6;
  color: var(--text);
}

.pull-quote-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--teal), var(--purple));
}

/* === Divider === */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 60px auto;
  max-width: 760px;
  padding: 0 40px;
  perspective: 600px;
}

.divider-hr-right {
  flex: 1;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal));
}

.divider-hr-left {
  flex: 1;
  border: none;
  height: 1px;
  background: linear-gradient(to right, var(--purple), transparent);
}

/* === Diamond 3D === */
.diamond3d {
  width: 10px;
  height: 10px;
  position: relative;
  transform-style: preserve-3d;
  animation: diamond3dSpin 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(29,228,212,0.4)) drop-shadow(0 0 20px rgba(123,79,201,0.2));
}

.diamond3d-face {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, rgba(29,228,212,0.6), rgba(123,79,201,0.4));
  border: 1px solid rgba(29,228,212,0.3);
  box-shadow: inset 0 0 6px rgba(29,228,212,0.2);
}

.diamond3d-face.front  { transform: translateZ(5px); }
.diamond3d-face.back   { transform: rotateY(180deg) translateZ(5px); }
.diamond3d-face.left   { transform: rotateY(-90deg) translateZ(5px); }
.diamond3d-face.right  { transform: rotateY(90deg) translateZ(5px); }
.diamond3d-face.top    { transform: rotateX(90deg) translateZ(5px); background: linear-gradient(135deg, rgba(29,228,212,0.8), rgba(123,79,201,0.5)); }
.diamond3d-face.bottom { transform: rotateX(-90deg) translateZ(5px); background: linear-gradient(135deg, rgba(123,79,201,0.5), rgba(29,228,212,0.3)); }

/* === Closing Block === */
.closing-block {
  text-align: center;
  margin-top: 80px;
}

.legacy-title {
  font-family: 'Cinzel Decorative', serif;
  color: var(--copper-light);
  font-size: 28px;
  font-weight: normal;
  text-shadow: 0 0 30px rgba(232,160,96,0.4), 0 0 60px rgba(29,228,212,0.15);
  margin-bottom: 16px;
}

.legacy-sub {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 0;
}

.legacy-heart {
  color: var(--purple-light);
  animation: pulse 2.4s ease-in-out infinite;
  display: inline-block;
}

/* === Newsletter === */
.newsletter {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-inner {
  max-width: 560px;
  width: 100%;
  padding: 48px 48px 44px;
  border-radius: 24px;
  border: 1px solid rgba(29,228,212,0.15);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,228,212,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(123,79,201,0.05) 0%, transparent 50%),
    rgba(4,7,13,0.65);
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 40px rgba(29,228,212,0.06),
    0 0 80px rgba(123,79,201,0.04),
    0 4px 32px rgba(0,0,0,0.4);
  text-align: center;
}

.newsletter-title {
  font-family: 'Cinzel Decorative', serif;
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(29,228,212,0.25);
}

.newsletter-desc {
  font-family: 'Cormorant Garamond', serif;
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
  margin-bottom: 36px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
}

.newsletter-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 1;
  max-width: 320px;
  padding: 14px 22px;
  border-radius: 28px;
  border: 1px solid rgba(29,228,212,0.25);
  background: rgba(4,7,13,0.7);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: text !important;
}

.newsletter-input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.newsletter-input:focus {
  border-color: rgba(29,228,212,0.6);
  box-shadow: 0 0 24px rgba(29,228,212,0.12), inset 0 0 12px rgba(29,228,212,0.04);
}

.newsletter-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 14px 30px;
  border-radius: 28px;
  border: 1px solid rgba(29,228,212,0.35);
  background: linear-gradient(135deg, rgba(29,228,212,0.18), rgba(123,79,201,0.12));
  color: var(--teal);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer !important;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.newsletter-btn:hover {
  background: linear-gradient(135deg, rgba(29,228,212,0.3), rgba(123,79,201,0.2));
  border-color: rgba(29,228,212,0.6);
  box-shadow: 0 0 28px rgba(29,228,212,0.18), 0 0 8px rgba(29,228,212,0.1);
  transform: translateY(-1px);
}

.newsletter-btn:active {
  transform: translateY(0);
}

.newsletter-status {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  margin-top: 20px;
  min-height: 20px;
  letter-spacing: 0.05em;
}

.newsletter-status.success {
  color: var(--teal);
  text-shadow: 0 0 12px rgba(29,228,212,0.3);
}

.newsletter-status.error {
  color: var(--copper-light);
}

@media (max-width: 520px) {
  .newsletter {
    padding: 60px 20px;
  }
  .newsletter-inner {
    padding: 36px 28px 32px;
  }
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-input {
    max-width: 100%;
    width: 100%;
  }
  .newsletter-btn {
    width: 100%;
  }
}

/* === Footer === */
.footer {
  border-top: 1px solid rgba(29,228,212,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-label {
  font-family: 'Cinzel Decorative', serif;
  color: var(--copper);
  font-size: 14px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 24px;
  background: rgba(4,7,13,0.5);
  border: 1px solid rgba(29,228,212,0.1);
}

.lang-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: none;
  transition: color 0.4s, text-shadow 0.4s, background 0.4s, border-color 0.4s;
  padding: 6px 12px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid rgba(74,112,128,0.15);
}

.lang-btn.active {
  color: var(--teal);
  text-shadow: 0 0 10px rgba(29,228,212,0.4);
  background: rgba(29,228,212,0.08);
  border-color: rgba(29,228,212,0.2);
}

.lang-sep {
  width: 1px;
  height: 14px;
  background: rgba(74,112,128,0.3);
}

.footer-genres {
  font-family: 'Space Mono', monospace;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* === Floating Particles === */
.floating-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
}

/* === Mouse Trail Canvas === */
.mouse-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  mix-blend-mode: screen;
}
