/* ============================================================
   RESET CSS - ESTILOS BASE Y RESET
   ------------------------------------------------------------
   Reset optimizado y estilos base para el portafolio cyberpunk
============================================================ */

/* ============================================================
   RESET & BASE STYLES
   ------------------------------------------------------------
   Optimized reset and foundational styles
============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-y: scroll;
  scrollbar-color: var(--color-accent) rgba(var(--color-bg), 0.3);
  scrollbar-width: thin;
  background: #0a0f0e; /* Fondo base oscuro como respaldo */
}

body {
  font-family: var(--font-main);
  background: #0a0f0e; /* Fondo oscuro que funciona con el video */
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url("IMG/CURSORS/cursor1.cur"), auto;
  transition: color var(--transition-medium);
}

/* Element Styles */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
  text-shadow: none;
}

a, button {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  outline: none;
}

a:focus, button:focus {
  outline: 1px dashed var(--color-accent);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Lazy Loading */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img.loaded { 
  opacity: 1; 
}

ul, li { 
  list-style: none; 
}

/* Initial State */
#mainHeader, .main-content-wrapper, .hud-overlay {
  opacity: 0;
  transition: opacity var(--transition-slow) ease-in-out;
}

#mainHeader.visible, .main-content-wrapper.visible, .hud-overlay.visible {
  opacity: 1;
} 