/* ==========================================================================
   MAURICIO ALEJANDRO GONZÁLEZ VELANDIA - PORTAFOLIO & HOJA DE VIDA
   DALA STYLE REFERENCE: "CONSTELLATION FLOATING ON BLACK VELVET"
   Dark Stage • Void (#000000) • Electric Iris (#8052ff) • Saffron Spark (#ffb829)
   Monolithic Weight 400 Headlines (-0.04em) • Ultra-light 200 Body (18px)
   ========================================================================== */

@font-face {
  font-family: 'PPNeueMontreal';
  src: url('PPNeueMontreal-Light.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PPNeueMontreal';
  src: url('PPNeueMontreal-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PPNeueMontreal';
  src: url('PPNeueMontreal-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dala Colors */
  --color-void: #000000;
  --color-bone-white: #ffffff;
  --color-ash-gray: #9a9a9a;
  --color-silver-mist: #bdbdbd;
  --color-electric-iris: #8052ff;
  --color-saffron-spark: #ffb829;
  --color-deep-verdant: #15846e;

  /* Typography */
  --font-ppneuemontreal: 'PPNeueMontreal', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale (Base: 6px) */
  --spacing-6: 6px;
  --spacing-12: 12px;
  --spacing-18: 18px;
  --spacing-24: 24px;
  --spacing-30: 30px;
  --spacing-36: 36px;
  --spacing-60: 60px;
  --spacing-96: 96px;
  --spacing-120: 120px;

  /* Border Radius */
  --radius-3xl: 24px;
  --radius-full: 9999px;
  --radius-nav: 24px;
  --radius-cards: 24px;
  --radius-buttons: 24px;
}

/* ==========================================================================
   GLOBAL CANVAS & VOID SURFACE
   ========================================================================== */
html, body {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-family: var(--font-ppneuemontreal);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Void canvas across all sections - no dark gray surfaces! */
html, body {
  background-color: #000000 !important;
}

section, main {
  background-color: transparent !important;
}

/* Minimalist Dark Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8052ff;
}

/* ==========================================================================
   DALA TYPOGRAPHY RULES: SCULPTURAL, MONOLITHIC & AIRY
   ========================================================================== */
/* Display Headlines: Weight 400 ONLY, aggressive negative tracking (-0.04em) */
h1, h2, h3, h4 {
  font-family: var(--font-ppneuemontreal);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
}

/* Signature Ultra-Light Body Copy: 18px Weight 200 */
.dala-body {
  font-family: var(--font-ppneuemontreal);
  font-weight: 200;
  font-size: 18px;
  line-height: 1.55;
  color: #bdbdbd;
}

p {
  font-family: var(--font-ppneuemontreal);
  font-weight: 200;
  color: #bdbdbd;
}

p strong, .dala-body strong {
  font-weight: 400;
  color: #ffffff;
}

/* Monumental Manifesto Statements */
.dala-manifesto-statement {
  font-family: var(--font-ppneuemontreal) !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.22 !important;
  color: #ffffff !important;
}

/* Saffron Spark Accent Labels */
.label-saffron {
  font-family: var(--font-ppneuemontreal);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #ffb829 !important;
}

/* Iris Accent Labels */
.label-iris {
  font-family: var(--font-ppneuemontreal);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #8052ff !important;
}

/* Ash Gray Muted Labels */
.text-ash {
  color: #9a9a9a !important;
}
.text-silver {
  color: #bdbdbd !important;
}

/* ==========================================================================
   PRIMARY ACTION BUTTON: ELECTRIC IRIS PILL WITH DALA RADIAL CLIP-PATH HOVER
   ========================================================================== */
.btn-iris-primary {
  position: relative !important;
  overflow: hidden !important;
  background-color: #8052ff !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 13px 24px !important;
  font-family: var(--font-ppneuemontreal) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
  border: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: none !important;
  z-index: 1 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}

.btn-iris-primary .btn__text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.btn-iris-primary .btn__hover {
  position: absolute;
  inset: 0;
  background: #15846e;
  border-radius: 9999px;
  clip-path: ellipse(120% 180% at 50% 310%);
  -webkit-clip-path: ellipse(120% 180% at 50% 310%);
  transition: clip-path 0.9s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-clip-path 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
  z-index: 1;
}

.btn-iris-primary:hover .btn__hover {
  clip-path: ellipse(120% 180% at 50% 60%);
  -webkit-clip-path: ellipse(120% 180% at 50% 60%);
}

.btn-iris-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(128, 82, 255, 0.4) !important;
}

.btn-iris-primary:active {
  transform: scale(0.97);
}

/* Dala Kinetic Typography: Split-Line Masks */
.dala-mask {
  overflow: hidden !important;
  display: block !important;
  padding-bottom: 4px;
}

.dala-line {
  display: inline-block !important;
  will-change: transform, opacity;
  transform-origin: 0% 100%;
}

/* Lenis Smooth Scroll */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Ghost Text Links */
.link-ghost {
  color: #9a9a9a !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-ghost:hover {
  color: #ffffff !important;
}

.link-ghost-saffron {
  color: #ffb829 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.link-ghost-saffron:hover {
  opacity: 0.85;
}

/* ==========================================================================
   NAVIGATION BAR (EXACT DALA: TRANSPARENT DIRECTLY ON VOID, NO BORDER)
   ========================================================================== */
#main-nav {
  background: transparent;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

#main-nav.nav-scrolled {
  background-color: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.nav-link {
  font-family: var(--font-ppneuemontreal);
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
  color: #9a9a9a !important;
  padding: 6px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background-color: transparent !important;
}

/* Triangular Logo Mark */
.logo-triangle {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #8052ff;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(128, 82, 255, 0.6));
}

/* ==========================================================================
   ELEMENTS FLOATING ON BLACK VELVET (NO PANELS, NO CARDS, NO BOXES)
   ========================================================================== */
.dala-surface {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px 0 !important;
  box-shadow: none !important;
  position: relative;
  transition: opacity 0.25s ease;
}

.dala-surface:hover {
  opacity: 1;
}

/* Studio Portrait Card (24px Border Radius floating on Void) */
.dala-portrait {
  border-radius: 24px;
  overflow: hidden;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.dala-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(1.02);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dala-portrait:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   BI-DIRECTIONAL WEIGHTLESS SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Weightless lift when scrolling back up */
.reveal-on-scroll.revealed-up {
  animation: dalaFloatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dalaFloatUp {
  0% {
    opacity: 0.35;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   INTERACTIVE SIMULATOR, APM & DEV TERMINAL ON VOID
   ========================================================================== */
.apm-bar {
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.apm-tab.active {
  background: rgba(128, 82, 255, 0.18) !important;
  border-color: #8052ff !important;
  color: #ffffff !important;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9a9a9a;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: #8052ff !important;
  border-color: #8052ff !important;
  color: #ffffff !important;
}

/* Typewriter cursor blink */
@keyframes blink-iris {
  0%, 100% { border-color: transparent; }
  50% { border-color: #8052ff; }
}

#typewriter {
  animation: blink-iris 0.8s infinite;
}

/* ==========================================================================
   KINETIC FLOWING STREAM / MARQUEE TICKER
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #000000, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #000000, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Vertical Laser Timeline */
.timeline-laser-track {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, #8052ff 0%, #ffb829 60%, #15846e 100%);
  box-shadow: 0 0 12px rgba(128, 82, 255, 0.7);
  transition: height 0.15s ease-out;
  z-index: 10;
}

/* Simulator packets */
@keyframes packet-travel {
  0% { transform: translateX(0); opacity: 1; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.sim-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8052ff;
  box-shadow: 0 0 10px #8052ff, 0 0 20px #8052ff;
}

/* Floating Back-To-Top Quick Return */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   PRINT STYLESHEET
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  #bg-canvas,
  #main-nav,
  #scroll-progress-bar,
  #terminal,
  #sound-toggle,
  #warp-toggle,
  #back-to-top,
  footer,
  #toast {
    display: none !important;
  }
}
