/* ==========================================================================
   Gabriel Gonzalez García - Modern Personal Brand & Cybersecurity Platform
   Design System: Luminous Executive Editorial & Precision Engineering
   ========================================================================== */

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

:root {
  /* Color Palette - Luminous Porcelain & Deep Slate */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-dark-card: #0f172a;
  
  /* Text & Neutral Tones */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #f8fafc;

  /* Accent Colors */
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #eff6ff;
  --accent-blue-border: #bfdbfe;

  --accent-cyan: #0284c7;
  --accent-cyan-light: #f0f9ff;
  
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-emerald-border: #a7f3d0;

  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-amber-border: #fde68a;

  --accent-purple: #7c3aed;
  --accent-purple-light: #f5f3ff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow-blue: 0 0 25px rgba(37, 99, 235, 0.18);

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

  /* Layout & Spacing */
  --container-max: 1200px;
  --container-narrow: 840px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  font-size: 1.025rem;
}

a,
a *,
button,
button *,
[role="button"],
[role="button"] *,
[role="link"],
[role="link"] *,
[role="tab"],
[role="tab"] *,
input[type="submit"],
input[type="button"],
input[type="reset"],
select,
label[for],
summary,
summary *,
.btn,
.btn *,
.nav-link,
.nav-link *,
.nav-toggle,
.nav-toggle *,
.filter-pill,
.filter-pill *,
.article-card,
.article-card *,
.project-card,
.project-card *,
.talk-card,
.talk-card *,
.tool-card,
.tool-card *,
.evidence-item,
.evidence-item *,
.book-cover-wrapper,
.book-cover-wrapper *,
.book-3d,
.book-3d *,
.hero-topic-card,
.hero-topic-card *,
.hero-topic-thumb,
.hero-topic-thumb *,
.hero-ticker-pill,
.hero-ticker-pill *,
.ticker-item,
.ticker-item *,
.brand-logo,
.brand-logo *,
.social-link,
.social-link *,
.footer-link,
.footer-link *,
.talk-materials-btn,
.talk-materials-btn *,
.card-interactive,
.card-interactive *,
.back-link,
.back-link *,
.clickable,
.clickable *,
[data-href],
[data-href] *,
[onclick],
[onclick] * {
  cursor: pointer !important;
}

button:disabled,
button[disabled],
button:disabled *,
button[disabled] *,
.btn:disabled,
.btn[disabled],
.btn:disabled *,
.btn[disabled] *,
input:disabled,
[aria-disabled="true"],
[aria-disabled="true"] * {
  cursor: not-allowed !important;
}

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

a:hover {
  color: var(--accent-blue-hover);
}

code, pre {
  font-family: var(--font-mono);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

/* Section Spacing */
.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Section Headers */
.section-header {
  margin-bottom: 3.5rem;
  max-width: 720px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background: var(--accent-blue-light);
  border: 1px solid var(--accent-blue-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-logo:hover {
  color: var(--accent-blue);
}

.brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-blue);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-medium);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--bg-dark-card);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.25;
  box-sizing: border-box;
  flex-shrink: 0;
}

.hero-top-row .badge,
.hero-badges-wrapper .badge {
  height: 32px;
  padding: 0 0.85rem;
}

.badge-blue {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue-border);
}

.badge-emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.badge-amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber-border);
}

.badge-purple {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
  border: 1px solid #ddd6fe;
}

.badge-gray {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: 2.25rem;
  padding-bottom: 4.5rem;
  background: radial-gradient(circle at 85% 15%, rgba(219, 234, 254, 0.45) 0%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 10% 90%, rgba(236, 253, 245, 0.35) 0%, rgba(255, 255, 255, 0) 50%);
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hero-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.15rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-title {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.15;
}

.hero-title span {
  color: var(--accent-blue);
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-xl);
  margin-bottom: 0.5rem;
}

.hero-portrait-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
  max-width: 380px;
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.hero-floating-badge {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 2;
}

.hero-portrait-actions {
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.hero-linkedin-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.28);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.hero-linkedin-btn:hover {
  background: linear-gradient(135deg, #004182 0%, #002b54 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.4);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid #1e293b;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}

.footer-heading {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #1e293b;
  color: #f8fafc;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-top-row {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-xl);
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

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

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