/* ==========================================================================
   Tech Intelligence Marquee Stylesheet (ReadyToGo)
   Component: TechIntelligenceMarquee ("What's Happening in Tech")
   Seamless horizontal infinite marquee with educational developer insights.
   ========================================================================== */

.tech-marquee-section {
  width: 100%;
  padding: 44px 0 36px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Header container matching ReadyToGo standard layout */
.tech-marquee-header {
  margin-bottom: 24px;
}

.tech-marquee-header-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-radar-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 4px 12px;
  width: fit-content;
}

.tech-radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  position: relative;
  display: inline-block;
}

.tech-radar-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #16a34a;
  animation: techRadarPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes techRadarPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.tech-radar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #15803d;
  text-transform: uppercase;
}

.tech-marquee-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tech-marquee-subtitle {
  font-size: 0.94rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  max-width: 680px;
}

/* ==========================================================================
   CONTINUOUS HORIZONTAL MARQUEE TRACK
   ========================================================================== */

.tech-marquee-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  position: relative;
  padding: 14px 0 18px 0;
  cursor: grab;
  user-select: none;
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
}

/* Keyboard accessibility focus ring */
.tech-marquee-viewport:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Mouse drag-to-scroll state */
.tech-marquee-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.tech-marquee-viewport.is-dragging * {
  user-select: none;
  -webkit-user-drag: none;
}

.tech-marquee-viewport.is-dragging .tech-card a,
.tech-marquee-viewport.is-dragging .tech-card button {
  pointer-events: none;
}

/* Subtle, accessible horizontal scrollbar */
.tech-marquee-viewport::-webkit-scrollbar {
  height: 6px;
}

.tech-marquee-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.tech-marquee-viewport::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.tech-marquee-viewport:hover::-webkit-scrollbar-thumb,
.tech-marquee-viewport:focus-within::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.65);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
  will-change: scroll-position;
}

