/* ========================================
   Parabellum - Cybersecurity Engineering
   Main Stylesheet
   ======================================== */

/* ========================================
   CSS Variables & Base
   ======================================== */
:root {
  /* Paleta PortSwigger/Burp Style - Combinación de colores */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f7;
  --bg-tertiary: #efefef;
  
  /* Naranja - Elementos principales */
  --accent-primary: #ff6633;        /* PortSwigger Orange */
  --accent-primary-dark: #e85a2c;   /* Orange darker */
  --accent-primary-light: #ff8866;   /* Orange lighter */
  
  /* Azul - Elementos secundarios */
  --accent-blue: #0066cc;            /* PortSwigger Blue */
  --accent-blue-dark: #0052a3;      /* Blue darker */
  --accent-blue-light: #3385d6;      /* Blue lighter */
  
  /* Celestes/Cyan - Elementos decorativos */
  --accent-cyan: #00bfff;           /* Cyan */
  --accent-cyan-dark: #0099cc;      /* Cyan darker */
  --accent-cyan-light: #4dd0e1;     /* Cyan lighter */
  
  /* Verde - Badge "WE'RE BUILDING SECURITY" */
  --accent-green: #22c55e;          /* Green - siempre verde */
  --accent-green-dark: #16a34a;      /* Green darker */
  
  /* Rojo - Focus states e iconos de servicios */
  --accent-red: #9f0a17;            /* RGB(159, 10, 23) */
  --accent-red-dark: #7a0713;       /* Red darker */
  --accent-red-light: #c30d1f;      /* Red lighter */
  
  --accent-dark: #1a1a1a;           /* Near black */
  --text-primary: #1a1a1a;
  --text-secondary: rgba(26, 26, 26, 0.7);
  --text-muted: rgba(26, 26, 26, 0.5);
  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-hover: rgba(159, 10, 23, 0.5);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme surfaces */
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
  --nav-border: rgba(0, 0, 0, 0.1);
  --nav-border-scrolled: rgba(255, 102, 51, 0.15);
  --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --nav-shadow-scrolled: 0 2px 10px rgba(0, 0, 0, 0.08);

  --mobile-bg: rgba(255, 255, 255, 0.98);
  --mobile-border: rgba(0, 0, 0, 0.1);
  --mobile-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  --footer-bg: transparent;
  --footer-border: rgba(0, 0, 0, 0.1);
  --footer-text: rgba(26, 26, 26, 0.7);
  --footer-heading: rgba(26, 26, 26, 1);
  --footer-link: rgba(26, 26, 26, 0.7);
  --footer-muted: rgba(26, 26, 26, 0.5);
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --bg-primary: #0b0f14;
  --bg-secondary: #0f1620;
  --bg-tertiary: #131c28;

  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.55);
  --border-color: rgba(255, 255, 255, 0.14);
  --border-color-hover: rgba(159, 10, 23, 0.7);

  --nav-bg: rgba(11, 15, 20, 0.82);
  --nav-bg-scrolled: rgba(11, 15, 20, 0.92);
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-border-scrolled: rgba(255, 255, 255, 0.18);
  --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --nav-shadow-scrolled: 0 2px 12px rgba(0, 0, 0, 0.55);

  --mobile-bg: rgba(11, 15, 20, 0.96);
  --mobile-border: rgba(255, 255, 255, 0.12);
  --mobile-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);

  --footer-bg: rgba(11, 15, 20, 0.98);
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-text: rgba(255, 255, 255, 0.72);
  --footer-heading: rgba(255, 255, 255, 0.92);
  --footer-link: rgba(255, 255, 255, 0.72);
  --footer-muted: rgba(255, 255, 255, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   CSS Vector Decorations
   ======================================== */

/* Global Code Decorations Container */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

/* Grid Background */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Grid Background - Dark Mode */
html[data-theme="dark"] .grid-bg {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* Glow Effects */
.glow-circle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.glow-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.08) 0%, transparent 70%);
  filter: blur(100px);
}

.glow-2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  left: -150px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.06) 0%, transparent 70%);
  filter: blur(100px);
}

.glow-3 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: 10%;
  background: radial-gradient(circle, rgba(159, 10, 23, 0.05) 0%, transparent 70%);
  filter: blur(80px);
}

