/* ==========================================================================
   ANDREA VENTURA - CURRICULUM VITAE & PORTFOLIO
   Domain: andreaventura.online
   Aesthetic: Ultra-modern High-Tech Glassmorphism / Cyber Engineering
   ========================================================================== */

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

/* --- Design Tokens & Color Palettes --- */
:root {
  color-scheme: dark;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Colors - Dark Theme (Default) */
  --bg-base: #07090e;
  --bg-surface-1: #0d121d;
  --bg-surface-2: #131b2e;
  --bg-surface-elevated: #18223a;
  --bg-card: rgba(16, 23, 38, 0.72);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --bg-glass: rgba(13, 18, 29, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-glow-purple: rgba(168, 85, 247, 0.35);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #07090e;

  /* Neon Accents */
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.25);
  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber: #f59e0b;
  --rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #6366f1 50%, #a855f7 100%);
  --grad-accent: linear-gradient(135deg, #10b981 0%, #00f0ff 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-hero-glow: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.12), rgba(99, 102, 241, 0.08) 35%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.18);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.2);

  /* Spacing & Layout */
  --header-height: 76px;
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  color-scheme: light;
  --bg-base: #f8fafc;
  --bg-surface-1: #ffffff;
  --bg-surface-2: #f1f5f9;
  --bg-surface-elevated: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.8);
  
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-glow: rgba(0, 160, 220, 0.4);
  --border-glow-purple: rgba(147, 51, 234, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverted: #ffffff;

  --cyan: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  --indigo: #4f46e5;
  --purple: #9333ea;
  --emerald: #059669;

  --grad-hero-glow: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.08), rgba(79, 70, 229, 0.05) 40%, transparent 70%);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* Selection */
::selection {
  background: var(--cyan);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Accessibility - Focus visible */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

p {
  color: var(--text-secondary);
}

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

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

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

/* Top Progress Reading Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-primary);
  z-index: 1000;
  width: 0%;
  transition: width 0.05s linear;
}

/* Background Canvas / Particles */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 800px;
  background: var(--grad-hero-glow);
  pointer-events: none;
  z-index: 0;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-title .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(13, 18, 29, 0.88);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-medium);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.brand-wordmark {
  font-family: var(--font-main);
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark .brand-highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.brand-wordmark::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  margin-left: 2px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cyan);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

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

/* Tool Buttons (Lang, Theme, Terminal) */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-icon:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.btn-lang {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0 0.6rem;
  width: auto;
  height: 38px;
}

.btn-terminal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-terminal-toggle:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

/* ==========================================================================
   BUTTONS & UI CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #07090e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.45);
  color: #07090e;
}

.btn-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.btn-outline-glow {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
}

.btn-outline-glow:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5.5rem 0;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: #34d399;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-glow 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-title-name {
  display: block;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title-name {
  background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.85em;
}

.typewriter-container {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: var(--cyan);
  min-height: 2rem;
}

.typewriter-prefix {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

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

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

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 8px;
  background: var(--grad-primary);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25), 0 0 100px rgba(168, 85, 247, 0.2);
  animation: float-avatar 6s ease-in-out infinite;
}

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

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-surface-1);
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.05);
}

/* Floating Badges around Avatar */
.float-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  animation: float-card 5s ease-in-out infinite alternate;
}

.float-card-1 {
  top: 10%;
  left: -20px;
  border-left: 3px solid var(--cyan);
}

.float-card-2 {
  bottom: 8%;
  right: -20px;
  border-right: 3px solid var(--purple);
  animation-delay: -2.5s;
}

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

.float-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.float-icon.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

.float-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
}

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

.float-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.float-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Hero Stats Bar */
.stats-strip {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--border-subtle);
  padding-right: 1.5rem;
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

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

/* ==========================================================================
   INTERACTIVE TERMINAL (DEV CONSOLE)
   ========================================================================== */
.terminal-section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.terminal-window {
  background: #080b12;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #0d121f;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-tools {
  display: flex;
  gap: 0.5rem;
}

.term-quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-quick-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border-color: var(--cyan);
}

.terminal-body {
  padding: 1.5rem;
  min-height: 380px;
  max-height: 520px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.term-line {
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.term-prompt {
  color: var(--cyan);
  margin-right: 0.6rem;
  font-weight: 600;
}

.term-command {
  color: #f8fafc;
  font-weight: 600;
}

.term-output {
  color: #94a3b8;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.term-output.success {
  color: #34d399;
}

.term-output.accent {
  color: var(--cyan);
}

.term-output.purple {
  color: #c084fc;
}

.term-input-row {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #ffffff;
}

/* ==========================================================================
   AI AGENT BUSINESS SYSTEM & INNOVATIONS
   ========================================================================== */
.projects-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

/* Flagship Agent System Hero Card */
.flagship-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.flagship-badge-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.flagship-headline {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.flagship-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 2.5rem;
}

/* 4 Divisions Grid */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.division-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  transition: all var(--transition-base);
}

.division-box:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.15);
}

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

