/* ==========================================================================
   MOHD AKIBUDDIN - PORTFOLIO DESIGN SYSTEM
   Inspired by aaabadcode.com minimalist fluid layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. CSS Variables & Theme Foundations
   -------------------------------------------------------------------------- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Light Theme (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-card: rgba(255, 255, 255, 0.45);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);
  --bg-sheet: rgba(255, 255, 255, 0.95);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-focus: rgba(1, 113, 227, 0.4);

  --primary-blue: #0171E3;
  --primary-blue-hover: #005ec4;
  --primary-blue-soft: rgba(1, 113, 227, 0.12);

  --pill-me: #329696;
  --pill-projects: #3E9858;
  --pill-skills: #856ED9;
  --pill-arch: #B95F9D;
  --pill-contact: #C19433;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.1);
  --shadow-search: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);

  --watermark-color: rgba(100, 116, 139, 0.06);
  --watermark-fade: rgba(100, 116, 139, 0);
}

/* Dark Theme Overrides */
body.dark-mode {
  --bg-primary: #08090d;
  --bg-secondary: #0f121a;
  --bg-glass: rgba(18, 22, 33, 0.7);
  --bg-glass-card: rgba(22, 27, 41, 0.5);
  --bg-glass-hover: rgba(30, 37, 56, 0.85);
  --bg-sheet: rgba(15, 18, 28, 0.96);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(56, 189, 248, 0.4);

  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --primary-blue-soft: rgba(2, 132, 199, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.65);
  --shadow-search: 0 4px 25px rgba(0, 0, 0, 0.4);

  --watermark-color: rgba(255, 255, 255, 0.04);
  --watermark-fade: rgba(255, 255, 255, 0);
}

/* --------------------------------------------------------------------------
   02. CSS Reset & Document Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button, input, textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   03. Fixed Background WebGL Fluid Canvas
   -------------------------------------------------------------------------- */
.fluid-canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
  overflow: hidden;
}

#fluid {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   04. Top Navigation Bar & Floating Badges
   -------------------------------------------------------------------------- */
.top-nav {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.floating-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-badge:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
  background: var(--bg-glass-hover);
}

.badge-icon {
  font-size: 1rem;
}

.badge-text-short {
  display: none;
}

.badge-chevron {
  transition: transform 0.2s ease;
}

.floating-badge:hover .badge-chevron {
  transform: translateX(3px);
}

.top-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-btn:hover {
  transform: scale(1.08);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--border-medium);
}

/* Theme icon toggling */
body.light-mode .moon-icon {
  display: block;
}
body.light-mode .sun-icon {
  display: none;
}
body.dark-mode .moon-icon {
  display: none;
}
body.dark-mode .sun-icon {
  display: block;
}

/* --------------------------------------------------------------------------
   05. Hero Stage & Core Layout
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
  z-index: 10;
  text-align: center;
}

.brand-glyph {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: fadeInDown 0.6s ease-out;
}

.hero-greeting {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  animation: fadeIn 0.7s ease-out;
}

.wave-hand {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: handWave 2.5s infinite;
}

@keyframes handWave {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.8s ease-out;
}

/* --------------------------------------------------------------------------
   06. 3D Interactive Memoji Avatar
   -------------------------------------------------------------------------- */
.avatar-interactive-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  perspective: 1000px;
  cursor: pointer;
}

.avatar-perspective {
  width: 210px;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.memoji-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.12));
  animation: floatBreathing 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBreathing {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

.avatar-badge {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   07. Floating Search Bar Pill
   -------------------------------------------------------------------------- */
.search-container {
  width: 100%;
  max-width: 540px;
  margin-bottom: 1.25rem;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0.35rem 0.4rem 0.35rem 1.4rem;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  box-shadow: var(--shadow-search);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-form:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: var(--bg-glass-hover);
}

body.dark-mode .search-form:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.search-form:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px var(--primary-blue-soft), var(--shadow-md);
  background: var(--bg-glass-hover);
}

.search-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-submit-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.search-submit-btn:hover {
  background-color: var(--primary-blue-hover);
  transform: scale(1.06);
}

.search-submit-btn:active {
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   08. 5 Action Category Cards Grid
   -------------------------------------------------------------------------- */
.action-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 540px;
  margin-bottom: 2rem;
}

.action-card {
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.label-full {
  display: inline;
}

.label-short {
  display: none;
}

.action-card:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--bg-glass-hover);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.action-card:active {
  transform: scale(0.95);
}

.action-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.action-card:hover .action-icon-wrap {
  transform: scale(1.12);
}

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

/* --------------------------------------------------------------------------
   09. Massive Bottom Watermark Typography
   -------------------------------------------------------------------------- */
.watermark-typography {
  position: fixed;
  bottom: -2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  font-size: clamp(6.5rem, 16vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, var(--watermark-color) 0%, var(--watermark-fade) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   10. Interactive Slide-Up Modal / AI Sheet
   -------------------------------------------------------------------------- */
.interactive-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 860px;
  height: 86vh;
  max-height: 860px;
  background: var(--bg-sheet);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--border-medium);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

@media (min-width: 768px) {
  .interactive-modal {
    align-items: center;
    padding: 1.5rem;
  }
  .modal-sheet {
    border-radius: 1.5rem;
    height: 80vh;
  }
}

.interactive-modal.active .modal-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-medium);
  margin: 0.6rem auto 0.2rem;
  display: block;
}

