/* ==========================================================================
   MANIKA PATEL — COMPONENT LIBRARY STYLES (UPDATED SPACING)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FLOATING NAVIGATION BAR (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 var(--space-2);
}

.navbar-glass {
  pointer-events: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 1100px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   2. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-light);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

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

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-lavender {
  background: var(--accent-lavender);
  color: var(--accent-lavender-dark);
}

.badge-blue {
  background: var(--accent-blue);
  color: var(--accent-blue-dark);
}

.badge-mint {
  background: var(--accent-mint);
  color: var(--accent-mint-dark);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite;
}

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

/* --------------------------------------------------------------------------
   3. HERO SECTION (TIGHT SPACING REMOVED BLANK SPACE)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 112px; /* Generous breathing space below floating navbar */
  padding-bottom: var(--space-6);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: flex-start;
  margin-top: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
  width: 100%;
}

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

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. FREESTYLE SEQUENTIAL PIXAR AVATAR HERO CONTAINER (121 FRAME SCRUBBER)
   -------------------------------------------------------------------------- */
.hero-avatar-freestyle-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
  min-height: 540px;
}

.hero-avatar-freestyle-img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.14));
  pointer-events: auto;
  display: block;
}

.hero-avatar-badge-pill {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   4. FEATURED PROJECTS / CASE STUDY CARDS
   -------------------------------------------------------------------------- */
.projects-section {
  padding: var(--space-8) 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--text-small);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.project-mockup-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-mockup-canvas {
  width: 90%;
  height: 85%;
  background: var(--bg-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-medium);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-mockup-canvas {
  transform: scale(1.03);
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
}

.mockup-dot:nth-child(1) { background: #FF5F56; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #27C93F; }

.project-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-2);
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-metrics-row {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-light);
}

.project-metric {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.project-metric strong {
  display: block;
  font-size: var(--text-body);
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   5. CASE STUDY DEEP DIVE MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.modal-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.case-study-hero {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border-light);
}

.case-study-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.interactive-sandbox {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   6. 10-STAGE DESIGN PROCESS (2026 MODERN EDITION)
   -------------------------------------------------------------------------- */
.process-section {
  padding: var(--space-8) 0;
  position: relative;
}

.process-controls-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.process-stage-indicator {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.process-nav-btns {
  display: flex;
  gap: 8px;
}

.process-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin: var(--space-3) 0 var(--space-4) 0;
  overflow: hidden;
  position: relative;
}

.process-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #10B981, #F59E0B);
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease-apple);
}

.process-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.process-step-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 16px 14px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.process-step-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--bg-surface-elevated);
}

.process-step-btn.active {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card), 0 0 20px rgba(99, 102, 241, 0.12);
}

.process-step-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-primary);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 700;
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.process-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .process-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-detail-card {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   7. SKILLS MATRIX
   -------------------------------------------------------------------------- */
.skills-section {
  padding: var(--space-8) 0;
}

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

.skill-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-subtle);
}

.skill-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2);
}

.skill-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.experience-section {
  padding: var(--space-8) 0;
}

.timeline {
  position: relative;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
}

/* --------------------------------------------------------------------------
   9. TESTIMONIALS & BLOG
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  box-shadow: var(--shadow-subtle);
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-lavender-dark);
  line-height: 1;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-subtle);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION & FOOTER
   -------------------------------------------------------------------------- */
.contact-section {
  padding: var(--space-8) 0 var(--space-12) 0;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-surface);
}

.footer {
  border-top: 1px solid var(--border-light);
  padding: var(--space-4) 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-small);
}

/* --------------------------------------------------------------------------
   11. DESIGN SYSTEM INSPECTOR DRAWER / MODAL
   -------------------------------------------------------------------------- */
.inspector-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.token-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.color-swatch-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 8px;
  border: 1px solid var(--border-light);
}

.swatch-box {
  width: 100%;
  height: 60px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

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

.toast {
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: 500;
  box-shadow: var(--shadow-hover);
  animation: slide-toast 0.3s var(--ease-apple);
}

@keyframes slide-toast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