.div-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.div-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
}

.div-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}

.div-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}

.div-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.div-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.div-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pipe-step {
  background: var(--bg-surface-2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
}

.pipe-arrow {
  color: var(--text-muted);
}

/* Secondary AI Projects Grid */
.secondary-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
}

.project-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   WORK EXPERIENCE TIMELINE
   ========================================================================== */
.experience-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--purple) 50%, var(--border-subtle) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
}

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

.timeline-marker {
  position: absolute;
  top: 4px;
  left: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  border-color: #fff;
  background: var(--cyan);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
}

.timeline-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.timeline-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-company span.loc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.timeline-duties {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.timeline-duties li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-duties li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   TECHNICAL SKILLS MATRIX
   ========================================================================== */
.skills-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.skills-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--cyan);
}

.filter-btn.active {
  background: var(--cyan);
  color: #07090e;
  font-weight: 700;
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.skill-category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.skill-item-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skill-item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.skill-name {
  color: var(--text-primary);
}

.skill-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

.skill-progress-track {
  height: 6px;
  width: 100%;
  background: var(--bg-surface-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* ==========================================================================
   CERTIFICATES & EDUCATION GALLERY
   ========================================================================== */
.certs-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cert-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 240, 255, 0.2);
}

.cert-preview-wrap {
  width: 100%;
  height: 210px;
  background: #090e18;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.cert-card:hover .cert-img {
  transform: scale(1.06);
}

.cert-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cert-card:hover .cert-overlay-hover {
  opacity: 1;
}

.cert-view-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: #07090e;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
}

.cert-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.cert-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.cert-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.cert-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* ==========================================================================
   LIVE API PLAYGROUND ("TEST ANDREA'S ENDPOINTS")
   ========================================================================== */
.api-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.api-window {
  background: #090d16;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.api-top-bar {
  background: #0e1423;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.api-method-badge {
  background: #10b981;
  color: #07090e;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.api-method-badge.post {
  background: #3b82f6;
  color: #fff;
}

.api-url-bar {
  flex: 1;
  min-width: 250px;
  background: #07090e;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #f1f5f9;
}

.api-send-btn {
  background: var(--cyan);
  color: #07090e;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.api-send-btn:hover {
  box-shadow: 0 0 15px var(--cyan);
  transform: translateY(-1px);
}

.api-endpoints-nav {
  display: flex;
  background: #0b101c;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.api-endpoint-tab {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.api-endpoint-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.api-endpoint-tab.active {
  color: var(--cyan);
  background: #0e1423;
  border-bottom: 2px solid var(--cyan);
}

.api-content-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.api-pane-col {
  padding: 1.5rem;
  border-right: 1px solid var(--border-subtle);
}

.api-pane-col:last-child {
  border-right: none;
}

.api-pane-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.api-json-pre {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #38bdf8;
  max-height: 320px;
  overflow-y: auto;
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-section {
  padding: 6rem 0 4rem 0;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-base);
}

.contact-card-link:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Form */
.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  background: var(--bg-base);
  position: relative;
  z-index: 1;
}

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

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

.footer-text strong {
  color: var(--text-primary);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   MODAL LIGHTBOX (CERTIFICATE VIEWER)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--cyan);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-img-wrap {
  width: 100%;
  max-height: 60vh;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #0e1423;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slide-in 0.3s ease-out forwards;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Modern Web Guidance)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-on-scroll {
      animation: fadeSlideUp auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* Fallback for browsers not supporting native view-timeline */
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
  }
  .status-pill {
    align-self: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .divisions-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .api-content-pane {
    grid-template-columns: 1fr;
  }
  .api-pane-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface-1);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-medium);
    transform: translateY(-150%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .btn-terminal-toggle span {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .skills-grid, .certs-grid, .secondary-projects-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
    padding-right: 0;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .float-card {
    display: none;
  }
  .timeline::before {
    left: 14px;
  }
  .timeline-marker {
    left: 4px;
    width: 20px;
    height: 20px;
  }
  .timeline-item {
    padding-left: 45px;
  }
}

/* ==========================================================================
   APPLE-GRADE HERO SECTION WITH LIVE API PLAYGROUND
   Designed to impress recruiters with Cupertino precision & sleek aesthetics
   ========================================================================== */
.apple-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 6rem 0;
  overflow: hidden;
  z-index: 1;
}

.apple-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem auto;
  position: relative;
  z-index: 2;
}

.apple-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

.apple-pill-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-glow 2s infinite;
}

