/* ==========================================================================
   MAX JEFFERSON VALERIO ENCARNACIÓN - CV PORTFOLIO SPA
   Theme: Software, Computing & Systems with Mobile Development Focus
   Aesthetics: Cyberpunk / Night Sky Glassmorphism with Cyan, Purple & Emerald Glow
   Design: High-Contrast, Balanced Typography, Harmonized Card Lighting
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-primary: #0a0e17;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-hover: rgba(26, 38, 57, 0.92);
  --bg-elevated: #1e293b;

  /* Accent Colors */
  --cyan-primary: #00f2fe;
  --cyan-glow: #38bdf8;
  --cyan-subtle: rgba(56, 189, 248, 0.18);

  --purple-primary: #a855f7;
  --purple-glow: #c084fc;
  --purple-subtle: rgba(168, 85, 247, 0.18);

  --emerald-primary: #10b981;
  --emerald-glow: #34d399;
  --emerald-subtle: rgba(16, 185, 129, 0.18);

  --whatsapp-color: #25D366;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  --amber-primary: #fbbf24;
  --rose-primary: #fb7185;

  /* High-Contrast, Crisp Text Colors (No Washed-out/Faded text) */
  --text-main: #f8fafc;        /* High contrast primary text */
  --text-muted: #cbd5e1;       /* Clean, legible secondary copy */
  --text-dim: #94a3b8;         /* Clear, non-faded tertiary labels */
  --text-light: #ffffff;       /* Pure white headings */

  /* Borders & Glass */
  --border-glass: rgba(56, 189, 248, 0.22);
  --border-glow: rgba(56, 189, 248, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.10);

  /* Shadows & Glows */
  --shadow-card: 0 14px 38px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.18);
  --shadow-neon-cyan: 0 0 25px rgba(0, 242, 254, 0.45);
  --shadow-neon-purple: 0 0 25px rgba(168, 85, 247, 0.45);

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

  /* Layout & Transitions */
  --max-width: 1200px;
  --header-height: 74px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--cyan-primary);
  color: var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.hover-underline:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
  scroll-margin-top: calc(var(--header-height) + 1.2rem);
}

/* --------------------------------------------------------------------------
   3. AMBIENT GLOW & CYBER BACKGROUND
   -------------------------------------------------------------------------- */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.8s ease-out;
}

.glow-1 {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--cyan-primary) 0%, rgba(56, 189, 248, 0) 70%);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-2 {
  bottom: 10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--purple-primary) 0%, rgba(168, 85, 247, 0) 70%);
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  top: 45%;
  left: 30%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
  animation: floatOrb 26s ease-in-out infinite alternate;
}

.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(168, 85, 247, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(40px) scale(1.08); }
  100% { transform: translateY(-40px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   4. GLASSMORPHISM & HARMONIZED CARD ILLUMINATION
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 45px -8px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.2);
}

/* Uniform Top Neon Edge for ALL Cards */
.glow-card {
  position: relative;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(168, 85, 247, 0.8), transparent);
  opacity: 0.75;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

.glow-card:hover::before {
  opacity: 1;
}

/* Ambient Backlight Spots tuned for balanced, vivid luminosity */
.card-ambient-spot {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  opacity: 0.26;
  top: -30px;
  right: -30px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 0;
}

.glow-card:hover .card-ambient-spot {
  opacity: 0.45;
  transform: scale(1.1);
}

.light-cyan { background: var(--cyan-primary); }
.light-purple { background: var(--purple-primary); }
.light-blue { background: #3b82f6; }
.light-emerald { background: var(--emerald-primary); }
.light-amber { background: var(--amber-primary); }

/* Typography & Gradient Tokens */
.gradient-text {
  background: linear-gradient(90deg, #00f2fe 0%, #38bdf8 45%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  color: #00f2fe;
}

.glow-text-effect {
  filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.45));
}

