/* ==========================================================================
   UNIFIED STYLES - Portafolio Paradox (Arcane Style)
   Consolidated styling for improved performance and maintainability
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Core */
  --bg-dark: #0A0E27;
  --bg-darker: #050816;
  --bg-void: #000000;
  
  /* Colors - Arcane Palette */
  --arcane-emerald: #10B981;    /* Primary Accent */
  --arcane-cyan: #00D9FF;       /* Secondary Accent */
  --arcane-gold: #FFD60A;       /* Highlight */
  --arcane-void: #050816;       /* Deep Background */
  
  /* Colors - Text High Contrast */
  --text-color: #f8fafc;        /* Luminous Matte White */
  --text-secondary: #94a3b8;    /* Cool Grey for contrast */
  
  /* Typography - Design System 2.0 */
  --font-magic: 'Cinzel', serif;       /* Accents / Magic / Menu */
  --font-display: 'Outfit', sans-serif; /* Headers / Creative */
  --font-body: 'Manrope', sans-serif;   /* Body / Legible */
  --font-accent: 'Cinzel', serif;       /* Alias for legacy support */
  
  /* Glow Effects */
  --glow-emerald: 0 0 15px rgba(16, 185, 129, 0.5);
  --glow-cyan: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto; /* Force single viewport scrollbar */
  height: 100%;
  scrollbar-gutter: stable;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--arcane-emerald) var(--bg-darker); /* Firefox */
}

body {
  background: var(--bg-void);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  /* overflow-y: visible; Removed to allow html to handle scroll */
  position: relative;
  min-height: 100vh;
  margin: 0;
/* --------------------------------------------------------------------------
   ARCANE TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.arcane-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(5, 8, 22, 0.95);
    border: 1px solid var(--arcane-emerald);
    color: var(--arcane-emerald);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
}

.arcane-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.arcane-toast ion-icon {
    font-size: 1.4rem;
}

/* --------------------------------------------------------------------------
   CUSTOM SCROLLBAR - ARCANE THEME
   -------------------------------------------------------------------------- */
 ::-webkit-scrollbar {
    width: 10px; /* Slightly wider for better visibility */
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker); 
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--arcane-emerald), var(--arcane-cyan));
    border-radius: 4px;
    border: 2px solid var(--bg-darker); /* Adds padding effect */
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--arcane-gold), var(--arcane-emerald));
    border: 1px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--arcane-gold), var(--arcane-emerald));
    border: 1px solid var(--bg-darker);
}


/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   3. LAYOUT & SECTIONS
   -------------------------------------------------------------------------- */
   
/* Hero Section Container */
.contenedor_1 {
  position: relative;
  min-height: 100vh;
  width: 100%; /* Changed from 100vw to avoid scrollbar width issues */
  display: flex;
  justify-content: center;
  align-items: center;
  /* overflow: hidden;  <-- REMOVED TO FIX SCROLL TRAP */
  z-index: 1;
}

/* Background Video Container */
.banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind content */
}

/* The Video Itself */
.bgvideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Overlay for Text Readability & Mood */
.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradient reduced opacity at top to let video show, darker at bottom to match next section */
  background: linear-gradient(180deg, 
      rgba(5, 8, 22, 0.3) 0%, 
      rgba(5, 8, 22, 0.6) 60%,
      var(--bg-void) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   GRADIENT CORRECTIONS & SECTIONS
-------------------------------------------------------------------------- */

/* ===================================== */
/* ARCANE THEME - GLOBAL BACKGROUND (Seamless) */
/* ===================================== */

body {
    background-color: #02040a; /* Deep Bio-Void */
    /* Removed radial gradients that create bright spots - keep it clean */
    background-attachment: fixed; /* Parallax feel */
}

/* --------------------------------------------------------------------------
   GRADIENT CORRECTIONS & SECTIONS
-------------------------------------------------------------------------- */

/* Hero Connector - Smooth Transition to Transparent */
.contenedor_1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, 
      transparent 0%,
      var(--bg-void) 100% /* Seamless to Bio-Void */
  );
  z-index: 2;
  pointer-events: none;
}

