/* ==========================================================================
   GeekLan Corporate - Mission-Critical IT Infrastructure & UX/UI System
   Tijuana, Baja California | Microsoft Partner Certified (MCSE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --color-brand-ms: #0078D4;
  --color-brand-cyan: #00F0FF;
  --color-brand-sky: #0284C7;
  --color-dark-void: #0B0F19;
  --color-surface-dark: #111827;
  --color-surface-border: #1E293B;
  --color-status-green: #10B981;
  --color-status-amber: #F59E0B;
}

/* Base Body Styles - overflow-x: clip para garantizar que position: sticky funcione 100% en todos los navegadores */
html, body {
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0B0F19;
  color: #F8FAFC;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Grid Pattern Background */
.bg-tech-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(0, 120, 212, 0.18) 0%, rgba(11, 15, 25, 0) 70%);
}

.bg-radial-cyan {
  background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.12) 0%, rgba(11, 15, 25, 0) 60%);
}

/* Sticky Header Wrapper */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

/* Estado de la barra de navegación al hacer scroll */
.header-scrolled {
  background: rgba(11, 15, 25, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 1px 0 0 rgba(0, 240, 255, 0.18) !important;
  border-bottom-color: rgba(0, 240, 255, 0.25) !important;
}

.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 120, 212, 0.45);
  box-shadow: 0 20px 35px -10px rgba(0, 120, 212, 0.15), 0 0 15px -3px rgba(0, 240, 255, 0.1);
}

/* Glow Badges and Borders */
.glow-border-cyan {
  box-shadow: 0 0 20px -5px rgba(0, 240, 255, 0.25);
}

.glow-border-blue {
  box-shadow: 0 0 25px -5px rgba(0, 120, 212, 0.3);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Efectos Visuales de Desplazamiento (Scroll Reveal & Progress)
   ========================================================================== */

/* Barra de progreso de lectura fijada al tope */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #00F0FF, #0284C7, #0078D4);
  z-index: 100;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px #00F0FF, 0 0 5px #0284C7;
  pointer-events: none;
}

/* Animación de entrada suave al hacer scroll (Scroll Reveal) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  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: opacity, transform;
}

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

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

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

.animate-float-slow {
  animation: float-slow 5s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B0F19;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0078D4;
}

/* Animations */
@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-radar {
  animation: radar-sweep 6s linear infinite;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* Form Styles & Focus Rings */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #00F0FF !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2) !important;
}

/* Interactive transitions */
.transition-smooth {
  transition: all 0.25s ease-in-out;
}