.text-cyan { color: var(--cyan-glow); }
.text-purple { color: var(--purple-glow); }
.text-emerald { color: var(--emerald-glow); }
.text-yellow { color: #facc15; }
.text-orange { color: #fb923c; }
.text-blue { color: #60a5fa; }
.text-red { color: #f87171; }
.text-amber { color: #fbbf24; }
.text-sky { color: #38bdf8; }

.font-semibold { font-weight: 600; }

/* --------------------------------------------------------------------------
   5. BUTTONS, WHATSAPP & CALL TO ACTIONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  color: #031121;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.38);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 242, 254, 0.6);
  color: #000000;
}

/* WhatsApp Neon Green Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae16f 0%, #16a085 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

.btn-outline {
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--cyan-glow);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--cyan-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.copy-badge {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 0.3rem;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-glass:hover .copy-badge {
  opacity: 1;
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(10, 14, 23, 0.96);
  border-bottom-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.18rem;
}

.logo-symbol {
  font-family: var(--font-mono);
  color: var(--cyan-primary);
  font-weight: 800;
  font-size: 1.25rem;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.logo-name {
  letter-spacing: -0.01em;
  color: var(--text-light);
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link i {
  font-size: 0.88rem;
  opacity: 0.85;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-glow);
}

.nav-link:hover i,
.nav-link.active i {
  opacity: 1;
}

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

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

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.95);
  border: 2px solid #00f2fe;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5), inset 0 0 8px rgba(0, 242, 254, 0.2);
  color: #00f2fe;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-toggle:hover {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.75), inset 0 0 12px rgba(0, 242, 254, 0.3);
}

/* Vector Animated Hamburger SVG - High Luminosity & Instant First-Frame Paint */
.hamburger-svg {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px #00f2fe) drop-shadow(0 0 10px rgba(0, 242, 254, 0.8));
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hamburger-svg line {
  stroke: #00f2fe;
  stroke-width: 2.6;
  stroke-linecap: round;
  transform-origin: 12px 12px;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease,
              stroke 0.3s ease;
}

.mobile-toggle:hover .hamburger-svg line {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px #00f2fe);
}

/* Active State: Animated Morph from 3 Lines to X */
.mobile-toggle.active {
  background: rgba(0, 242, 254, 0.22);
  border-color: #00f2fe;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.75), inset 0 0 12px rgba(0, 242, 254, 0.3);
}

.mobile-toggle.active .hamburger-svg {
  transform: rotate(90deg);
}

.mobile-toggle.active .hamburger-svg line {
  stroke: #00f2fe;
  filter: drop-shadow(0 0 8px #00f2fe) drop-shadow(0 0 16px rgba(0, 242, 254, 0.95));
}

.mobile-toggle.active .line-top {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.active .line-mid {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active .line-bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 5rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-primary);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--emerald-primary); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--text-light);
}

.hero-greeting {
  display: block;
  font-size: 0.65em;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.title-sub {
  font-size: 0.65em;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.role-chip.cyan {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--cyan-primary);
}

.role-chip.purple {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--purple-glow);
}

.role-chip.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald-primary);
}

.role-divider {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item i {
  color: var(--cyan-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-extra-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quick-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.quick-icon-link:hover {
  transform: translateY(-3px);
}

.whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: var(--whatsapp-color);
  color: var(--whatsapp-color);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
}

.github-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
}

.linkedin-link:hover {
  background: rgba(10, 102, 194, 0.18);
  border-color: #0077b5;
  color: #38bdf8;
  box-shadow: 0 4px 18px rgba(0, 119, 181, 0.4);
}

.email-link:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
}

/* Hero Visual / Avatar Card */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.cyber-card-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.avatar-ring-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;
  height: 105%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 242, 254, 0.22) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 70%);
  border-radius: 30px;
  filter: blur(28px);
  pointer-events: none;
}

.avatar-card {
  padding: 1.8rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.88);
  position: relative;
  z-index: 2;
}