/* SEAMLESS SECTIONS - Gradient Continuation from Video Overlay */
.gallery-section, 
.section-creative, 
.contenedor_4,
.contenedor_5,
.section-experience,
.contenedor_2, 
.contenedor_3,
.contenedor_6 {
    /* Match overlay ending: start pure black, fade to deep void */
    background: linear-gradient(to bottom, 
        #000000 0%, 
        #0c0505 50%,
        #02040a 100%
    ) !important;
    box-shadow: none !important;
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   NAVBAR & TEXT CORRECTIONS
-------------------------------------------------------------------------- */

/* Header Layout - Desktop Centering & Spacing */
.header-content {
    display: flex;
    justify-content: space-between; /* Logo Left, Menu Right */
    align-items: center; /* Vertical Center */
    width: 100%;
    max-width: 1200px; /* Contain width on large screens */
    margin: 0 auto;
    padding: 10px 0; /* Add some breathing room */
}

/* Main Nav - Link Spacing */
.main-nav {
    display: flex;
    gap: 30px; /* Space between links */
    align-items: center;
}

/* Nav Items - Default White */
.nav-item, .nav-link {
  color: #FFFFFF !important; /* Force White for unselected */
  text-decoration: none;
  font-size: 16px;
  padding: 8px 4px;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  opacity: 0.8;
}

.nav-item:hover, .nav-link:hover,
.nav-item.active, .nav-link.active {
  color: var(--arcane-emerald) !important;
  opacity: 1;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Mobile Hamburger Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--arcane-emerald);
    color: var(--arcane-emerald);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .header-content {
      padding: 0 15px;
  }

  .mobile-menu-toggle {
      display: flex; /* Show on mobile */
  }

  /* Hide Main Nav by default on mobile */
  .main-nav, .header-nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(5, 8, 22, 0.95);
      backdrop-filter: blur(20px);
      flex-direction: column;
      padding: 20px 0;
      border-bottom: 1px solid rgba(16, 185, 129, 0.2);
      transform: translateY(-20px);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  /* Open State */
  .main-nav.active, .header-nav.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
  }

  .nav-item, .nav-link {
      font-size: 18px;
      padding: 12px;
      width: 100%;
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Circular Menu Label */
.menu-text-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(55px);
    font-size: 10px;
    letter-spacing: 2px;
    color: #FFFFFF; /* White text for clarity */
    font-family: var(--font-display);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    opacity: 0.9;
    z-index: 102;
    font-weight: 700;
}

/* Glass Panel Styling */
.glass-panel {
  background: linear-gradient(135deg, rgba(20, 20, 35, 0.6) 0%, rgba(10, 14, 39, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.15); /* Slightly greener border */
  border-top: 1px solid rgba(16, 185, 129, 0.3); /* Highlight top */
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   4. NAVBAR (Responsive without Hamburger)
   -------------------------------------------------------------------------- */
.header-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px; /* Base height */
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  z-index: 3; /* Layer 3: Fixed Header */
  
  /* Animation State */
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.header-navbar.show {
  transform: translateY(0);
  opacity: 1;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 80px; /* PC Size requested */
  width: auto;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
  transition: filter 0.3s ease;
}

.header-logo:hover img {
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.8));
}

/* Navigation Links */
.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.5px;
}

/* Hover Effect - Underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--arcane-emerald);
  box-shadow: 0 0 8px var(--arcane-emerald);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--arcane-emerald);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

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

.nav-link.active {
  color: var(--arcane-emerald);
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
   
/* Tablet & Mobile (< 1024px) */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }
}

/* Mobile (< 768px) - FIXED ROW LAYOUT */
@media (max-width: 768px) {
  .header-navbar {
    height: 70px; /* Keep fixed height */
    padding: 0;
  }
  
  .header-container {
    padding: 0 15px;
    width: 100%;
    height: 100%;
    /* Enforce Row */
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
  }
  
  .header-content {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-direction: row !important; /* Force row */
  }

  /* Logo Sizing & Position */
  .header-logo {
      margin: 0; /* Reset margins */
      flex-grow: 0;
  }

  .header-logo img {
    height: 60px !important; /* Mobile Size requested */
    width: auto;
    display: block;
    margin: 0; /* Remove centering */
  }
  
  /* Ensure Toggle is visible and on the right */
  .mobile-menu-toggle {
      display: flex;
      margin-left: auto; /* Push to right if needed, but flex space-between handles it */
  }

  /* Validar que el Nav no estorbe (Absolute logic is handled in the first media query block) */
}