.apple-hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.apple-hero-title .glow-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .apple-hero-title .glow-gradient {
  background: linear-gradient(135deg, #0f172a 20%, #4338ca 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.apple-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.apple-hero-lead strong {
  color: var(--text-primary);
}

.apple-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Apple Playground Titanium Window */
.apple-window-wrap {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  z-index: 2;
}

.apple-window-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.22), rgba(99, 102, 241, 0.15) 40%, transparent 75%);
  filter: blur(25px);
  z-index: -1;
  border-radius: 32px;
  pointer-events: none;
}

.apple-window {
  background: rgba(13, 17, 28, 0.94);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  transition: all var(--transition-base);
}

[data-theme="light"] .apple-window {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 30px 80px -15px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

/* Apple Window Titlebar */
.apple-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: rgba(20, 27, 43, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

[data-theme="light"] .apple-titlebar {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.apple-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.mac-dot.red { background: #ff5f56; border: 1px solid #e0443e; }
.mac-dot.yellow { background: #ffbd2e; border: 1px solid #dea123; }
.mac-dot.green { background: #27c93f; border: 1px solid #1aab29; }

.mac-dot:hover {
  transform: scale(1.15);
}

/* Apple Segmented Capsule Control */
.apple-segmented-control {
  display: flex;
  background: rgba(7, 10, 18, 0.8);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 2px;
}

[data-theme="light"] .apple-segmented-control {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.segment-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.segment-btn:hover {
  color: #f8fafc;
}

[data-theme="light"] .segment-btn {
  color: #475569;
}

[data-theme="light"] .segment-btn:hover {
  color: #0f172a;
}

.segment-btn.active {
  background: #1e293b;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .segment-btn.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.apple-telemetry-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.apple-status-pill {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-weight: 700;
}

[data-theme="light"] .apple-status-pill {
  color: #047857;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.apple-latency-pill {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
}

[data-theme="light"] .apple-latency-pill {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

/* Apple Playground Body */
.apple-playground-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 420px;
}

.apple-sidebar-pane {
  background: rgba(15, 21, 35, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

[data-theme="light"] .apple-sidebar-pane {
  background: #f8fafc;
  border-right-color: #e2e8f0;
}

.apple-pane-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
}

[data-theme="light"] .apple-pane-label {
  color: #475569;
}

.apple-url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
}

[data-theme="light"] .apple-url-row {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.apple-method {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #10b981;
  color: #07090e;
}

[data-theme="light"] .apple-method {
  background: #059669;
  color: #ffffff;
}

.apple-method.post {
  background: #6366f1;
  color: #fff;
}

[data-theme="light"] .apple-method.post {
  background: #4f46e5;
  color: #ffffff;
}

.apple-endpoint-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-all;
}

[data-theme="light"] .apple-endpoint-text {
  color: #0f172a;
}

.apple-headers-box {
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.6;
}

[data-theme="light"] .apple-headers-box {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  color: #334155;
}

.apple-headers-box span.key {
  color: #38bdf8;
  font-weight: 700;
}

[data-theme="light"] .apple-headers-box span.key {
  color: #0284c7;
}

.apple-headers-box span.val {
  color: #f8fafc;
  font-weight: 600;
}

[data-theme="light"] .apple-headers-box span.val {
  color: #0f172a;
}

pre.apple-headers-box {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
  max-height: 140px;
}

.apple-send-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--grad-primary);
  color: #07090e;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

[data-theme="light"] .apple-send-btn {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.apple-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.45);
}

[data-theme="light"] .apple-send-btn:hover {
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

/* Apple Response Pane */
.apple-response-pane {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(10, 14, 24, 0.95);
}

[data-theme="light"] .apple-response-pane {
  background: #ffffff;
}

.apple-response-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.apple-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.apple-copy-btn:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

[data-theme="light"] .apple-copy-btn {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .apple-copy-btn:hover {
  color: #0284c7;
  border-color: #0284c7;
  background: #e0f2fe;
}

.apple-code-editor {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #f8fafc;
  background: rgba(6, 9, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

[data-theme="light"] .apple-code-editor {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* Syntax Highlighting Tokens (High Contrast WCAG AAA) */
.json-key {
  color: #38bdf8;
  font-weight: 700;
}

.json-string {
  color: #34d399;
  font-weight: 500;
}

.json-number {
  color: #fbbf24;
  font-weight: 700;
}

.json-boolean {
  color: #c084fc;
  font-weight: 800;
}

.json-null {
  color: #94a3b8;
  font-style: italic;
}

.json-comment {
  color: #64748b;
  font-style: italic;
  font-weight: 500;
}

/* Syntax Highlighting for Light Theme */
[data-theme="light"] .json-key {
  color: #0369a1;
  font-weight: 700;
}

[data-theme="light"] .json-string {
  color: #15803d;
  font-weight: 600;
}

[data-theme="light"] .json-number {
  color: #c2410c;
  font-weight: 700;
}

[data-theme="light"] .json-boolean {
  color: #7c3aed;
  font-weight: 800;
}

[data-theme="light"] .json-null {
  color: #64748b;
  font-style: italic;
}

[data-theme="light"] .json-comment {
  color: #475569;
  font-style: italic;
}

/* Recruiter Quick Card under Playground */
.apple-recruiter-bar {
  margin-top: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.recruiter-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.recruiter-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   MULTI-PAGE HUB CARDS (ON INDEX.HTML)
   ========================================================================== */
.hub-section {
  padding: 5rem 0 7rem 0;
  position: relative;
  z-index: 1;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

[data-theme="light"] .hub-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.hub-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.2);
}

[data-theme="light"] .hub-card:hover {
  border-color: #0284c7;
  box-shadow: 0 16px 35px -5px rgba(2, 132, 199, 0.15);
}

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

.hub-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.hub-card.purple .hub-card-icon { background: rgba(168, 85, 247, 0.1); color: var(--purple); }
.hub-card.emerald .hub-card-icon { background: rgba(16, 185, 129, 0.1); color: var(--emerald); }
.hub-card.amber .hub-card-icon { background: rgba(245, 158, 11, 0.1); color: var(--amber); }

.hub-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

[data-theme="light"] .hub-card-tag {
  color: #64748b;
}

.hub-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.3;
}

[data-theme="light"] .hub-card-title {
  color: #0f172a;
}

.hub-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

[data-theme="light"] .hub-card-desc {
  color: #475569;
}

.hub-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--cyan);
  transition: gap var(--transition-fast);
}

[data-theme="light"] .hub-card-action {
  color: #0284c7;
}

.hub-card:hover .hub-card-action {
  gap: 0.75rem;
}

/* ==========================================================================
   5TH FULL-WIDTH SHOWCASE CONTACT CARD
   ========================================================================== */
.hub-card-full {
  grid-column: 1 / -1;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  margin-top: 0.75rem;
}

.hub-card-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}

[data-theme="light"] .hub-card-full {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.hub-full-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hub-full-title-wrap {
  flex: 1;
  min-width: 300px;
}

.hub-full-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.25);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .hub-full-tag {
  color: #0284c7;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.hub-full-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.6rem 0;
  line-height: 1.25;
}

[data-theme="light"] .hub-full-title {
  color: #0f172a;
}

.hub-full-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

[data-theme="light"] .hub-full-desc {
  color: #475569;
}

.hub-full-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  align-self: center;
  flex-shrink: 0;
}

/* Contacts Grid inside Full Card (3 Columns) */
.hub-contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .hub-contacts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.hub-contact-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  color: inherit;
  position: relative;
}

[data-theme="light"] .hub-contact-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.hub-contact-item:not(.no-click):hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .hub-contact-item:not(.no-click):hover {
  background: #f0fdf4;
  border-color: #0284c7;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.hub-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.hub-contact-item:hover .hub-contact-icon {
  transform: scale(1.08);
}

.hub-contact-icon.cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
}

.hub-contact-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--purple);
}

.hub-contact-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
}

