/* =============================================================
   Projects Section — Premium Styles
   =============================================================
   This stylesheet handles:
   - Project listing page (filters, cards grid)
   - Project detail modal (fullscreen)
   - Query floating button + form modal
   - All animations & responsive breakpoints
   ============================================================= */

/* ── Section Header ───────────────────────────────────────── */
.projects-header {
  text-align: center;
  margin-bottom: 48px;
}

.projects-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.1;
}

.projects-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: white;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #D1D5DB;
  color: var(--text-main);
  background: #F9FAFB;
}

.filter-btn.active {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
  box-shadow: 0 4px 12px rgba(11, 15, 25, 0.15);
}

/* ── Projects Showcase Grid ──────────────────────────────── */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Showcase Card ───────────────────────────────────────── */
.showcase-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #F1F5F9;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
  border-color: #E2E8F0;
}

/* Card Preview Area */
.showcase-card__preview {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-card__preview-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.92;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.showcase-card:hover .showcase-card__cover {
  transform: scale(1.04);
  opacity: 1;
}

.showcase-card__cover.showcase-card__cover--broken {
  display: none !important;
}

/* Live site preview tile when there is no local screenshot */
.showcase-card__livegate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(30, 41, 59, 0.55));
  transition: background 0.35s ease, transform 0.5s ease;
}

.showcase-card:hover .showcase-card__livegate {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(30, 64, 175, 0.45));
}

.showcase-card__livegate__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.showcase-card__livegate__k {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.showcase-card__livegate__t {
  font-size: 0.9rem;
  font-weight: 700;
}

.showcase-card:hover .showcase-card__preview-bg {
  transform: scale(1.05);
}

/* Gradient overlay on hover */
.showcase-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.showcase-card:hover .showcase-card__preview::after {
  opacity: 1;
}

/* Preview icon/initial */
.showcase-card__preview-icon {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-card__preview-icon {
  transform: scale(1.1);
}

/* Decorative orbs in preview */
.showcase-card__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 0;
}

.showcase-card__orb--1 {
  width: 120px;
  height: 120px;
  top: -30px;
  right: -20px;
  background: rgba(255, 255, 255, 0.3);
}

.showcase-card__orb--2 {
  width: 80px;
  height: 80px;
  bottom: -20px;
  left: 20%;
  background: rgba(255, 255, 255, 0.2);
}

/* Badge (category) */
.showcase-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Status indicator */
.showcase-card__status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.showcase-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px #34D399;
}

.showcase-card__status[data-status="in-progress"] .showcase-card__status-dot {
  background: #FBBF24;
  box-shadow: 0 0 6px #FBBF24;
}

.showcase-card__status[data-status="case-study"] .showcase-card__status-dot {
  background: #A78BFA;
  box-shadow: 0 0 6px #A78BFA;
}

/* Card Body */
.showcase-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.showcase-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.showcase-card__impact {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tech tags */
.showcase-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #475569;
  letter-spacing: 0.01em;
}

/* CTA */
.showcase-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-primary, #2563EB);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.showcase-card:hover .showcase-card__cta svg {
  transform: translateX(4px);
}

/* ═════════════════════════════════════════════════════════════
   PROJECT DETAIL MODAL
   ═════════════════════════════════════════════════════════════ */
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

/* Top Bar */
.pd-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 60px;
}

.pd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: inherit;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.2s;
}

.pd-back-btn:hover {
  background: #F1F5F9;
}

.pd-back-btn svg {
  width: 18px;
  height: 18px;
}

/* Scrollable content */
.pd-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ── Detail Hero ──────────────────────────────────────────── */
.pd-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pd-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  z-index: 0;
}

.pd-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.pd-hero__name {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.1;
  animation: pdFadeInUp 0.6s ease forwards;
}

.pd-hero__tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 400;
  animation: pdFadeInUp 0.6s 0.1s ease forwards;
  opacity: 0;
}

.pd-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  animation: pdFadeInUp 0.6s 0.2s ease forwards;
  opacity: 0;
}

.pd-hero__tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  animation: pdFadeInUp 0.6s 0.3s ease forwards;
  opacity: 0;
}

.pd-tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

/* ── Detail Section (shared) ─────────────────────────────── */
.pd-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px;
  animation: pdFadeInUp 0.5s ease forwards;
  opacity: 0;
}

.pd-section__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.pd-section__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* ── Overview Grid ────────────────────────────────────────── */
.pd-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pd-overview-card {
  padding: 28px;
  background: #F8FAFC;
  border-radius: 16px;
  border: 1px solid #F1F5F9;
}

.pd-overview-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
}

.pd-overview-card__icon svg {
  width: 20px;
  height: 20px;
}