/* Gradient Fixes - Seamless Connection */
/* Ensure the body background matches the deepest blue of the video overlay */
body {
  background: linear-gradient(to bottom, #0A0E27, #000000);
}


/* --------------------------------------------------------------------------
   6. UTILITIES & EFFECTS (From original styles)
   -------------------------------------------------------------------------- */
   
/* Magical Text (Replaces Neon) */
.magical-glow {
  color: #fff;
  text-shadow: 
    0 0 10px rgba(16, 185, 129, 0.4),
    0 0 20px rgba(16, 185, 129, 0.2);
  animation: magical-breathe 4s ease-in-out infinite;
}

@keyframes magical-breathe {
  0%, 100% { text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
  50% { text-shadow: 0 0 25px rgba(16, 185, 129, 0.7), 0 0 5px rgba(255, 255, 255, 0.5); }
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   7. MAGIC UI ENHANCEMENTS & CENTERED MENU
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   7. CIRCULAR MENU (REFACTORED V3) - GEOMETRICALLY PERFECT
   -------------------------------------------------------------------------- */

.circular-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4; /* Layer 4: Floating Nav */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circular-menu.hide-menu {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Center Toggle Button */
.menu-toggle {
  width: 70px;
  /* width: 70px; DUPLICATE REMOVED */
  height: 70px;
  background: var(--arcane-gold); /* Gold Background as per image */
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--bg-dark); /* Dark Icon for contrast */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(255, 214, 10, 0.4);
  z-index: 200; /* Layer 6: Interaction (Boosted to be safely above everything) */
  position: relative;
}

.menu-toggle:hover {
  background: #ffed4a; /* Lighter Gold */
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(255, 214, 10, 0.8);
  /* transform: scale(1.05); REMOVED to prevent click issues */
}

/* ARCANE BURST PARTICLES */
.arcane-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--arcane-gold);
    border-radius: 50%;
    pointer-events: none; /* Crucial: No interaction interference */
    z-index: 201; /* Above button for effect */
    animation: arcane-burst 1s forwards ease-out;
}

@keyframes arcane-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

.menu-toggle ion-icon {
    display: block;
    pointer-events: none;
    font-size: 32px;
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.circular-menu.active .menu-toggle ion-icon {
  transform: rotate(135deg);
}

.menu-text-label { display: none; }

/* Menu Orbit Container */
.menu-items {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 100; /* Ensure items are above other content but below toggle if needed */
}

/* Individual Items - Centered Pivot Strategy */
.menu-items li {
  position: absolute;
  top: 0; /* Relative to the 0x0 container at center */
  left: 0;
  width: 50px;
  height: 50px;
  margin-top: -25px; /* Perfect centering offset */
  margin-left: -25px;
  
  /* Initial State: Collapsed at center */
  transform: rotate(0deg) translate(0) scale(0);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

/* Active State: Expanded equidistant */
.circular-menu.active .menu-items li {
  opacity: 1;
  pointer-events: auto;
  /* Rotate axis -> Translate out -> Unrotate item */
  /* Radius: 140px ensures good spacing around 70px button */
  transform: rotate(var(--angle)) translate(140px) rotate(calc(-1 * var(--angle))) scale(1);
}

/* Staggered Delay for fluid opening */
.circular-menu.active .menu-items li:nth-child(1) { transition-delay: 0.05s; }
.circular-menu.active .menu-items li:nth-child(2) { transition-delay: 0.1s; }
.circular-menu.active .menu-items li:nth-child(3) { transition-delay: 0.15s; }
.circular-menu.active .menu-items li:nth-child(4) { transition-delay: 0.2s; }

/* Item Button */
.menu-items li a {
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.9);
    border: 1px solid var(--arcane-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--arcane-cyan);
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    position: relative;
}

.menu-items li a:hover {
    background: var(--arcane-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.8);
    transform: scale(1.15);
}

/* Active Item Highlighting */
.menu-items li.active a {
    background: var(--arcane-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

/* Label */
.menu-label {
    position: absolute;
    top: 130%; /* Clearly below button */
    left: 50%;
    transform: translateX(-50%);
    color: #FFF;
    font-size: 13px;
    font-family: var(--font-display);
    text-shadow: 0 2px 4px rgba(0,0,0,1);
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0,0,0,0.7);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.menu-items li a:hover .menu-label,
.menu-items li.active .menu-label {
    opacity: 1;
}

/* Mobile Adjustments - ENABLED VISIBILITY WITH SCALE */
@media (max-width: 768px) {
  .circular-menu {
    display: flex !important; /* Force visible as requested */
    transform: translate(-50%, -50%) scale(0.85); /* Slightly smaller to fit */
  }
  
  /* Reduce radius for mobile */
  .circular-menu.active .menu-items li {
    transform: rotate(var(--angle)) translate(110px) rotate(calc(-1 * var(--angle))) scale(1);
  }
}

.menu-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    color: var(--arcane-cyan);
}

.menu-items li a:hover .menu-label {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   8. TYPEWRITER & GLITCH NEON EFFECTS (Profile Name)
   -------------------------------------------------------------------------- */

/* Neon Text - Clean Version (No Shadow) */
.neon-text {
    color: var(--color-primary);
    text-shadow: none !important;
    font-family: var(--font-display);
    font-weight: 700;
}

/* Cursor Animation */
.typing-cursor {
    display: inline-block;
    color: var(--arcane-cyan);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    font-weight: normal;
    text-shadow: 0 0 10px var(--arcane-cyan);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Refined Neon Style (Cleaner, less blurry) */
.neon-clean {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    letter-spacing: 1px;
    position: relative; /* Anchor for pseudo-elements */
    display: inline-block; /* Ensure width fits content */
}

/* Glitch Animation Mixin */
.glitch-active {
    position: relative;
    /* No skewed transform on main element to keep text readable */
}

.glitch-active::before,
.glitch-active::after {
    content: attr(data-typing-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    background: #0A0E27; /* Match background to hide original momentarily */
    pointer-events: none; /* CRITICAL: Prevent blocking clicks */
}

.glitch-active::before {
    color: #ff00ff;
    z-index: -1;
    animation: glitch-anim-clean-1 4s infinite linear alternate-reverse;
}

.glitch-active::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch-anim-clean-2 4s infinite linear alternate-reverse;
}

/* Cleaner Glitch Keyframes using clip-path */
@keyframes glitch-anim-clean-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(10% 0 60% 0); transform: translate(-1px, 0); }
    100% { clip-path: inset(30% 0 30% 0); transform: translate(1px, 0); }
}

@keyframes glitch-anim-clean-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, 0); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(1px, 0); }
    100% { clip-path: inset(0% 0 80% 0); transform: translate(-1px, 0); }
}