/* Track sequences */
.tech-marquee-group {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   NEWS & INTELLIGENCE CARD DESIGN
   ========================================================================== */

.tech-card {
  width: 350px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Subtle brand accent stripe across top of card */
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--brand-accent, #94a3b8);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* Subtle pop-up elevation on hover */
.tech-card:hover {
  transform: translateY(-4px);
  z-index: 2;
  border-color: var(--brand-border-hover, #cbd5e1);
  box-shadow: 0 12px 24px -4px var(--brand-shadow, rgba(15, 23, 42, 0.12)), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

/* Card Header: Brand Logo, Provider, Category Badge */
.tech-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tech-card-provider {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tech-card-provider-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.tech-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Base Badge Categories (Fallback) */
.tech-card-badge.badge-new-model {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tech-card-badge.badge-api-update {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.tech-card-badge.badge-open-source,
.tech-card-badge.badge-developer-tool,
.tech-card-badge.badge-open-standard,
.tech-card-badge.badge-cloud-db {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.tech-card-badge.badge-hiring-radar {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   AUTHENTIC COMPANY & PROJECT BRAND THEMES
   ========================================================================== */

/* 1. OpenAI: Black, white, and restrained neutral tones */
.tech-card--openai {
  --brand-accent: #0f172a;
  --brand-border-hover: #94a3b8;
  --brand-shadow: rgba(15, 23, 42, 0.12);
}
.tech-card--openai .tech-card-icon {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.tech-card--openai .tech-card-badge {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
.tech-card--openai .tech-card-btn-primary {
  background: #0f172a;
  color: #ffffff !important;
}
.tech-card--openai .tech-card-btn-primary:hover {
  background: #000000;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}
.tech-card--openai .tech-card-btn-details:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* 2. Anthropic / Claude: Warm cream, charcoal, and recognizable orange/amber accent */
.tech-card--anthropic {
  --brand-accent: #d97706;
  --brand-border-hover: #f59e0b;
  --brand-shadow: rgba(217, 119, 6, 0.14);
}
.tech-card--anthropic .tech-card-icon {
  background: #fffbeb;
  border-color: #fde68a;
}
.tech-card--anthropic .tech-card-badge {
  background: #fff7ed;
  color: #b45309;
  border: 1px solid #fed7aa;
}
.tech-card--anthropic .tech-card-btn-primary {
  background: #b45309;
  color: #ffffff !important;
}
.tech-card--anthropic .tech-card-btn-primary:hover {
  background: #92400e;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.28);
}
.tech-card--anthropic .tech-card-btn-details:hover {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

/* 3. Google / Gemini: Google Blue & recognized multicolor branding */
.tech-card--google {
  --brand-accent: #1a73e8;
  --brand-border-hover: #60a5fa;
  --brand-shadow: rgba(26, 115, 232, 0.14);
}
.tech-card--google .tech-card-icon {
  background: #ffffff;
  border-color: #e8f0fe;
  box-shadow: 0 1px 3px rgba(66, 133, 244, 0.08);
}
.tech-card--google .tech-card-badge {
  background: #e8f0fe;
  color: #1967d2;
  border: 1px solid #d2e3fc;
}
.tech-card--google .tech-card-btn-primary {
  background: #1a73e8;
  color: #ffffff !important;
}
.tech-card--google .tech-card-btn-primary:hover {
  background: #1557b0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.28);
}
.tech-card--google .tech-card-btn-details:hover {
  background: #eff6ff;
  color: #1a73e8;
  border-color: #bfdbfe;
}

/* 4. xAI / Grok: Black, white, and neutral tones */
.tech-card--xai {
  --brand-accent: #000000;
  --brand-border-hover: #71717a;
  --brand-shadow: rgba(0, 0, 0, 0.14);
}
.tech-card--xai .tech-card-icon {
  background: #f4f4f5;
  border-color: #e4e4e7;
}
.tech-card--xai .tech-card-badge {
  background: #f4f4f5;
  color: #18181b;
  border: 1px solid #d4d4d8;
}
.tech-card--xai .tech-card-btn-primary {
  background: #000000;
  color: #ffffff !important;
}
.tech-card--xai .tech-card-btn-primary:hover {
  background: #27272a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.tech-card--xai .tech-card-btn-details:hover {
  background: #f4f4f5;
  color: #000000;
  border-color: #d4d4d8;
}

/* 5. DeepSeek: Recognizable DeepSeek blue brand accent */
.tech-card--deepseek {
  --brand-accent: #0066ff;
  --brand-border-hover: #3b82f6;
  --brand-shadow: rgba(0, 102, 255, 0.14);
}
.tech-card--deepseek .tech-card-icon {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.tech-card--deepseek .tech-card-badge {
  background: #eff6ff;
  color: #0066ff;
  border: 1px solid #bfdbfe;
}
.tech-card--deepseek .tech-card-btn-primary {
  background: #0066ff;
  color: #ffffff !important;
}
.tech-card--deepseek .tech-card-btn-primary:hover {
  background: #0052cc;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.28);
}
.tech-card--deepseek .tech-card-btn-details:hover {
  background: #eff6ff;
  color: #0066ff;
  border-color: #bfdbfe;
}

/* 6. Microsoft: Four-color logo and restrained Fluent Blue styling */
.tech-card--microsoft {
  --brand-accent: #0078d4;
  --brand-border-hover: #60a5fa;
  --brand-shadow: rgba(0, 120, 212, 0.14);
}
.tech-card--microsoft .tech-card-icon {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 120, 212, 0.08);
}
.tech-card--microsoft .tech-card-badge {
  background: #f0f6ff;
  color: #0078d4;
  border: 1px solid #c7ddf8;
}
.tech-card--microsoft .tech-card-btn-primary {
  background: #0078d4;
  color: #ffffff !important;
}
.tech-card--microsoft .tech-card-btn-primary:hover {
  background: #005a9e;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.28);
}
.tech-card--microsoft .tech-card-btn-details:hover {
  background: #f0f6ff;
  color: #0078d4;
  border-color: #c7ddf8;
}

/* 7. Amazon: Amazon Smile arrow and squid ink / navy */
.tech-card--amazon {
  --brand-accent: #ff9900;
  --brand-border-hover: #fb923c;
  --brand-shadow: rgba(255, 153, 0, 0.14);
}
.tech-card--amazon .tech-card-icon {
  background: #fffbeb;
  border-color: #fed7aa;
}
.tech-card--amazon .tech-card-badge {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.tech-card--amazon .tech-card-btn-primary {
  background: #232f3e;
  color: #ffffff !important;
  border-bottom: 2px solid #ff9900;
}
.tech-card--amazon .tech-card-btn-primary:hover {
  background: #131921;
  box-shadow: 0 4px 12px rgba(35, 47, 62, 0.25);
}
.tech-card--amazon .tech-card-btn-details:hover {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

/* 8. Supabase: Official emerald green styling */
.tech-card--supabase {
  --brand-accent: #10b981;
  --brand-border-hover: #34d399;
  --brand-shadow: rgba(16, 185, 129, 0.14);
}
.tech-card--supabase .tech-card-icon {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.tech-card--supabase .tech-card-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.tech-card--supabase .tech-card-btn-primary {
  background: #059669;
  color: #ffffff !important;
}
.tech-card--supabase .tech-card-btn-primary:hover {
  background: #047857;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}
.tech-card--supabase .tech-card-btn-details:hover {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

/* 9. Model Context Protocol: Protocol indigo styling */
.tech-card--mcp {
  --brand-accent: #4f46e5;
  --brand-border-hover: #818cf8;
  --brand-shadow: rgba(79, 70, 229, 0.14);
}
.tech-card--mcp .tech-card-icon {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.tech-card--mcp .tech-card-badge {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.tech-card--mcp .tech-card-btn-primary {
  background: #4f46e5;
  color: #ffffff !important;
}
.tech-card--mcp .tech-card-btn-primary:hover {
  background: #3730a3;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}
.tech-card--mcp .tech-card-btn-details:hover {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

/* 10. vLLM Project: Distinct project identity and compute violet styling */
.tech-card--vllm {
  --brand-accent: #7c3aed;
  --brand-border-hover: #a78bfa;
  --brand-shadow: rgba(124, 58, 237, 0.14);
}
.tech-card--vllm .tech-card-icon {
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.tech-card--vllm .tech-card-badge {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.tech-card--vllm .tech-card-btn-primary {
  background: #7c3aed;
  color: #ffffff !important;
}
.tech-card--vllm .tech-card-btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28);
}
.tech-card--vllm .tech-card-btn-details:hover {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

/* 11. GitHub: Black, white, and neutral gray */
.tech-card--github {
  --brand-accent: #24292f;
  --brand-border-hover: #8c959f;
  --brand-shadow: rgba(36, 41, 47, 0.12);
}
.tech-card--github .tech-card-icon {
  background: #f6f8fa;
  border-color: #d0d7de;
}
.tech-card--github .tech-card-badge {
  background: #f6f8fa;
  color: #24292f;
  border: 1px solid #d0d7de;
}
.tech-card--github .tech-card-btn-primary {
  background: #24292f;
  color: #ffffff !important;
}
.tech-card--github .tech-card-btn-primary:hover {
  background: #1b1f23;
  box-shadow: 0 4px 12px rgba(36, 41, 47, 0.25);
}
.tech-card--github .tech-card-btn-details:hover {
  background: #f6f8fa;
  color: #24292f;
  border-color: #d0d7de;
}

/* Headline */
.tech-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Educational Summary */
.tech-card-summary {
  font-size: 0.815rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Card Meta Details (Pill + Verification) */
.tech-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.tech-card-meta-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 2.5px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.tech-card-verified {
  font-size: 0.70rem;
  color: #059669;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tech-card-verified svg {
  width: 11px;
  height: 11px;
}

/* Card Action Buttons Row */
.tech-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-card-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 0.79rem;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  box-sizing: border-box;
}

.tech-card-btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.79rem;
  font-weight: 600;
  padding: 8px 12px;
  min-height: 40px;
  min-width: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.tech-card-btn-details:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* ==========================================================================
   EDUCATIONAL DETAIL MODAL (Pop-up with 4 Structured Learning Points)
   ========================================================================== */

.tech-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.tech-modal-backdrop.is-active {
  display: flex;
  animation: techModalFadeIn 0.25s ease forwards;
}

.tech-modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  padding: 28px;
  box-sizing: border-box;
  position: relative;
  animation: techModalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes techModalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.tech-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.tech-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tech-modal-header {
  margin-bottom: 20px;
  padding-right: 36px;
}

.tech-modal-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tech-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}

.tech-modal-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.tech-edu-point {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
}

.tech-edu-point-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-edu-point-text {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.tech-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.tech-modal-footer .btn-cta {
  background: #2563eb;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile-First Card Layout)
   ========================================================================== */

/* Tablet (768px – 1023px): ~2 cards visible with peek of 3rd card */
@media (min-width: 768px) and (max-width: 1023px) {
  .tech-marquee-viewport {
    padding: 12px 0 16px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 1.8%, black 98.2%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 1.8%, black 98.2%, transparent 100%);
  }
  .tech-marquee-track,
  .tech-marquee-group {
    gap: 16px;
  }
  .tech-card {
    width: 315px;
    padding: 20px 18px 18px 18px;
  }
  .tech-card-btn-primary,
  .tech-card-btn-details {
    min-height: 44px;
  }
}

/* Mobile phones (320px – 767px): 1 card visible with 10-15% peek of next card */
@media (max-width: 767px) {
  .tech-marquee-section {
    padding: 30px 0 20px 0;
  }
  .tech-marquee-header {
    margin-bottom: 14px;
    padding: 0 16px;
  }
  .tech-marquee-title {
    font-size: 1.35rem;
  }
  .tech-marquee-subtitle {
    font-size: 0.86rem;
  }
  .tech-marquee-viewport {
    padding: 8px 0 14px 0;
    /* Soft edge fade so peeked card is clearly readable */
    mask-image: linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%);
  }
  .tech-marquee-track,
  .tech-marquee-group {
    gap: 12px;
  }
  .tech-card {
    /* Responsive card width displaying 1 card + ~10-15% of the next card */
    width: calc(84vw - 12px);
    max-width: 290px;
    min-width: 260px;
    padding: 16px 16px 14px 16px;
    border-radius: 14px;
  }
  .tech-card:hover {
    transform: translateY(-2px);
  }
  .tech-card-title {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }
  .tech-card-summary {
    font-size: 0.785rem;
    line-height: 1.45;
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
  }
  .tech-card-meta-row {
    padding-top: 8px;
    margin-bottom: 10px;
    font-size: 0.68rem;
  }
  .tech-card-meta-pill {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .tech-card-verified {
    font-size: 0.67rem;
  }
  /* Accessible touch targets (minimum 44x44px) */
  .tech-card-actions {
    gap: 8px;
  }
  .tech-card-btn-primary {
    min-height: 44px;
    font-size: 0.79rem;
    padding: 10px 14px;
  }
  .tech-card-btn-details {
    min-height: 44px;
    min-width: 44px;
    font-size: 0.79rem;
    padding: 10px 12px;
  }
  .tech-modal-box {
    padding: 20px;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tech-card,
  .tech-card-icon,
  .tech-card-badge,
  .tech-card-btn-primary,
  .tech-card-btn-details {
    transition: none !important;
  }
  .tech-radar-dot::after {
    animation: none !important;
  }
}