.pd-overview-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pd-overview-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Features Grid ────────────────────────────────────────── */
.pd-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pd-feature-card {
  padding: 24px;
  background: white;
  border-radius: 14px;
  border: 1px solid #F1F5F9;
  transition: all 0.3s ease;
}

.pd-feature-card:hover {
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.pd-feature-card__check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: white;
  flex-shrink: 0;
}

.pd-feature-card__check svg {
  width: 14px;
  height: 14px;
}

.pd-feature-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.pd-feature-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Tech Stack Layout ────────────────────────────────────── */
.pd-techstack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pd-techstack-group h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.pd-techstack-group__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-techstack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid #F1F5F9;
  transition: all 0.2s ease;
}

.pd-techstack-item:hover {
  background: #F1F5F9;
  transform: translateX(4px);
}

.pd-techstack-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Role Badges ──────────────────────────────────────────── */
.pd-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.pd-role-badge svg {
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

/* ── Divider ──────────────────────────────────────────────── */
.pd-divider {
  max-width: 960px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #F1F5F9;
}

/* ── Detail gallery ───────────────────────────────────────── */
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.pd-gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.pd-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.pd-gallery__item--hidden {
  display: none !important;
}

/* ── Bottom CTA (mobile) ─────────────────────────────────── */
.pd-bottom-cta {
  display: none;
  position: sticky;
  bottom: 0;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.pd-bottom-cta__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.pd-bottom-cta__row .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.pd-bottom-cta .btn {
  justify-content: center;
}

/* ═════════════════════════════════════════════════════════════
   QUERY FLOATING BUTTON & MODAL
   ═════════════════════════════════════════════════════════════ */
.query-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2563EB;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.query-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.query-fab svg {
  width: 24px;
  height: 24px;
}

/* Query Modal Overlay */
.query-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

.query-modal {
  background: white;
  width: 90%;
  max-width: 440px;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.query-modal-overlay.active .query-modal {
  transform: translateY(0) scale(1);
}

.query-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.query-modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.query-modal-header .close-btn {
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  color: #64748B;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.query-modal-header .close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.query-modal-header .close-btn svg {
  width: 18px;
  height: 18px;
}

.query-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: #F8FAFC;
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #2563EB;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94A3B8;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 99999;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: #0F172A;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-success { background: #059669; }
.toast.toast-error { background: #DC2626; }

/* ── Skeleton Loader ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes pdFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Card entrance stagger ────────────────────────────────── */
.showcase-card { animation: cardFadeIn 0.5s ease forwards; opacity: 0; }
.showcase-card:nth-child(1) { animation-delay: 0s; }
.showcase-card:nth-child(2) { animation-delay: 0.08s; }
.showcase-card:nth-child(3) { animation-delay: 0.16s; }
.showcase-card:nth-child(4) { animation-delay: 0.24s; }
.showcase-card:nth-child(5) { animation-delay: 0.32s; }
.showcase-card:nth-child(6) { animation-delay: 0.40s; }
.showcase-card:nth-child(7) { animation-delay: 0.48s; }
.showcase-card:nth-child(8) { animation-delay: 0.56s; }

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .projects-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pd-overview-grid {
    grid-template-columns: 1fr;
  }

  .pd-features-grid {
    grid-template-columns: 1fr;
  }

  .pd-techstack-grid {
    grid-template-columns: 1fr;
  }

  .pd-hero__name {
    font-size: 2.25rem;
  }

  .pd-topbar {
    padding: 12px 20px;
  }

  .pd-section {
    padding: 32px 20px;
  }

  .pd-hero__inner {
    padding: 0 20px;
  }

  .pd-bottom-cta {
    display: block;
  }
}

@media (max-width: 600px) {
  .projects-header h1 {
    font-size: 2.25rem;
  }

  .project-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .showcase-card__preview {
    height: 180px;
  }

  .pd-hero {
    padding: 40px 0 32px;
  }

  .pd-hero__name {
    font-size: 1.75rem;
  }

  .pd-hero__tagline {
    font-size: 1rem;
  }

  .pd-hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .pd-overview-card {
    padding: 20px;
  }

  .pd-role-list {
    gap: 8px;
  }

  .pd-role-badge {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }

  .query-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .query-modal {
    padding: 24px;
    border-radius: 16px;
    width: 94%;
  }
}

/* ── Hide scrollbar on query FAB area when modal is open ─── */
body.modal-open {
  overflow: hidden;
}

/* ── Contact page lead form (minimal, matches site) ───────── */
.contact-lead {
  margin-top: 56px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-lead__intro {
  text-align: center;
  color: var(--text-muted, #4b5563);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-lead__form {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px -18px rgba(15, 23, 42, 0.12);
}

.contact-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #0b0f19;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 420px);
  text-align: center;
}

.contact-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact-toast--err {
  background: #b91c1c;
}