@media (min-width: 768px) {
  .sheet-handle {
    display: none;
  }
}

/* Sheet Header */
.sheet-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sheet-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sheet-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-mini-memoji {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sheet-pulse-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid var(--bg-sheet);
}

.sheet-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.sheet-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sheet-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  -webkit-overflow-scrolling: touch;
}

.sheet-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sheet-tab:hover {
  background: var(--bg-glass-card);
  color: var(--text-primary);
}

.sheet-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.sheet-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sheet-close-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* Sheet Content Panes */
.sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

/* Chat Messages */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.9rem 1.15rem;
  border-radius: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background-color: var(--primary-blue);
  color: #ffffff;
  border-bottom-right-radius: 0.3rem;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-bottom-left-radius: 0.3rem;
}

.chat-bubble.ai pre {
  background: #1e293b;
  color: #f8fafc;
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin: 0.5rem 0;
}

.chat-bubble.ai code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
}

body.dark-mode .chat-bubble.ai code {
  background: rgba(255, 255, 255, 0.12);
}

/* Quick Chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
}

.chips-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.78125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-1px);
}

/* Deck Cards & Panes */
.deck-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.deck-card {
  padding: 1.4rem;
  border-radius: 1.1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.deck-card.highlight {
  border-color: var(--border-medium);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-glass-card) 100%);
}

.deck-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.deck-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.deck-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clean-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 1.2rem;
}

.clean-list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--primary-blue);
  font-weight: bold;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-box {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Projects Deck */
.projects-deck {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-entry {
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.25s ease;
}

@media (min-width: 640px) {
  .project-entry {
    flex-direction: row;
  }
}

.project-entry:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-thumb {
  width: 100%;
  height: 180px;
  background: #1e293b;
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  .project-thumb {
    width: 240px;
    height: auto;
    flex-shrink: 0;
  }
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-entry:hover .project-thumb img {
  transform: scale(1.05);
}

.project-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.project-details h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.project-details p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-blue);
}

/* Skills Catalog */
.skills-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-category {
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.skill-category h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.skill-pill:hover {
  background: var(--bg-glass-hover);
  border-color: var(--pill-skills);
  color: var(--pill-skills);
  transform: translateY(-1px);
}

/* Architecture Visual Box */
.arch-visual-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--bg-glass-card);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  margin: 1rem 0;
}

.arch-node {
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-sheet);
  border: 1px solid var(--border-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 220px;
}

.node-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.node-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.arch-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: bold;
}

.arch-cluster {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Channels */
.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .contact-channels {
    grid-template-columns: repeat(2, 1fr);
  }
}

.channel-card {
  padding: 1rem;
  border-radius: 0.85rem;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.channel-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.channel-icon {
  font-size: 1.5rem;
}

.channel-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.channel-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.channel-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.channel-action {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-blue);
}

/* Fast Contact Form */
.fast-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-light);
  background: var(--bg-glass-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-medium);
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-feedback {
  font-size: 0.825rem;
  margin-top: 0.25rem;
}

.form-feedback.success {
  color: #10b981;
}

.form-feedback.error {
  color: #ef4444;
}

/* Sheet Footer */
.sheet-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-sheet);
}

.sheet-input-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 0.25rem 0.35rem 0.25rem 1.15rem;
  transition: border-color 0.2s ease;
}

.sheet-input-form:focus-within {
  border-color: var(--primary-blue);
}

.sheet-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.sheet-submit-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sheet-submit-btn:hover {
  background: var(--primary-blue-hover);
}

/* --------------------------------------------------------------------------
   11. Animations & Responsive Queries
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .top-nav {
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .badge-text-full {
    display: none;
  }

  .badge-text-short {
    display: inline;
  }

  .hero-stage {
    padding: 4.5rem 0.75rem 2rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .avatar-interactive-wrapper {
    margin-bottom: 1.25rem;
  }

  .avatar-perspective {
    width: 140px;
    height: 110px;
  }

  .search-container {
    margin-bottom: 0.85rem;
  }

  .search-form {
    height: 50px;
    padding: 0.25rem 0.35rem 0.25rem 1.1rem;
  }

  .search-input {
    font-size: 0.95rem;
  }

  .search-submit-btn {
    width: 38px;
    height: 38px;
  }

  .action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
  }

  .action-grid::-webkit-scrollbar {
    display: none;
  }

  .action-card {
    min-width: 0;
    aspect-ratio: auto;
    min-height: 58px;
    border-radius: 0.85rem;
    padding: 0.4rem 0.15rem;
    gap: 0.25rem;
  }

  .action-icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .action-label {
    font-size: 0.68rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .label-full {
    display: none;
  }

  .label-short {
    display: inline;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