/* Code Elements - Hacking Commands & Programming References */
.code-element {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  opacity: 0.6;
  transform: rotate(-2deg);
  transition: opacity 0.3s ease;
}

.code-element:hover {
  opacity: 0.8;
}

/* Code Elements - Dark Mode */
html[data-theme="dark"] .code-element {
  color: rgba(255, 255, 255, 0.4);
  opacity: 0.7;
}

html[data-theme="dark"] .code-element:hover {
  opacity: 0.9;
}

/* Nmap Commands */
.code-nmap {
  color: rgba(159, 10, 23, 0.25);
  font-size: 0.75rem;
}

.code-nmap::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.3);
}

.code-nmap2 {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.7rem;
  transform: rotate(1deg);
}

.code-nmap2::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.25);
}

/* Hexadecimal Values */
.code-hex {
  color: rgba(51, 51, 51, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.code-hex2 {
  color: rgba(51, 51, 51, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(-1deg);
}

/* Curl Commands */
.code-curl {
  color: rgba(0, 0, 0, 0.2);
  font-size: 0.65rem;
  transform: rotate(2deg);
}

.code-curl::before {
  content: '$ ';
  color: rgba(0, 0, 0, 0.25);
}

.code-curl2 {
  color: rgba(0, 0, 0, 0.18);
  font-size: 0.7rem;
  transform: rotate(-1.5deg);
}

.code-curl2::before {
  content: '$ ';
  color: rgba(0, 0, 0, 0.22);
}

/* Frida Commands */
.code-frida {
  color: rgba(159, 10, 23, 0.22);
  font-size: 0.7rem;
  transform: rotate(1.5deg);
}

.code-frida::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.28);
}

/* Binary Code */
.code-binary {
  color: rgba(0, 0, 0, 0.15);
  font-size: 0.65rem;
  letter-spacing: 2px;
  transform: rotate(-2deg);
}

.code-binary2 {
  color: rgba(0, 0, 0, 0.18);
  font-size: 0.7rem;
  letter-spacing: 2px;
  transform: rotate(1.5deg);
}

/* Leet Speak */
.code-leet {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(-1deg);
}

.code-leet2 {
  color: rgba(159, 10, 23, 0.18);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(1.5deg);
}

.code-leet3 {
  color: rgba(62, 24, 67, 0.2);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(-1.2deg);
}


/* Burp Suite */
.code-burp {
  color: rgba(159, 10, 23, 0.22);
  font-size: 0.68rem;
  transform: rotate(-1deg);
}

.code-burp::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.28);
}


/* SQLMap */
.code-sqlmap {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.7rem;
  transform: rotate(1deg);
}

.code-sqlmap::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.25);
}


/* Metasploit */
.code-metasploit {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.72rem;
  transform: rotate(1.8deg);
}

.code-metasploit::before {
  content: 'msf5> ';
  color: rgba(159, 10, 23, 0.25);
}

/* Wireshark/tshark */
.code-wireshark {
  color: rgba(0, 0, 0, 0.18);
  font-size: 0.65rem;
  transform: rotate(-1.2deg);
}

.code-wireshark::before {
  content: '$ ';
  color: rgba(0, 0, 0, 0.22);
}

/* Gobuster */
.code-gobuster {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.7rem;
  transform: rotate(1.3deg);
}

.code-gobuster::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.25);
}

/* Nikto */
.code-nikto {
  color: rgba(159, 10, 23, 0.18);
  font-size: 0.68rem;
  transform: rotate(-1.5deg);
}

.code-nikto::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.22);
}

/* Hydra */
.code-hydra {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.65rem;
  transform: rotate(1deg);
}

.code-hydra::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.25);
}

/* John the Ripper */
.code-john {
  color: rgba(159, 10, 23, 0.18);
  font-size: 0.7rem;
  transform: rotate(-1.2deg);
}

.code-john::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.22);
}

/* Aircrack-ng */
.code-aircrack {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.68rem;
  transform: rotate(1.5deg);
}

.code-aircrack::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.25);
}

/* OWASP ZAP */
.code-zap {
  color: rgba(51, 51, 51, 0.2);
  font-size: 0.7rem;
  transform: rotate(-1deg);
}

.code-zap::before {
  content: '$ ';
  color: rgba(51, 51, 51, 0.25);
}


/* Additional Hex Values */
.code-hex3 {
  color: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(1deg);
}