.avatar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.2rem;
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.avatar-graphic {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.avatar-icon-large {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--cyan-primary);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.code-snippet-preview {
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  word-break: break-word;
}

.code-snippet-preview code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.token-kw { color: #f43f5e; font-weight: 600; }
.token-var { color: var(--cyan-glow); }
.token-str { color: #86efac; }
.token-num { color: #fde047; }

.avatar-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Floating Mobile Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  animation: floatBadge 4s ease-in-out infinite alternate;
  pointer-events: auto;
}

.badge-ios {
  top: -24px;
  left: -28px;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
  animation-delay: 0s;
}

.badge-android {
  bottom: -20px;
  right: -24px;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  animation-delay: 1.5s;
}

.badge-ai {
  top: 48%;
  right: -42px;
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
  animation-delay: 0.8s;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.badge-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ios-wrap {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.android-wrap {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.ai-wrap {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.badge-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
}

.neon-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
}

.badge-android .neon-indicator {
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

/* --------------------------------------------------------------------------
   8. SECTION HEADERS
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan-glow);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  color: var(--text-light);
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. ABOUT SECTION (RESUMEN PROFESIONAL)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: stretch;
}

.about-main-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  font-size: 2.4rem;
  color: var(--cyan-primary);
  opacity: 0.5;
  margin-bottom: 1.2rem;
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 2.2rem;
  word-break: break-word;
}

.about-highlights {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.highlight-icon.cyan {
  background: rgba(0, 242, 254, 0.16);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.highlight-icon.purple {
  background: rgba(168, 85, 247, 0.16);
  color: var(--purple-glow);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.highlight-icon.emerald {
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.highlight-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.highlight-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* About Facts Card */
.about-facts-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.facts-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.facts-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  word-break: break-word;
}

.facts-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fact-label i {
  color: var(--cyan-primary);
  font-size: 0.9rem;
}

.fact-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   10. SKILLS SECTION
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  border-color: rgba(56, 189, 248, 0.45);
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.18);
  color: var(--cyan-primary);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.skill-category-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-header-styled {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.card-header-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-icon-styled {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.cyan-glow {
  background: rgba(0, 242, 254, 0.16);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.28);
}

.purple-glow {
  background: rgba(168, 85, 247, 0.16);
  color: var(--purple-glow);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.28);
}

.blue-glow {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.28);
}

.emerald-glow {
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.28);
}

.card-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
  word-break: break-word;
}

.card-category-subtitle {
  font-size: 0.84rem;
  color: var(--text-dim);
  font-weight: 500;
}

.skill-tags-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateX(4px);
}

.skill-tag i {
  font-size: 1.5rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.highlighted-tag,
.vibe-tag {
  border: 1px solid var(--border-glass) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.tag-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tag-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-light);
  word-break: break-word;
}

.tag-level {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

/* Cert Banner */
.cert-banner {
  padding: 1.8rem 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
}

.cert-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.16);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.cert-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.cert-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cert-badge {
  margin-left: auto;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   11. EXPERIENCIA LABORAL (CYBER TIMELINE)
   -------------------------------------------------------------------------- */
.cyber-timeline {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-primary) 0%, var(--purple-primary) 60%, transparent 100%);
  box-shadow: 0 0 14px var(--cyan-primary);
  z-index: 1;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 3.2rem;
  z-index: 2;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--cyan-primary);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transition: transform var(--transition-normal);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.1);
  box-shadow: 0 0 32px rgba(0, 242, 254, 0.8);
}

.node-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid var(--cyan-primary);
  opacity: 0.4;
  animation: pulseRing 2.5s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.timeline-content {
  flex-grow: 1;
  padding: 2.4rem;
  border-radius: 18px;
  overflow: hidden;
}