/* FIX MENU Z-INDEX */
.circular-menu {
    z-index: 9999 !important;
}

@keyframes glitch-skew-subtle {
    0% { transform: skew(0deg); }
    20% { transform: skew(-1deg); }
    40% { transform: skew(1deg); }
    60% { transform: skew(-0.5deg); }
    80% { transform: skew(0.5deg); }
    100% { transform: skew(0deg); }
}
/* Photo Frame Enhancement ================================================= */
/* Elegant & Minimal */
.glass-panel img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.glass-panel img:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

/* INTERACTION FIX: Hide scroll hint when menu is open to prevent overlap */
.circular-menu.active ~ .scroll-hint {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* @keyframes border-rotate removed for elegance */

/* Circular Menu Label */
.menu-text-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(55px);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--arcane-cyan);
    font-family: var(--font-display);
    text-shadow: 0 0 5px var(--arcane-cyan);
    pointer-events: none;
    opacity: 0.8;
    z-index: 102;
    font-weight: 700;
}
.circular-menu:hover .menu-text-label {
    opacity: 1;
    text-shadow: 0 0 10px var(--arcane-cyan);
}

/* --------------------------------------------------------------------------
   8. GLOBAL FIREFLIES BACKGROUND
   -------------------------------------------------------------------------- */
#luciernagas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5; /* Layer 5: Ambient Effects Overlay */
    pointer-events: none; /* Let clicks pass through */
    mix-blend-mode: screen; /* Nice blending with dark backgrounds */
    display: block; /* Ensure it is not hidden */
}
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY UNIFICATION (From videos.html)
   ========================================================================== */

/* Cleaner, more elegant title styles (White Primary) */
h1.neon-text {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.4) !important; 
    letter-spacing: 2px;
    margin-bottom: 0.2em; /* Tighter spacing */
}

/* Blue Gradient Secondary Text */
h1 .text-gradient {
    background: linear-gradient(to right, #00c6ff, #0072ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 10px rgba(0, 114, 255, 0.5));
    font-weight: 800;
    display: block; /* Force new line cleanly */
    margin-top: -10px; /* Pull it up closer */
}