.code-hex4 {
  color: rgba(159, 10, 23, 0.18);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(-1.2deg);
}

.code-hex5 {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(1.5deg);
}


.code-hex7 {
  color: rgba(0, 0, 0, 0.15);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1px;
  transform: rotate(1.2deg);
}

/* Additional Binary */
.code-binary3 {
  color: rgba(0, 0, 0, 0.16);
  font-size: 0.68rem;
  letter-spacing: 2px;
  transform: rotate(-1.5deg);
}

.code-binary4 {
  color: rgba(51, 51, 51, 0.18);
  font-size: 0.65rem;
  letter-spacing: 2px;
  transform: rotate(1.3deg);
}

/* Additional Curl */
.code-curl3 {
  color: rgba(0, 0, 0, 0.18);
  font-size: 0.7rem;
  transform: rotate(-1deg);
}

.code-curl3::before {
  content: '$ ';
  color: rgba(0, 0, 0, 0.22);
}

/* Additional Nmap */
.code-nmap3 {
  color: rgba(159, 10, 23, 0.2);
  font-size: 0.68rem;
  transform: rotate(1.2deg);
}

.code-nmap3::before {
  content: '$ ';
  color: rgba(159, 10, 23, 0.25);
}

.glow-4 {
  width: 350px;
  height: 350px;
  top: 70%;
  left: 20%;
  background: radial-gradient(circle, rgba(159, 10, 23, 0.04) 0%, transparent 70%);
  filter: blur(90px);
}

/* ========================================
   Code Elements - Dark Mode Overrides
   ======================================== */