.timeline-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cyan-primary);
  margin-bottom: 0.85rem;
  background: rgba(0, 242, 254, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.timeline-titles {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.timeline-role {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
  word-break: break-word;
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.35rem;
  word-break: break-word;
}

.timeline-company i {
  color: var(--purple-glow);
}

.work-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-badge.full-time {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.work-badge.dev {
  background: rgba(0, 242, 254, 0.18);
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: var(--cyan-primary);
}

.work-badge.data {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: var(--purple-glow);
}

.work-badge.field {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.work-badge.support {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--cyan-glow);
}

.timeline-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.timeline-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.65;
  word-break: break-word;
}

.timeline-tasks li i {
  color: var(--cyan-primary);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.timeline-tasks li strong {
  color: var(--text-light);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-tag {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.mini-tag.highlight {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--cyan-glow);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. EDUCACIÓN Y CAPACITACIONES
   -------------------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.edu-card {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.edu-card.main-degree {
  grid-column: span 2;
  border-color: rgba(0, 242, 254, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.edu-card.edu-card-centered {
  grid-column: 1 / -1;
  max-width: 580px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.edu-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.edu-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.edu-status-pill {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.edu-status-pill.in-progress {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.edu-status-pill.completed {
  color: var(--cyan-glow);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.edu-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.45rem;
  word-break: break-word;
}

.edu-institution {
  font-size: 0.96rem;
  color: var(--purple-glow);
  font-weight: 600;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

.edu-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.6rem;
  flex-grow: 1;
  word-break: break-word;
}

.edu-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.edu-chip {
  font-size: 0.84rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.edu-chip i {
  color: var(--cyan-primary);
}

/* --------------------------------------------------------------------------
   13. CONTACTO / CALL TO ACTION
   -------------------------------------------------------------------------- */
.contact-box {
  padding: 3.5rem 3rem;
  text-align: center;
  border-color: rgba(56, 189, 248, 0.4);
}

.contact-header {
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.contact-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.contact-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
  text-align: left;
}

.contact-card.location-card {
  grid-column: 1 / -1;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  padding: 1.5rem 1.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
}

.contact-card.hover-lift:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.whatsapp-card {
  border: 1px solid var(--border-glass) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.whatsapp-card:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.whatsapp-bg {
  background: rgba(37, 211, 102, 0.18);
  color: var(--whatsapp-color);
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.linkedin-bg {
  background: rgba(10, 102, 194, 0.18);
  color: #0077b5;
  border: 1px solid rgba(10, 102, 194, 0.4);
}

.github-bg {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.email-bg {
  background: rgba(0, 242, 254, 0.16);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.location-bg {
  background: rgba(168, 85, 247, 0.16);
  color: var(--purple-glow);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.contact-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-type {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-light);
  word-break: break-word;
}

.contact-arrow {
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
  color: var(--cyan-primary);
  transform: scale(1.15);
}


.contact-actions-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 2.5rem 0;
  background: rgba(10, 14, 23, 0.95);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-light);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-icon-link:hover {
  transform: translateY(-2px);
}

.whatsapp-footer:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: var(--whatsapp-color);
  color: var(--whatsapp-color);
}

.github-footer:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

.linkedin-footer:hover {
  background: rgba(10, 102, 194, 0.2);
  border-color: #0077b5;
  color: #38bdf8;
}

.email-footer:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.footer-icon-link.scroll-top {
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyan-primary);
  border-color: rgba(0, 242, 254, 0.35);
}

/* --------------------------------------------------------------------------
   15. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.1rem 1.5rem;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--cyan-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 22px rgba(0, 242, 254, 0.35);
  border-radius: 14px;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
}

.toast-message {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.45s; }
.delay-5 { transition-delay: 0.55s; }

/* --------------------------------------------------------------------------
   17. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-role, .hero-meta, .hero-actions, .hero-extra-links {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 1rem;
  }

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

  .cyber-timeline {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Compact Container & Fluid Section Padding */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding: 2.8rem 0;
    scroll-margin-top: calc(var(--header-height) + 0.8rem);
  }

  .section-header {
    margin-bottom: 1.6rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.45rem;
  }

  .section-title {
    font-size: 1.72rem;
    line-height: 1.22;
  }

  /* Uncluttered Mobile Header */
  .header-container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .brand-logo {
    gap: 0.45rem;
    font-size: 1.05rem;
  }

  .logo-symbol {
    font-size: 1rem;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
  }

  .logo-name {
    font-size: 0.98rem;
    white-space: nowrap;
    font-weight: 700;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-wa-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
    gap: 0.35rem;
  }

  .mobile-toggle {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px;
    background: rgba(10, 22, 40, 0.95) !important;
    border: 2px solid #00f2fe !important;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.5), inset 0 0 8px rgba(0, 242, 254, 0.2) !important;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-toggle .hamburger-svg {
    width: 22px;
    height: 22px;
  }

  .mobile-toggle.active .line-top {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-toggle.active .line-bot {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Mobile Drawer Menu - Fluid, Smooth Emergence at Lower Speed */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 1.15rem 1.1rem 1.45rem;
    flex-direction: column;
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.9);
    max-height: calc(100vh - var(--header-height) - 1rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform, opacity;
    /* Gentle, relaxed transition speed (sin recortes ni trabas) */
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.38s ease,
                visibility 0.48s ease;
  }

  .nav-menu.open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease,
                visibility 0.48s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
  }

  /* Animated Entrance of Navigation Sections with Gentler, Staggered Flow */
  .nav-list li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease,
                transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }

  .nav-menu.open .nav-list li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Calmer, lowered speed for staggered section items */
  .nav-menu.open .nav-list li:nth-child(1) { transition-delay: 0.10s; }
  .nav-menu.open .nav-list li:nth-child(2) { transition-delay: 0.16s; }
  .nav-menu.open .nav-list li:nth-child(3) { transition-delay: 0.22s; }
  .nav-menu.open .nav-list li:nth-child(4) { transition-delay: 0.28s; }
  .nav-menu.open .nav-list li:nth-child(5) { transition-delay: 0.34s; }
  .nav-menu.open .nav-list li:nth-child(6) { transition-delay: 0.40s; }

  /* Fast reset on close so closing never hangs */
  .nav-menu:not(.open) .nav-list li {
    transition: opacity 0.2s ease, transform 0.2s ease;
    transition-delay: 0s !important;
  }

  .nav-link {
    font-size: 0.94rem;
    font-weight: 600;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast),
                transform var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.35);
    color: var(--cyan-primary);
    transform: translateX(4px);
  }

  .nav-link i {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: var(--cyan-primary);
  }

  .nav-link::after {
    display: none;
  }

  /* Global Button Size Reduction */
  .btn {
    padding: 0.58rem 1.15rem;
    font-size: 0.86rem;
    border-radius: 10px;
    gap: 0.45rem;
  }

  .btn-lg {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  /* Hero Section Mobile Optimization - Ample top spacing so fixed header never covers 'Hola, soy' */
  .section.hero-section,
  .hero-section {
    padding-top: calc(var(--header-height) + 2.6rem);
    padding-bottom: 2.2rem;
    min-height: auto;
  }

  .hero-container {
    gap: 1.8rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-greeting {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .hero-role {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
  }

  .role-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    gap: 0.3rem;
  }

  .role-chip i {
    font-size: 0.72rem;
  }

  .role-divider {
    display: none;
  }

  .hero-meta {
    margin-bottom: 1rem;
    font-size: 0.82rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 330px;
    margin: 0 auto 0.9rem auto;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    font-size: 0.84rem;
    padding: 0.58rem 0.9rem;
    justify-content: center;
  }

  .hero-extra-links {
    margin-top: 0.5rem;
    gap: 0.55rem;
  }

  .quick-icon-link {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 9px;
  }

  /* Hero Visual & Streamlined Profile Card */
  .hero-visual {
    margin-top: 0.4rem;
  }

  .cyber-card-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .avatar-ring-glow {
    filter: blur(20px);
    opacity: 0.65;
  }

  .avatar-card {
    padding: 0.95rem;
    border-radius: 14px;
  }

  .avatar-header {
    padding-bottom: 0.45rem;
    margin-bottom: 0.55rem;
  }

  .terminal-dots .dot {
    width: 7px;
    height: 7px;
  }

  .terminal-title {
    font-size: 0.7rem;
  }

  .avatar-graphic {
    gap: 0.55rem;
    margin-bottom: 0.55rem;
  }

  .avatar-icon-large {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  .code-snippet-preview {
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
    line-height: 1.4;
    border-radius: 8px;
  }

  .avatar-stats-strip {
    padding-top: 0.55rem;
    gap: 0.35rem;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-desc {
    font-size: 0.66rem;
  }

  /* Floating Badges */
  .floating-badge {
    padding: 0.3rem 0.55rem;
    border-radius: 9px;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }

  .badge-icon-wrap {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    border-radius: 5px;
  }

  .badge-label {
    font-size: 0.52rem;
  }

  .badge-value {
    font-size: 0.7rem;
  }

  .badge-ios {
    left: 4px;
    top: -10px;
  }

  .badge-android {
    right: 4px;
    bottom: -10px;
  }

  .badge-ai {
    display: none;
  }

  /* About Section Compact Cards */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-main-card {
    padding: 1.15rem 1rem;
    border-radius: 14px;
  }

  .quote-icon {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .about-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .about-highlights {
    gap: 0.75rem;
    padding-top: 0.85rem;
  }

  .highlight-item {
    gap: 0.65rem;
  }

  .highlight-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .highlight-item h4 {
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
  }

  .highlight-item p {
    font-size: 0.8rem;
    line-height: 1.42;
  }

  .about-facts-card {
    padding: 1.15rem 1rem;
    border-radius: 14px;
  }

  .facts-title {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
  }

  .facts-list {
    gap: 0.5rem;
    margin-bottom: 0.9rem;
  }

  .facts-list li {
    padding-bottom: 0.45rem;
    gap: 0.15rem;
  }

  .fact-label {
    font-size: 0.74rem;
  }

  .fact-val {
    font-size: 0.84rem;
  }

  .quick-cta-box {
    margin-top: 0.85rem;
  }

  .quick-cta-box .btn {
    padding: 0.52rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 9px;
  }

  /* Skills Section */
  .filter-tabs {
    gap: 0.35rem;
    margin-bottom: 1.25rem;
  }

  .tab-btn {
    padding: 0.32rem 0.68rem;
    font-size: 0.76rem;
    border-radius: 7px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .skill-category-card {
    padding: 1.1rem 0.95rem;
    border-radius: 14px;
    height: auto;
  }

  .card-header-styled {
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .card-icon-styled {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  .card-category-title {
    font-size: 1rem;
  }

  .card-category-subtitle {
    font-size: 0.74rem;
  }

  .skill-tags-wrapper {
    gap: 0.4rem;
  }

  .skill-tag {
    padding: 0.48rem 0.7rem;
    border-radius: 9px;
    gap: 0.6rem;
  }

  .skill-tag i {
    font-size: 1.1rem;
    width: 22px;
  }

  .tag-name {
    font-size: 0.82rem;
  }

  .tag-level {
    font-size: 0.7rem;
  }

  /* Cert Banner Streamlined */
  .cert-banner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0.75rem 0.95rem;
    gap: 0.75rem;
    margin-top: 1.2rem;
    border-radius: 12px;
  }

  .cert-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .cert-info {
    flex: 1;
    min-width: 0;
  }

  .cert-info h4 {
    font-size: 0.86rem;
    margin-bottom: 0.15rem;
    line-height: 1.25;
  }

  .cert-info p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .cert-badge {
    margin-left: 0;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Timeline Section */
  .cyber-timeline {
    padding-left: 0;
  }

  .timeline-spine {
    left: 17px;
  }

  .timeline-node {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    margin-left: 0;
  }

  .timeline-item {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .timeline-content {
    padding: 1.05rem 0.95rem;
    border-radius: 14px;
  }

  .timeline-date-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.45rem;
    border-radius: 5px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .timeline-titles {
    max-width: 100%;
  }

  .timeline-role {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .timeline-company {
    font-size: 0.8rem;
    margin-top: 0.15rem;
    gap: 0.4rem;
  }

  .work-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    border-radius: 5px;
  }

  .timeline-tasks {
    gap: 0.4rem;
    margin-bottom: 0.7rem;
  }

  .timeline-tasks li {
    font-size: 0.8rem;
    line-height: 1.45;
    gap: 0.55rem;
  }

  .timeline-tasks li i {
    font-size: 0.66rem;
    margin-top: 0.25rem;
  }

  .timeline-tags {
    gap: 0.3rem;
    padding-top: 0.65rem;
  }

  .mini-tag {
    font-size: 0.68rem;
    padding: 0.18rem 0.48rem;
    border-radius: 5px;
  }

  /* Education Section */
  .education-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .edu-card.main-degree,
  .edu-card.edu-card-centered {
    grid-column: span 1;
    max-width: 100%;
  }

  .edu-card {
    padding: 1.05rem 0.95rem;
    border-radius: 14px;
    height: auto;
  }

  .edu-top-row {
    margin-bottom: 0.55rem;
  }

  .edu-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  .edu-status-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
  }

  .edu-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.25;
  }

  .edu-institution {
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
  }

  .edu-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
  }

  .edu-features {
    gap: 0.3rem;
    padding-top: 0.65rem;
  }

  .edu-chip {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
  }

  /* Contact Section */
  .contact-box {
    padding: 1.4rem 1rem;
    border-radius: 16px;
  }

  .contact-header {
    margin-bottom: 1.2rem;
  }

  .contact-title {
    font-size: 1.35rem;
    line-height: 1.22;
    margin-bottom: 0.45rem;
  }

  .contact-subtitle {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .contact-methods-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
  }

  .contact-card.location-card {
    grid-column: span 1;
    max-width: 100%;
  }

  .contact-card {
    padding: 0.7rem 0.8rem;
    border-radius: 11px;
    gap: 0.65rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .contact-type {
    font-size: 0.68rem;
  }

  .contact-val {
    font-size: 0.84rem;
  }

  .contact-arrow {
    font-size: 0.78rem;
  }

  .contact-actions-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
  }

  .contact-actions-footer .btn {
    width: 100%;
    max-width: 320px;
    padding: 0.6rem 0.95rem;
    font-size: 0.84rem;
    border-radius: 9px;
  }

  /* Footer */
  .site-footer {
    padding: 1.8rem 0 1.4rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.9rem;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-brand .logo-symbol {
    font-size: 0.95rem;
    padding: 0.18rem 0.42rem;
  }

  .footer-name {
    font-size: 0.88rem;
  }

  .footer-desc {
    font-size: 0.76rem;
  }

  .footer-copy {
    font-size: 0.74rem;
  }
}

/* Specific Phone Optimizations (<= 640px) */
@media (max-width: 640px) {
  .header-wa-text {
    display: none;
  }

  .header-wa-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }
}

/* Small Phone Optimizations (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .container {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  /* Ensure hero section top padding is never overridden and stays clear of the fixed header */
  .section.hero-section,
  .hero-section {
    padding-top: calc(var(--header-height) + 2.4rem);
    padding-bottom: 2rem;
  }

  .section-header {
    margin-bottom: 1.3rem;
  }

  .section-title {
    font-size: 1.48rem;
  }

  .mobile-toggle {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .brand-logo {
    gap: 0.4rem;
  }

  .logo-symbol {
    font-size: 0.95rem;
    padding: 0.16rem 0.4rem;
  }

  .logo-name {
    font-size: 0.94rem;
  }

  .hero-title {
    font-size: 1.62rem;
  }

  .hero-actions .btn {
    width: 100%;
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
  }

  .cyber-card-frame {
    max-width: 295px;
  }

  .avatar-card {
    padding: 0.85rem;
  }

  .code-snippet-preview {
    font-size: 0.67rem;
    padding: 0.45rem 0.6rem;
  }

  .contact-box {
    padding: 1.25rem 0.85rem;
    border-radius: 14px;
  }

  .contact-title {
    font-size: 1.24rem;
  }

  .timeline-content {
    padding: 0.95rem 0.85rem;
  }

  .cert-banner {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

/* Very Small Screen (<= 360px) */
@media (max-width: 360px) {
  .section.hero-section,
  .hero-section {
    padding-top: calc(var(--header-height) + 2.2rem);
  }

  .mobile-toggle {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .logo-name {
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .cyber-card-frame {
    max-width: 270px;
  }
}