[data-theme="light"] .hub-contact-icon.cyan {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0284c7;
}

[data-theme="light"] .hub-contact-icon.purple {
  background: #f3e8ff;
  border-color: #e9d5ff;
  color: #7c3aed;
}

[data-theme="light"] .hub-contact-icon.emerald {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #059669;
}

.hub-contact-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.hub-contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

[data-theme="light"] .hub-contact-label {
  color: #64748b;
}

.hub-contact-val {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .hub-contact-val {
  color: #0f172a;
}

.hub-phone-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 2px 0;
}

.hub-phone-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.hub-phone-link:hover {
  color: var(--purple);
}

[data-theme="light"] .hub-phone-link:hover {
  color: #7c3aed;
}

/* Dedicated WhatsApp Button */
.btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25D366;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  flex-shrink: 0;
}

.btn-whatsapp-pill:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

.hub-contact-hint {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-top: 2px;
}

[data-theme="light"] .hub-contact-hint {
  color: #0284c7;
}

/* ==========================================================================
   SUBPAGE HEADER HERO BANNER
   ========================================================================== */
.subpage-hero {
  padding: 4rem 0 3.5rem 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.subpage-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.subpage-breadcrumb a {
  color: var(--cyan);
}

.subpage-breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.subpage-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Subpage Content Section Wrapper */
.subpage-content {
  padding-bottom: 6rem;
  position: relative;
  z-index: 1;
}

/* Media Query Adaptations for Apple Window */
@media (max-width: 900px) {
  .apple-playground-body {
    grid-template-columns: 1fr;
  }
  .apple-sidebar-pane {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .apple-recruiter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

