/* ═══════════════════════════════════════════════════════════
   LENGUAJE MUSICAL I — EMMU
   styles.css
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. Variables & Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #252535;
  --surface:  #32324a;
  --surface2: #3e3e5a;
  --text:     #f0f0f5;
  --muted:    #8888aa;
  --accent:   #4ecdc4;

  --cyan:    #4ecdc4;
  --amber:   #ffd166;
  --violet:  #c77dff;
  --green:   #06d6a0;
  --coral:   #ff6b6b;
  --orange:  #ffa552;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ─── 2. Background Layer ────────────────────────────────── */
#particle-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

.bg-blobs {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 1;
}

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.2;
  background: var(--accent);
  transition: background 1.4s ease;
}
.blob-1 {
  width: 1000px; height: 1000px;
  top: -400px; left: -250px;
  animation: blob1 24s ease-in-out infinite;
}
.blob-2 {
  width: 800px; height: 800px;
  bottom: -300px; right: -200px;
  animation: blob2 30s ease-in-out infinite;
  animation-delay: -11s;
}
.blob-3 {
  width: 600px; height: 600px;
  top: 35%; left: 55%;
  animation: blob3 20s ease-in-out infinite;
  animation-delay: -6s;
  opacity: 0.12;
}
.blob-4 {
  width: 400px; height: 400px;
  top: 60%; left: 15%;
  animation: blob4 17s ease-in-out infinite;
  animation-delay: -3s;
  opacity: 0.13;
}

/* ─── 3. UI Chrome ───────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), #fff4);
  transition: width 0.6s ease, background 1.4s ease;
  z-index: 300;
}

#slide-num {
  position: fixed; top: 22px; right: 32px;
  font-size: 11px; color: var(--muted);
  font-weight: 700; letter-spacing: 2px;
  z-index: 300; pointer-events: none;
}

#slide-dots {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 300;
}

.dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--muted); border: none;
  cursor: pointer; padding: 0;
  transition: all 0.3s ease;
}
.dot:hover  { background: rgba(240,240,245,0.55); }
.dot.active { width: 24px; background: var(--text); }

.nav-btn {
  position: fixed; bottom: 20px;
  background: var(--surface); border: 1px solid var(--surface2);
  color: var(--text); border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; font-family: inherit;
  transition: background 0.2s, opacity 0.3s;
  z-index: 300;
}
.nav-btn:hover { background: var(--surface2); }
.nav-btn svg { width: 20px; height: 20px; stroke-width: 2.5; }
#btn-prev { right: 84px; }
#btn-next { right: 28px; }

/* ─── 4. Slide System ────────────────────────────────────── */
.presentation { width: 100vw; height: 100vh; position: relative; }

.slide {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 50px 72px;
  opacity: 0; transform: translateX(72px);
  transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none; overflow: hidden;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: all; }
.slide.prev   { opacity: 0; transform: translateX(-72px); }

.slide-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px;
}
.slide-inner.center  { text-align: center; }
.slide-inner.narrow  { max-width: 860px; }
.slide-inner.mid     { max-width: 1100px; }

/* ─── 5. Typography ──────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4.8vw, 80px);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -0.5px;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.3vw, 58px);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.3px;
}

.subtitle {
  font-size: clamp(13px, 1.3vw, 19px);
  font-weight: 300; color: var(--muted); line-height: 1.7;
  margin-top: 16px;
}

blockquote {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 36px);
  line-height: 1.4;
  font-weight: 300;
}

.body-text {
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.8; color: var(--muted);
}

.accent { color: var(--accent); transition: color 1.4s ease; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 50%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meta {
  font-size: 12px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted);
  margin-top: 36px;
}

.site-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-size: 12px; font-family: 'Inter', sans-serif;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.5px;
  border: 1px solid var(--surface2);
  border-radius: 100px;
  padding: 7px 18px;
  transition: color 0.2s, border-color 0.2s;
}
.site-link:hover {
  color: var(--text);
  border-color: var(--accent);
}
.site-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ─── 6. Rule / Divider ──────────────────────────────────── */
.rule {
  width: 54px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 28px 0;
  transition: background 1.4s ease;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ─── 7. Lucide Icons ────────────────────────────────────── */
.slide-icon {
  display: block;
  width: 64px; height: 64px;
  color: var(--accent);
  margin-bottom: 22px;
  transition: color 1.4s ease;
}
.center .slide-icon { margin-left: auto; margin-right: auto; }

/* ─── 8. Card ────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: 18px;
  padding: 28px 32px; border: 1px solid var(--surface2);
}

/* ─── 9. Two Column ──────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; width: 100%; max-width: 1360px;
  align-items: center;
}

/* ─── 10. Three Column ───────────────────────────────────── */
.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; width: 100%;
  margin-top: 32px;
}
.col-card {
  background: var(--surface); border-radius: 18px;
  padding: 32px 24px; text-align: center;
  border: 1px solid var(--surface2);
}
.col-card h4 {
  font-size: clamp(14px, 1.3vw, 19px);
  font-weight: 700; margin-bottom: 14px;
}
.col-card .sample {
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  line-height: 2.1; color: var(--muted);
  font-size: clamp(11px, 1vw, 15px);
}
.col-card .col-icon {
  width: 44px; height: 44px;
  color: var(--accent); margin: 0 auto 18px;
  display: block;
}