html[data-theme="dark"] .code-nmap,
html[data-theme="dark"] .code-nmap2,
html[data-theme="dark"] .code-nmap3 {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .code-nmap::before,
html[data-theme="dark"] .code-nmap2::before,
html[data-theme="dark"] .code-nmap3::before {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .code-hex,
html[data-theme="dark"] .code-hex2,
html[data-theme="dark"] .code-hex3,
html[data-theme="dark"] .code-hex4,
html[data-theme="dark"] .code-hex5,
html[data-theme="dark"] .code-hex8 {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-curl,
html[data-theme="dark"] .code-curl2,
html[data-theme="dark"] .code-curl3,
html[data-theme="dark"] .code-curl4 {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-curl::before,
html[data-theme="dark"] .code-curl2::before,
html[data-theme="dark"] .code-curl3::before,
html[data-theme="dark"] .code-curl4::before {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .code-frida {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .code-frida::before {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .code-binary,
html[data-theme="dark"] .code-binary2,
html[data-theme="dark"] .code-binary3,
html[data-theme="dark"] .code-binary4 {
  color: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .code-leet,
html[data-theme="dark"] .code-leet2,
html[data-theme="dark"] .code-leet3,
html[data-theme="dark"] .code-leet4 {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-burp {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .code-burp::before {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .code-sqlmap {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-sqlmap::before {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .code-metasploit {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-metasploit::before {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .code-wireshark {
  color: rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .code-wireshark::before {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .code-gobuster {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-gobuster::before {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .code-nikto {
  color: rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .code-nikto::before {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .code-hydra {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-hydra::before {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .code-john {
  color: rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .code-john::before {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .code-aircrack {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-aircrack::before {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .code-zap {
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .code-zap::before {
  color: rgba(255, 255, 255, 0.45);
}


/* Cybersecurity-themed decorative elements */

/* Terminal/Console */
.geo-terminal {
  width: 200px;
  height: 80px;
  background: transparent;
  border-left: 2px solid rgba(159, 10, 23, 0.2);
  position: relative;
}

.geo-terminal::before {
  content: '$>';
  position: absolute;
  left: 8px;
  top: 10px;
  color: rgba(159, 10, 23, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.geo-terminal::after {
  content: 'scan --target';
  position: absolute;
  left: 30px;
  top: 10px;
  color: rgba(0, 0, 0, 0.2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

/* Network Nodes */
.geo-network {
  width: 120px;
  height: 120px;
  position: relative;
}

.geo-network::before,
.geo-network::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(159, 10, 23, 0.3);
  border-radius: 50%;
}

.geo-network::before {
  top: 20px;
  left: 20px;
  box-shadow: 
    40px 30px 0 rgba(159, 10, 23, 0.2),
    80px 0 0 rgba(159, 10, 23, 0.2),
    20px 60px 0 rgba(159, 10, 23, 0.15);
}

.geo-network::after {
  top: 50px;
  left: 50px;
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(159, 10, 23, 0.1), transparent);
  transform: rotate(45deg);
}

/* Binary Code */
.geo-binary {
  width: 100px;
  height: 60px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.15);
  line-height: 1.2;
  letter-spacing: 2px;
  white-space: pre;
}

.geo-binary::before {
  content: '101010\A 010101\A 110011';
  white-space: pre;
}

/* Code Brackets */
.geo-brackets {
  width: 30px;
  height: 80px;
  font-family: var(--font-mono);
  font-size: 3rem;
  color: rgba(159, 10, 23, 0.15);
  line-height: 1;
  position: relative;
}

.geo-brackets::before {
  content: '{';
}

.geo-brackets::after {
  content: '}';
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Scan Lines */
.geo-scanlines {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(159, 10, 23, 0.2), 
    transparent
  );
  box-shadow: 
    0 20px 0 rgba(159, 10, 23, 0.15),
    0 40px 0 rgba(159, 10, 23, 0.1);
}

/* Animated Floating Elements */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

.geo-circle { animation: pulse 8s ease-in-out infinite; }
.geo-square { animation: float 10s ease-in-out infinite; }

/* ========================================
   Navbar - Estilo Strike (cuadrado, pegado al top)
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  border-radius: 0;
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--nav-shadow);
}

.navbar:hover {
  border-color: var(--border-color-hover);
}

.navbar.is-scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--nav-border-scrolled);
  box-shadow: var(--nav-shadow-scrolled);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 32px; /* Ajusta la altura según tu logo */
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--accent-red);
}

.navbar-menu a:hover::after {
  width: 100%;
}

/* Navbar: hover underline/color is handled globally above (red). */

.navbar-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.theme-toggle:hover {
  color: var(--accent-red);
  border-color: transparent;
  background: rgba(159, 10, 23, 0.08);
}

.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}


.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(159, 10, 23, 0.05);
}

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-red-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(159, 10, 23, 0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0;
  font-size: 0.8rem;
  color: var(--accent-green-dark);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Terminal Comment Style */
.terminal-comment {
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.7;
}

.terminal-comment::before {
  content: '// ';
}

.terminal-comment::after {
  content: ' //';
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}


.about-us {
  padding: 4rem 2rem 3rem;
  position: relative;
  z-index: 10;
}

/* Methodology Block within Pentest Phases */

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--border-color), 
    transparent
  );
  margin: 2rem auto;
  max-width: 1200px;
  position: relative;
  z-index: 10;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(159, 10, 23, 0.3);
}


.hero-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  font-family: var(--font-mono);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}


/* ========================================
   Services Section
   ======================================== */
.services {
  padding: 4rem 2rem 3rem;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-tag.terminal-comment::before {
  content: '// ';
  color: var(--accent-red);
  opacity: 0.7;
}

.section-tag.terminal-comment::after {
  content: ' //';
  color: var(--accent-red);
  opacity: 0.7;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Single service card in pentest phases */
.pentest-phase .services-grid {
  max-width: 500px;
  justify-items: center;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent-red);
  transition: height 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent-red);
  background: var(--bg-tertiary);
  box-shadow: 0 8px 30px rgba(159, 10, 23, 0.12);
}

.service-card:hover::before {
  height: 100%;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  position: relative;
}

/* CSS Vector Icons */
.icon-shield {
  width: 40px;
  height: 45px;
  border: 1px solid var(--accent-red);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  position: relative;
  transition: all 0.3s ease;
}

.icon-shield::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent-red-dark);
  border-radius: 50%;
}

.service-card:hover .icon-shield {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(159, 10, 23, 0.25);
}

.icon-gear {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-red);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.icon-gear::before,
.icon-gear::after {
  content: '';
  position: absolute;
  background: var(--accent-red);
}

.icon-gear::before {
  width: 4px;
  height: 50px;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.icon-gear::after {
  width: 50px;
  height: 4px;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.service-card:hover .icon-gear {
  box-shadow: 0 0 20px rgba(159, 10, 23, 0.25);
}

.icon-code {
  width: 45px;
  height: 35px;
  border: 1px solid var(--accent-red);
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
}

.icon-code::before {
  content: '</>';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: var(--accent-red-dark);
  font-family: var(--font-mono);
}

.service-card:hover .icon-code {
  box-shadow: 0 0 20px rgba(159, 10, 23, 0.25);
}

.icon-rocket {
  width: 30px;
  height: 40px;
  border: 1px solid var(--accent-red);
  border-radius: 50% 50% 0 0;
  position: relative;
  transform: rotate(-45deg);
  transition: all 0.3s ease;
}

.icon-rocket::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--accent-red-dark);
}

.service-card:hover .icon-rocket {
  box-shadow: 0 0 20px rgba(159, 10, 23, 0.25);
}

.icon-web {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-red);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.icon-web::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-red);
  transform: translateY(-50%);
}

.icon-web::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--accent-red);
  transform: translateX(-50%);
}

.service-card:hover .icon-web {
  box-shadow: 0 0 20px rgba(159, 10, 23, 0.25);
}

.icon-mobile {
  width: 28px;
  height: 45px;
  border: 1px solid var(--accent-red);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.icon-mobile::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-red-dark);
  border-radius: 50%;
}

.service-card:hover .icon-mobile {
  box-shadow: 0 0 20px rgba(159, 10, 23, 0.25);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card .methodology-content {
  margin-top: 0;
  padding-top: 0;
}

.service-card .methodology-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-card .methodology-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card .methodology-content li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card .methodology-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: bold;
}

.service-card .methodology-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Color adjustments for specific phases */
#fix .service-card .methodology-content li::before {
  color: #333333;
}

#retest .service-card .methodology-content li::before {
  color: #3e1843;
}


/* ========================================
   Continuous Pentesting Introduction
   ======================================== */
.continuous-pentesting-intro {
  padding: 4rem 2rem;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}



/* ========================================
   Pentest Journey - Caminito Visual
   ======================================== */
.pentest-journey {
  position: relative;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.journey-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent-red) 5%,
    var(--accent-red) 95%,
    transparent 100%
  );
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    var(--accent-red) 8px,
    var(--accent-red) 12px
  );
  z-index: 1;
  opacity: 0.4;
}

.pentest-phase {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 2rem;
  z-index: 2;
}

.journey-node {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-red);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(159, 10, 23, 0.2), 0 0 15px rgba(159, 10, 23, 0.4);
  animation: nodeBlink 2s ease-in-out infinite;
}

@keyframes nodeBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(159, 10, 23, 0.2), 0 0 15px rgba(159, 10, 23, 0.4);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
    box-shadow: 0 0 0 6px rgba(159, 10, 23, 0.3), 0 0 25px rgba(159, 10, 23, 0.6);
  }
}

/* Different delays for each phase node for a wave effect */
#pentest .journey-node {
  animation-delay: 0s;
}

#fix .journey-node {
  background: #333333;
  box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.2), 0 0 15px rgba(51, 51, 51, 0.4);
  animation: nodeBlinkGrey 2s ease-in-out infinite 0.4s;
}

@keyframes nodeBlinkGrey {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.2), 0 0 15px rgba(51, 51, 51, 0.4);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
    box-shadow: 0 0 0 6px rgba(51, 51, 51, 0.3), 0 0 25px rgba(51, 51, 51, 0.6);
  }
}

#retest .journey-node {
  animation-delay: 0.8s;
  background: #3e1843;
  box-shadow: 0 0 0 4px rgba(62, 24, 67, 0.2), 0 0 15px rgba(62, 24, 67, 0.4);
  animation: nodeBlinkPurple 2s ease-in-out infinite 0.8s;
}

@keyframes nodeBlinkPurple {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(62, 24, 67, 0.2), 0 0 15px rgba(62, 24, 67, 0.4);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
    box-shadow: 0 0 0 6px rgba(62, 24, 67, 0.3), 0 0 25px rgba(62, 24, 67, 0.6);
  }
}

