/* ===== Showcase Hero ===== */
.showcase-hero {
  position: relative;
  padding: 160px 0 100px;
  background: #050a18;
  overflow: hidden;
  text-align: center;
}

.showcase-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(14, 165, 233, 0.25);
  top: -20%;
  left: -5%;
  animation: glowFloat1 10s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.2);
  bottom: -20%;
  right: -5%;
  animation: glowFloat2 12s ease-in-out infinite;
}

@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -20px); }
}

.showcase-hero-content {
  position: relative;
  color: #fff;
  max-width: 680px;
  margin: 0 auto;
}

.showcase-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.showcase-hero .gradient-text {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmerGrad 4s ease-in-out infinite;
}

@keyframes shimmerGrad {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.showcase-hero .hero-sub {
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Hero scroll hint */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg);
  animation: chevronBounce 2s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* ===== Gallery Grid ===== */
.showcase-gallery {
  padding: 80px 0 100px;
  background: var(--light, #f8fafc);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

/* Special layout for 5 cards */
.gallery-grid:has(.demo-card:nth-child(5)) {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid:has(.demo-card:nth-child(5)) .demo-card:nth-child(5) {
  grid-column: 1 / -1;
  max-width: calc(50% - 18px);
  margin: 0 auto;
}

/* ===== Demo Card ===== */
.demo-card {
  background: var(--white, #fff);
  border-radius: 20px;
  border: 1px solid var(--gray-light, #e2e8f0);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

/* ===== Browser Frame ===== */
.demo-browser {
  border-bottom: 1px solid var(--gray-light, #e2e8f0);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-url {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: #64748b;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.browser-body {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

/* ===== Browser Hover Overlay ===== */
.browser-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
  pointer-events: none;
  transition: background 0.4s ease;
}

.demo-card:hover .browser-overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* ===== Hover Hint (pulsing indicator) ===== */
.hover-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  animation: hintPulse 2.5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.hover-hint-dark {
  background: rgba(108, 43, 217, 0.7);
  color: #fff;
}

.demo-card:hover .hover-hint {
  opacity: 0;
  pointer-events: none;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* =============================================
   ANNOTATIONS — Base
   ============================================= */
.anno {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
}

.anno-arrow-icon {
  flex-shrink: 0;
}

/* =============================================
   ANIMATION 1 — SLIDE (E-Commerce)
   Annotations slide in from the edges
   ============================================= */
.anim-slide .anno {
  background: rgba(212, 168, 83, 0.95);
  color: #fff;
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

.anim-slide .anno-1 {
  transform: translateX(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transition-delay: 0.1s;
}

.anim-slide .anno-2 {
  transform: translateX(-30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transition-delay: 0.25s;
}

.anim-slide .anno-3 {
  transform: translateY(20px) translateX(-50%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transition-delay: 0.4s;
}

.anim-slide:hover .anno {
  opacity: 1;
}

.anim-slide:hover .anno-1 {
  transform: translateX(0);
}

.anim-slide:hover .anno-2 {
  transform: translateX(0);
}

.anim-slide:hover .anno-3 {
  transform: translateY(0) translateX(-50%);
}

/* =============================================
   ANIMATION 2 — BOUNCE (Booking)
   Annotations pop in with overshoot spring
   ============================================= */
.anim-bounce .anno {
  background: rgba(91, 123, 111, 0.95);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 123, 111, 0.3);
  border-radius: 14px;
}

.anim-bounce .anno-1 {
  transform: translateX(-50%) scale(0);
  transition: transform 0.55s cubic-bezier(0.34, 1.8, 0.64, 1), opacity 0.3s ease;
  transition-delay: 0.05s;
}

.anim-bounce .anno-2 {
  transform: scale(0);
  transition: transform 0.55s cubic-bezier(0.34, 1.8, 0.64, 1), opacity 0.3s ease;
  transition-delay: 0.2s;
}

.anim-bounce .anno-3 {
  transform: scale(0);
  transition: transform 0.55s cubic-bezier(0.34, 1.8, 0.64, 1), opacity 0.3s ease;
  transition-delay: 0.35s;
}

.anim-bounce:hover .anno {
  opacity: 1;
}

.anim-bounce:hover .anno-1 {
  transform: translateX(-50%) scale(1);
}

.anim-bounce:hover .anno-2 {
  transform: scale(1);
}

.anim-bounce:hover .anno-3 {
  transform: scale(1);
}

/* =============================================
   ANIMATION 3 — SWEEP (Corporate)
   Annotations reveal with a clip-path wipe
   ============================================= */
.anim-sweep .anno {
  background: rgba(30, 58, 95, 0.95);
  color: #fff;
  border-left: 2px solid #B8860B;
  border-radius: 0 8px 8px 0;
  padding-left: 6px;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
  clip-path: inset(0 100% 0 0);
}

.anim-sweep .anno-1 {
  transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  transition-delay: 0.1s;
}

.anim-sweep .anno-2 {
  transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  transition-delay: 0.3s;
}

.anim-sweep .anno-3 {
  transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  transition-delay: 0.5s;
}

.anim-sweep:hover .anno {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* =============================================
   ANIMATION 4 — GLOW (Consultant)
   Annotations float up with neon glow
   ============================================= */
.anim-glow .anno {
  background: rgba(13, 13, 13, 0.9);
  color: #e0d4f7;
  border: 1px solid rgba(108, 43, 217, 0.4);
  box-shadow: 0 0 0 rgba(108, 43, 217, 0);
}

.anim-glow .anno-1 {
  transform: translateX(-50%) translateY(10px);
  transition: transform 0.5s ease-out, opacity 0.4s ease, box-shadow 0.5s ease;
  transition-delay: 0.1s;
}

.anim-glow .anno-2 {
  transform: translateY(10px);
  transition: transform 0.5s ease-out, opacity 0.4s ease, box-shadow 0.5s ease;
  transition-delay: 0.25s;
}

.anim-glow .anno-3 {
  transform: translateY(10px);
  transition: transform 0.5s ease-out, opacity 0.4s ease, box-shadow 0.5s ease;
  transition-delay: 0.4s;
}

.anim-glow:hover .anno {
  opacity: 1;
  box-shadow: 0 0 14px rgba(108, 43, 217, 0.5), 0 0 4px rgba(108, 43, 217, 0.3);
  border-color: rgba(108, 43, 217, 0.8);
}

.anim-glow:hover .anno-1 {
  transform: translateX(-50%) translateY(0);
}

.anim-glow:hover .anno-2 {
  transform: translateY(0);
}

.anim-glow:hover .anno-3 {
  transform: translateY(0);
}

/* =============================================
   ANIMATION 5 — MATRIX (Tech Showcase)
   Annotations materialize with digital effects
   ============================================= */
.anim-matrix .anno {
  background: rgba(10, 10, 10, 0.95);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-family: 'SF Mono', 'Fira Code', monospace;
  box-shadow: 0 0 0 rgba(0, 212, 255, 0);
  clip-path: inset(0 0 100% 0);
}

.anim-matrix .anno-1 {
  transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, box-shadow 0.6s ease;
  transition-delay: 0.1s;
}

.anim-matrix .anno-2 {
  transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, box-shadow 0.6s ease;
  transition-delay: 0.3s;
}

.anim-matrix .anno-3 {
  transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, box-shadow 0.6s ease;
  transition-delay: 0.5s;
}

.anim-matrix:hover .anno {
  opacity: 1;
  clip-path: inset(0);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  border-color: rgba(0, 212, 255, 0.8);
}

/* ===== Demo Info ===== */
.demo-info {
  padding: 28px 28px 32px;
}

.demo-industry {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary, #0ea5e9);
  margin-bottom: 8px;
}

.demo-info h3 {
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  color: var(--dark, #0f172a);
  margin-bottom: 10px;
}

.demo-info > p {
  font-size: 0.9rem;
  color: var(--gray, #64748b);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ===== Demo Tech Stack ===== */
.demo-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

.tech-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary, #0ea5e9);
  margin-right: 4px;
}

.tech-item {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 3px 8px;
  background: var(--white, #fff);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 4px;
  color: var(--dark, #0f172a);
  white-space: nowrap;
}

/* Tech stack hover effects — different per card type */
.anim-slide .demo-tech-stack {
  background: rgba(212, 168, 83, 0.05);
  border-color: rgba(212, 168, 83, 0.15);
}

.anim-slide .tech-item {
  border-color: rgba(212, 168, 83, 0.2);
}

.anim-bounce .demo-tech-stack {
  background: rgba(91, 123, 111, 0.05);
  border-color: rgba(91, 123, 111, 0.15);
}

.anim-bounce .tech-item {
  border-color: rgba(91, 123, 111, 0.2);
}

.anim-sweep .demo-tech-stack {
  background: rgba(30, 58, 95, 0.05);
  border-color: rgba(30, 58, 95, 0.15);
}

.anim-sweep .tech-item {
  border-color: rgba(30, 58, 95, 0.2);
}

.anim-glow .demo-tech-stack {
  background: rgba(108, 43, 217, 0.05);
  border-color: rgba(108, 43, 217, 0.15);
}

.anim-glow .tech-item {
  border-color: rgba(108, 43, 217, 0.2);
}

.anim-matrix .demo-tech-stack {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.15);
}

.anim-matrix .tech-item {
  border-color: rgba(0, 212, 255, 0.2);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ===== Demo Tags with Tooltips ===== */
.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.demo-tags span {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--light, #f8fafc);
  border: 1px solid var(--gray-light, #e2e8f0);
  border-radius: 50px;
  color: var(--gray, #64748b);
  cursor: default;
  transition: all 0.3s ease;
}

/* Tag hover effects — different per card type */
.anim-slide .demo-tags span:hover {
  background: #D4A853;
  border-color: #D4A853;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.anim-bounce .demo-tags span:hover {
  background: #5B7B6F;
  border-color: #5B7B6F;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(91, 123, 111, 0.3);
}

.anim-sweep .demo-tags span:hover {
  background: #1E3A5F;
  border-color: #1E3A5F;
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.anim-glow .demo-tags span:hover {
  background: #0D0D0D;
  border-color: #6C2BD9;
  color: #e0d4f7;
  box-shadow: 0 0 12px rgba(108, 43, 217, 0.4);
}

/* Tooltip on hover */
.demo-tags span[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--dark, #0f172a);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-width: 240px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

/* Tooltip arrow */
.demo-tags span[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--dark, #0f172a);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.demo-tags span[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.demo-tags span[data-tip]:hover::before {
  opacity: 1;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== Explanation Section ===== */
.showcase-explain {
  padding: 100px 0;
  background: var(--white, #fff);
}

.explain-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.explain-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark, #0f172a);
  margin-bottom: 16px;
}

.explain-content > p {
  font-size: 1rem;
  color: var(--gray, #64748b);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 48px;
}

.explain-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

/* Explain feature — base */
.explain-feature {
  padding: 28px 16px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.4s ease;
  position: relative;
}

.explain-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--primary, #0ea5e9);
  transition: transform 0.4s ease, background 0.4s ease;
}

.explain-feature h4 {
  font-size: 0.95rem;
  color: var(--dark, #0f172a);
  margin-bottom: 8px;
}

.explain-feature p {
  font-size: 0.82rem;
  color: var(--gray, #64748b);
  line-height: 1.6;
}

/* Arrow callout that appears on hover */
.ef-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary, #0ea5e9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ef-arrow svg {
  flex-shrink: 0;
}

.explain-feature:hover .ef-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* --- TILT hover (Fully Coded) --- */
.ef-tilt:hover {
  transform: translateY(-6px) rotate(-1.5deg);
  border-color: var(--gray-light, #e2e8f0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  background: var(--light, #f8fafc);
}

.ef-tilt:hover .explain-icon {
  transform: rotate(6deg) scale(1.1);
}

/* --- SHIMMER hover (Unique Designs) --- */
.ef-shimmer:hover {
  border-color: var(--gray-light, #e2e8f0);
  background: linear-gradient(135deg, #f0f9ff, #ede9fe, #fdf2f8);
  background-size: 300% 300%;
  animation: shimmerBg 2s ease infinite;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.ef-shimmer:hover .explain-icon {
  animation: iconSpin 0.7s ease;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.1));
  color: #7c3aed;
}

@keyframes shimmerBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes iconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- BOUNCE hover (Built for Fiji) --- */
.ef-bounce:hover {
  animation: featureBounce 0.5s ease;
  border-color: var(--gray-light, #e2e8f0);
  background: #fffbeb;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.ef-bounce:hover .explain-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.1));
  color: #d97706;
  animation: iconBounce 0.6s ease;
}

@keyframes featureBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
  50% { transform: translateY(-4px); }
  70% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-2px); }
}

/* --- SCALE hover (Responsive) --- */
.ef-scale:hover {
  transform: scale(1.06);
  border-color: var(--primary, #0ea5e9);
  background: #f0f9ff;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.12);
}

.ef-scale:hover .explain-icon {
  transform: scale(1.15);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.15));
}

/* ===== INLINE TECH ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes morph {
  0%, 100% { border-radius: 50%; }
  50% { border-radius: 2px; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Technical Showcase ===== */
.technical-showcase {
  padding: 100px 0;
  background: #050a18;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.technical-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(99, 102, 241, 0.02));
  pointer-events: none;
}

.tech-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  position: relative;
}

.tech-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 16px;
}

.tech-header p {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.7;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.tech-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.4s ease;
  position: relative;
}

.tech-category:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.tech-cat-icon {
  width: 64px;
  height: 64px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.tech-category:hover .tech-cat-icon {
  background: rgba(14, 165, 233, 0.2);
  transform: scale(1.05);
  color: #0ea5e9;
}

.tech-category h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Code Complexity Section */
.code-complexity {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
}

.complexity-header {
  text-align: center;
  margin-bottom: 40px;
}

.complexity-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.complexity-header p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.complexity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.complexity-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.complexity-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
}

.complexity-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.complexity-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  border-radius: 4px;
  transition: width 1s ease-out;
  animation: fillProgress 2s ease-out;
}

.complexity-fill[data-percent="2840"] { width: 95%; }
.complexity-fill[data-percent="180"] { width: 78%; }
.complexity-fill[data-percent="45"] { width: 65%; }
.complexity-fill[data-percent="28"] { width: 52%; }

@keyframes fillProgress {
  0% { width: 0%; }
}

.complexity-value {
  font-size: 0.9rem;
  color: #38bdf8;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .explain-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .complexity-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .showcase-hero {
    padding: 130px 0 72px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-gallery {
    padding: 56px 0 72px;
  }

  .explain-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .showcase-explain {
    padding: 72px 0;
  }

  .demo-info {
    padding: 20px 20px 24px;
  }

  .demo-info h3 {
    font-size: 1.2rem;
  }

  /* Hide mockup annotations on touch devices */
  .anno,
  .hover-hint {
    display: none;
  }

  /* Tooltips stay — but reposition for mobile */
  .demo-tags span[data-tip]::after {
    max-width: 180px;
    font-size: 0.65rem;
  }

  /* Technical showcase mobile */
  .technical-showcase {
    padding: 60px 0;
  }

  .tech-category {
    padding: 24px 20px;
  }

  .tech-cat-icon {
    width: 48px;
    height: 48px;
  }

  .code-complexity {
    padding: 24px 20px;
  }

  .tech-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .browser-body {
    aspect-ratio: 4/3;
  }
}