/* ─── 11. Bullet List ────────────────────────────────────── */
.bullet-list { list-style: none; }
.bullet-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--surface2);
  font-size: clamp(14px, 1.3vw, 20px);
  color: var(--muted); line-height: 1.5;
  display: flex; gap: 14px; align-items: flex-start;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before { content: '—'; color: var(--surface2); flex-shrink: 0; }

/* ─── 12. Notes Grid ─────────────────────────────────────── */
.notes-grid {
  display: flex; gap: 12px;
  flex-wrap: wrap; justify-content: center;
  margin-top: 24px;
}
.note-card {
  background: var(--surface); border-radius: 14px;
  padding: 14px 18px; text-align: center;
  min-width: 90px; border: 1px solid var(--surface2);
}
.note-card .note-original {
  font-size: 11px; color: var(--muted);
  text-decoration: line-through; opacity: 0.6;
  letter-spacing: 1px; margin-bottom: 4px;
}
.note-card .note-original.empty { opacity: 0; }
.note-card .note-modern {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800; color: var(--green);
}

/* ─── 13. Stat Box ───────────────────────────────────────── */
.stat-box {
  background: var(--surface); border-radius: 18px;
  padding: 36px 52px; text-align: center;
  border: 1px solid var(--surface2);
  border-left: 4px solid var(--coral);
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 800; color: var(--coral); line-height: 1;
}
.stat-label {
  font-size: 11px; color: var(--muted);
  letter-spacing: 2px; margin-top: 10px;
}

/* ─── 14. Vinyl Record ───────────────────────────────────── */
.record-wrap { display: flex; align-items: center; justify-content: center; }
.record {
  width: 240px; height: 240px; border-radius: 50%;
  background: conic-gradient(
    #1a1a2a 0deg,  #26263a 14deg, #1a1a2a 28deg,
    #26263a 42deg, #1a1a2a 56deg, #26263a 70deg,
    #1a1a2a 84deg, #26263a 98deg, #1a1a2a 112deg,
    #26263a 126deg,#1a1a2a 140deg,#26263a 154deg,
    #1a1a2a 168deg,#26263a 182deg,#1a1a2a 196deg,
    #26263a 210deg,#1a1a2a 224deg,#26263a 238deg,
    #1a1a2a 252deg,#26263a 266deg,#1a1a2a 280deg,
    #26263a 294deg,#1a1a2a 308deg,#26263a 322deg,
    #1a1a2a 336deg,#26263a 350deg,#1a1a2a 360deg
  );
  display: flex; align-items: center; justify-content: center;
  animation: spin 10s linear infinite;
  box-shadow: 0 0 70px rgba(255,107,107,0.2);
}
.record-center {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
}
.record-hole { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); }

/* ─── 15. Comparison boxes ───────────────────────────────── */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 28px;
}
.compare-box {
  background: var(--surface); border-radius: 16px;
  padding: 24px 28px; border: 1px solid var(--surface2);
}
.compare-box h5 {
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 700; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 1px;
}
.compare-box ul { list-style: none; }
.compare-box ul li {
  font-size: clamp(12px, 1.1vw, 15px);
  color: var(--muted); padding: 5px 0;
  border-bottom: 1px solid var(--surface2);
}
.compare-box ul li:last-child { border-bottom: none; }

/* ─── 16. Floating notes (cover deco) ────────────────────── */
.float-notes {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 1;
}
.fn {
  position: absolute;
  font-size: 24px;
  color: rgba(255,255,255,0.055);
  animation: floatUp linear infinite;
  user-select: none;
}

/* ─── 17. Background text decoration ─────────────────────── */
.bg-word {
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-weight: 800; pointer-events: none;
  user-select: none; z-index: 1;
  white-space: nowrap;
  color: rgba(255,255,255,0.03);
  font-size: clamp(60px, 11vw, 160px);
  letter-spacing: -2px;
}

/* ─── 18. Waveform ───────────────────────────────────────── */
.wave-svg { width: 100%; max-width: 700px; overflow: visible; }

/* ─── 19. Keyframe Animations ────────────────────────────── */
@keyframes blob1 {
  0%,100% { transform: translate(0,0) scale(1); }
  25%  { transform: translate(90px,-70px) scale(1.12); }
  50%  { transform: translate(-55px,90px) scale(0.88); }
  75%  { transform: translate(65px,45px) scale(1.06); }
}
@keyframes blob2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(-90px,-65px) scale(1.1); }
  66%  { transform: translate(70px,80px) scale(0.92); }
}
@keyframes blob3 {
  0%,100% { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.25) translate(-40px,35px); }
}
@keyframes blob4 {
  0%,100% { transform: scale(1) translate(0,0); }
  40%  { transform: scale(1.15) translate(50px,-30px); }
  70%  { transform: scale(0.9) translate(-20px,50px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes floatUp {
  from { transform: translateY(108vh) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 0.7; }
  to   { transform: translateY(-8vh) rotate(540deg); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes waveScroll {
  to { stroke-dashoffset: -1800; }
}
@keyframes waveScroll2 {
  to { stroke-dashoffset: -1200; }
}
@keyframes pulseOpacity {
  0%,100% { opacity: 0.5; }
  50%  { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── 20. Animation System ───────────────────────────────── */
.anim { opacity: 0; }
.slide.active .anim {
  animation: fadeUp 0.56s ease calc(var(--d, 0s)) forwards;
}

/* ─── 21. Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .slide       { padding: 44px 36px; }
  .two-col     { grid-template-columns: 1fr; gap: 36px; }
  .three-col   { grid-template-columns: 1fr; }
  .compare-grid{ grid-template-columns: 1fr; }
}