#iteracion .journey-node {
  animation-delay: 1.2s;
}

.phase-left {
  padding-left: 0;
  padding-right: 50%;
}

.phase-left .journey-node {
  left: calc(50% - 10px);
}

.phase-left .section-header {
  text-align: left;
  max-width: 100%;
  margin-left: 0;
  margin-right: 2rem;
}

.phase-left .services-grid {
  margin-left: 0;
  margin-right: 2rem;
}

.phase-right {
  padding-left: 50%;
  padding-right: 0;
}

.phase-right .journey-node {
  left: calc(50% - 10px);
}

.phase-right .section-header {
  text-align: right;
  max-width: 100%;
  margin-right: 0;
  margin-left: 2rem;
}

.phase-right .services-grid {
  margin-right: 0;
  margin-left: 2rem;
}

/* Colores para el ciclo de Pentesting Continuo */
#pentest .section-tag,
#pentest .service-number,
#pentest .service-card::before,
#pentest .service-card:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

#pentest .service-card::before {
  background: var(--accent-red);
}

#pentest .service-card:hover {
  box-shadow: 0 8px 30px rgba(159, 10, 23, 0.12);
}

#fix .section-tag,
#fix .service-number,
#fix .service-card::before,
#fix .service-card:hover {
  border-color: #333333;
  color: #333333;
}

#fix .service-card::before {
  background: #333333;
}

#fix .service-card:hover {
  box-shadow: 0 8px 30px rgba(51, 51, 51, 0.12);
}

#retest .section-tag,
#retest .service-number,
#retest .service-card::before,
#retest .service-card:hover {
  border-color: #3e1843;
  color: #3e1843;
}

#retest .service-card::before {
  background: #3e1843;
}

#retest .service-card:hover {
  box-shadow: 0 8px 30px rgba(62, 24, 67, 0.12);
}

#iteracion .section-tag,
#iteracion .service-number,
#iteracion .service-card::before,
#iteracion .service-card:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

#iteracion .service-card::before {
  background: var(--accent-red);
}

#iteracion .service-card:hover {
  box-shadow: 0 8px 30px rgba(159, 10, 23, 0.12);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: 4rem 2rem 3rem;
  position: relative;
  z-index: 10;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  padding: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0;
  position: relative;
}

.contact-card > h2,
.contact-card > p {
  text-align: center;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-primary));
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}


.contact-card > p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-card > p:last-of-type {
  margin-bottom: 2.5rem;
}

.contact-info {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.contact-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: var(--accent-red);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.contact-email:hover {
  color: var(--accent-red-dark);
  transform: translateX(5px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 4rem 2rem 2rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  position: relative;
  z-index: 10;
  text-transform: uppercase;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-brand .logo:hover {
  opacity: 0.8;
}

.footer-brand p {
  color: var(--footer-text);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--footer-border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(217, 70, 239, 0.1);
}

.footer-column h4 {
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--footer-heading);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--footer-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--footer-muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--footer-text);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--mobile-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mobile-border);
  border-radius: 0;
  padding: 2rem;
  z-index: 999;
  box-shadow: var(--mobile-shadow);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--accent-red);
}

/* Mobile menu: hover color handled globally above (red). */

@media (max-width: 768px) {
  .code-element {
    font-size: 0.6rem;
    opacity: 0.4;
  }
  
  /* Continuous Pentesting Intro - Mobile */
  .continuous-pentesting-intro {
    padding: 3rem 1rem;
  }

  /* Pentest Journey - Mobile */
  .pentest-journey {
    padding: 3rem 1rem;
  }
  
  .journey-line {
    left: 2rem;
    transform: none;
    width: 2px;
    height: calc(100% - 4rem);
    top: 2rem;
  }
  
  .pentest-phase {
    padding: 2rem 1rem 1.5rem 4rem;
    margin-bottom: 2rem;
  }
  
  .phase-left,
  .phase-right {
    padding-left: 4rem;
    padding-right: 1rem;
  }
  
  .phase-left .journey-node,
  .phase-right .journey-node {
    left: 1.5rem;
  }
  
  .phase-left .section-header,
  .phase-right .section-header {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  
  .phase-left .services-grid,
  .phase-right .services-grid {
    margin-left: 0;
    margin-right: 0;
  }
}


/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
  .navbar-container {
    padding: 0 1.5rem;
  }

  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .hero {
    padding: 6rem 1rem 2rem;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .geo-shape {
    display: none;
  }
}

/* ========================================
   Page Loader
   ======================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  visibility: visible;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto 2rem;
  object-fit: contain;
  animation: fadeIn 0.6s ease-in;
}

.loader-spinner {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.spinner-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: loaderBounce 1.4s ease-in-out infinite;
}

.spinner-dot:nth-child(1) {
  animation-delay: 0s;
}

.spinner-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.spinner-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loaderBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(159, 10, 23, 0.35);
}
