/* ============================================================
   AXENCIA — Featured Projects + Features Showcase
   World-Class Apple/Google Aesthetic
   ============================================================ */

/* ── Shared reveal animation ── */
.fp-reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.85s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fp-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════
   FEATURED PROJECTS SECTION
   ════════════════════════════════════════════════════════ */
.featured-projects-section {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Ambient gradient backdrop */
.featured-projects-section::before {
  content: "";
  position: absolute;
  inset: -20% 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 40%, rgba(99,102,241,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(6,182,212,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 0%,  rgba(37,99,235,0.05) 0%, transparent 55%);
  pointer-events: none;
}

/* Section header */
.fp-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.fp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 24px;
}
.fp-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59,130,246,0.8);
  animation: fpDotPulse 2.5s ease-in-out infinite;
}
@keyframes fpDotPulse {
  0%,100% { transform:scale(1); box-shadow:0 0 6px rgba(59,130,246,0.8); }
  50%     { transform:scale(1.4); box-shadow:0 0 14px rgba(59,130,246,0.9); }
}

.fp-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
}
.fp-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fpTitleShimmer 5s linear infinite;
}
@keyframes fpTitleShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.fp-subtitle {
  font-size: 1.05rem;
  color: rgba(148,163,184,0.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Project cards grid */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ── Individual Project Card ── */
.fp-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(8, 15, 38, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
  text-decoration: none;
  color: inherit;
}

.fp-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(255,255,255,0.15);
}

/* Gradient shimmer border on hover */
.fp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.fp-card:hover::before { opacity: 1; }

/* Hover sweep shimmer */
.fp-card::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.fp-card:hover::after { left: 140%; }

/* Card themes */
.fp-card-jinclaw::before {
  background: linear-gradient(135deg, rgba(139,92,246,0.5) 0%, rgba(99,102,241,0.35) 50%, rgba(59,130,246,0.25) 100%);
}
.fp-card-jinclaw:hover {
  box-shadow:
    0 24px 60px rgba(139,92,246,0.18),
    0 8px 24px rgba(99,102,241,0.12),
    inset 0 1px 0 rgba(167,139,250,0.1);
}

.fp-card-pulseai::before {
  background: linear-gradient(135deg, rgba(6,182,212,0.5) 0%, rgba(20,184,166,0.35) 50%, rgba(16,185,129,0.25) 100%);
}
.fp-card-pulseai:hover {
  box-shadow:
    0 24px 60px rgba(6,182,212,0.18),
    0 8px 24px rgba(20,184,166,0.12),
    inset 0 1px 0 rgba(94,234,212,0.1);
}

.fp-card-quran::before {
  background: linear-gradient(135deg, rgba(251,191,36,0.45) 0%, rgba(245,158,11,0.3) 40%, rgba(16,185,129,0.2) 100%);
}
.fp-card-quran:hover {
  box-shadow:
    0 24px 60px rgba(251,191,36,0.14),
    0 8px 24px rgba(16,185,129,0.1),
    inset 0 1px 0 rgba(252,211,77,0.08);
}

/* ── Card Top Accent Bar ── */
.fp-card-accent {
  height: 3px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.fp-card-jinclaw .fp-card-accent {
  background: linear-gradient(90deg, #7c3aed, #6366f1, #3b82f6);
  background-size: 200% auto;
  animation: fpAccentFlow 3s linear infinite;
}
.fp-card-pulseai .fp-card-accent {
  background: linear-gradient(90deg, #06b6d4, #14b8a6, #10b981);
  background-size: 200% auto;
  animation: fpAccentFlow 3s linear infinite;
}
.fp-card-quran .fp-card-accent {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #34d399);
  background-size: 200% auto;
  animation: fpAccentFlow 4s linear infinite;
}
@keyframes fpAccentFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Card Visual (preview area) ── */
.fp-card-visual {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.fp-card-jinclaw .fp-card-visual {
  background: linear-gradient(145deg, rgba(30,12,80,0.9) 0%, rgba(15,8,48,0.95) 100%);
}
.fp-card-pulseai .fp-card-visual {
  background: linear-gradient(145deg, rgba(4,42,60,0.9) 0%, rgba(2,20,30,0.95) 100%);
}
.fp-card-quran .fp-card-visual {
  background: linear-gradient(145deg, rgba(30,28,8,0.9) 0%, rgba(4,22,12,0.95) 100%);
}

/* Orb inside visual */
.fp-card-visual::before {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.fp-card:hover .fp-card-visual::before {
  transform: scale(1.2);
  opacity: 0.7;
}
.fp-card-jinclaw .fp-card-visual::before { background: rgba(139,92,246,0.6); }
.fp-card-pulseai .fp-card-visual::before { background: rgba(6,182,212,0.6); }
.fp-card-quran   .fp-card-visual::before { background: rgba(251,191,36,0.4); }

/* Project icon in visual */
.fp-card-icon {
  position: relative;
  z-index: 1;
  width: 76px; height: 76px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fp-card:hover .fp-card-icon { transform: scale(1.08) translateY(-4px); }

.fp-card-jinclaw .fp-card-icon {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 0 40px rgba(139,92,246,0.5), 0 8px 24px rgba(99,102,241,0.3);
}
.fp-card-pulseai .fp-card-icon {
  background: linear-gradient(135deg, #0891b2, #0d9488);
  box-shadow: 0 0 40px rgba(6,182,212,0.5), 0 8px 24px rgba(20,184,166,0.3);
}
.fp-card-quran .fp-card-icon {
  background: linear-gradient(135deg, #d97706, #059669);
  box-shadow: 0 0 40px rgba(251,191,36,0.4), 0 8px 24px rgba(16,185,129,0.25);
}
.fp-card-icon svg { width: 36px; height: 36px; color: #fff; }

/* Floating dots / particles in visual */
.fp-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 25%, rgba(255,255,255,0.25) 0, transparent 1px),
    radial-gradient(1px   1px at 75% 18%, rgba(255,255,255,0.2)  0, transparent 1px),
    radial-gradient(1px   1px at 55% 72%, rgba(255,255,255,0.18) 0, transparent 1px),
    radial-gradient(1.5px 1.5px at 88% 60%, rgba(255,255,255,0.22) 0, transparent 1px),
    radial-gradient(1px   1px at 12% 80%, rgba(255,255,255,0.15) 0, transparent 1px);
  pointer-events: none;
}

/* Category badge */
.fp-card-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  z-index: 5;
}
.fp-card-jinclaw .fp-card-badge { background: rgba(139,92,246,0.25); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.fp-card-pulseai .fp-card-badge { background: rgba(6,182,212,0.2);  color: #67e8f9;  border: 1px solid rgba(6,182,212,0.3); }
.fp-card-quran   .fp-card-badge { background: rgba(251,191,36,0.18); color: #fde68a;  border: 1px solid rgba(251,191,36,0.3); }

/* ── Card Body ── */
.fp-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fp-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.fp-card-url {
  font-size: 0.73rem;
  color: rgba(100,116,139,0.8);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.fp-card-desc {
  font-size: 0.87rem;
  color: rgba(148,163,184,0.88);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

/* Tags */
.fp-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.fp-card-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(200,215,255,0.75);
  transition: background 0.2s, border-color 0.2s;
}
.fp-card:hover .fp-card-tag { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }

/* Metrics */
.fp-card-metrics {
  display: flex; gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 20px;
}
.fp-metric { display: flex; flex-direction: column; gap: 2px; }
.fp-metric-val {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em;
}
.fp-card-jinclaw .fp-metric-val { color: #c4b5fd; }
.fp-card-pulseai .fp-metric-val { color: #67e8f9; }
.fp-card-quran   .fp-metric-val { color: #fde68a; }

.fp-metric-lbl {
  font-size: 0.7rem; color: rgba(100,116,139,0.8); font-weight: 500;
}

/* CTA Link */
.fp-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s ease, opacity 0.2s;
}
.fp-card-cta svg { width: 15px; height: 15px; transition: transform 0.25s ease; flex-shrink: 0; }
.fp-card:hover .fp-card-cta svg { transform: translateX(4px); }

.fp-card-jinclaw .fp-card-cta { color: #a78bfa; }
.fp-card-pulseai .fp-card-cta { color: #22d3ee; }
.fp-card-quran   .fp-card-cta { color: #fbbf24; }

/* ════════════════════════════════════════════════════════
   FEATURES SHOWCASE SECTION
   ════════════════════════════════════════════════════════ */
.features-showcase-section {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.features-showcase-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(37,99,235,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 70%,   rgba(99,102,241,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 100% 50%,  rgba(6,182,212,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Bento grid */
.fs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.fs-grid .fs-card:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.fs-grid .fs-card:nth-child(5) { grid-column: 3 / 4; grid-row: 1 / 3; }

/* Feature card */
.fs-card {
  position: relative;
  border-radius: 20px;
  padding: 32px 28px;
  background: rgba(8, 15, 38, 0.6);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.fs-card:hover {
  transform: translateY(-6px);
  background: rgba(10, 20, 52, 0.7);
  border-color: rgba(255,255,255,0.12);
}

/* Shimmer border on hover */
.fs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Per-card hover colors */
.fs-card-1::before { background: linear-gradient(135deg, rgba(96,165,250,0.5), rgba(139,92,246,0.3)); }
.fs-card-1:hover { box-shadow: 0 20px 50px rgba(37,99,235,0.15), inset 0 1px 0 rgba(96,165,250,0.08); }

.fs-card-2::before { background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(6,182,212,0.3)); }
.fs-card-2:hover { box-shadow: 0 20px 50px rgba(99,102,241,0.15); }

.fs-card-3::before { background: linear-gradient(135deg, rgba(251,191,36,0.4), rgba(245,158,11,0.25)); }
.fs-card-3:hover { box-shadow: 0 20px 50px rgba(251,191,36,0.1); }

.fs-card-4::before { background: linear-gradient(135deg, rgba(16,185,129,0.4), rgba(6,182,212,0.3)); }
.fs-card-4:hover { box-shadow: 0 20px 50px rgba(16,185,129,0.12); }

.fs-card-5::before { background: linear-gradient(135deg, rgba(6,182,212,0.5), rgba(139,92,246,0.3)); }
.fs-card-5:hover { box-shadow: 0 20px 50px rgba(6,182,212,0.15), inset 0 1px 0 rgba(6,182,212,0.08); }

.fs-card-6::before { background: linear-gradient(135deg, rgba(34,197,94,0.4), rgba(16,185,129,0.25)); }
.fs-card-6:hover { box-shadow: 0 20px 50px rgba(34,197,94,0.12); }

.fs-card:hover::before { opacity: 1; }

/* Large card decoration orb */
.fs-card:nth-child(1)::after,
.fs-card:nth-child(5)::after {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fs-card:nth-child(1):hover::after,
.fs-card:nth-child(5):hover::after {
  opacity: 0.45;
  transform: scale(1.15);
}
.fs-card:nth-child(1)::after { background: rgba(59,130,246,0.7); }
.fs-card:nth-child(5)::after { background: rgba(6,182,212,0.7); }

/* Icon */
.fs-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fs-card:hover .fs-icon { transform: scale(1.1) rotate(-3deg); }
.fs-icon svg { width: 26px; height: 26px; color: #fff; position: relative; z-index: 1; }

/* Icon themes */
.fs-icon-blue    { background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.fs-icon-purple  { background: linear-gradient(135deg, #7c3aed, #6366f1); box-shadow: 0 8px 24px rgba(124,58,237,0.35); }
.fs-icon-amber   { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 8px 24px rgba(217,119,6,0.35); }
.fs-icon-emerald { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 8px 24px rgba(5,150,105,0.35); }
.fs-icon-cyan    { background: linear-gradient(135deg, #0891b2, #06b6d4); box-shadow: 0 8px 24px rgba(8,145,178,0.35); }
.fs-icon-green   { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 8px 24px rgba(22,163,74,0.35); }

/* Large card content layout */
.fs-card:nth-child(1),
.fs-card:nth-child(5) {
  justify-content: flex-end;
  padding: 36px 32px;
  min-height: 340px;
}
.fs-card:nth-child(1) .fs-card-spacer,
.fs-card:nth-child(5) .fs-card-spacer {
  flex: 1;
}

.fs-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.fs-card:nth-child(1) .fs-title,
.fs-card:nth-child(5) .fs-title { font-size: 1.4rem; }

.fs-desc {
  font-size: 0.87rem;
  color: rgba(148,163,184,0.85);
  line-height: 1.65;
}
.fs-card:nth-child(1) .fs-desc,
.fs-card:nth-child(5) .fs-desc { font-size: 0.93rem; max-width: 280px; }

/* Animated stat for large cards */
.fs-stat {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.25s, border-color 0.25s;
}
.fs-card:hover .fs-stat { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.fs-stat-val {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, #93c5fd, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fs-stat-lbl { font-size: 0.75rem; color: rgba(100,116,139,0.85); font-weight: 500; }

/* Small card min height */
.fs-grid .fs-card:nth-child(2),
.fs-grid .fs-card:nth-child(3),
.fs-grid .fs-card:nth-child(4),
.fs-grid .fs-card:nth-child(6) {
  min-height: 160px;
}

/* ════════════════════════════════════════════════════════
   FOOTER LOGO — Animated
   ════════════════════════════════════════════════════════ */
.footer-logo-animated {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  margin-bottom: 4px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  position: relative;
}

.footer-logo-text {
  color: #fff;
  transition: color 0.3s;
}
.footer-logo-dot {
  color: #3b82f6;
  transition: color 0.3s, text-shadow 0.3s;
  animation: footerLogoDotPulse 4s ease-in-out infinite;
}
@keyframes footerLogoDotPulse {
  0%,100% { color: #3b82f6; text-shadow: 0 0 12px rgba(59,130,246,0.5); }
  50%     { color: #60a5fa; text-shadow: 0 0 20px rgba(96,165,250,0.8), 0 0 40px rgba(37,99,235,0.3); }
}

.footer-logo-co {
  background: linear-gradient(135deg, #93c5fd 0%, #a78bfa 40%, #34d399 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: footerLogoShimmer 4s linear infinite;
}
@keyframes footerLogoShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.footer-logo-reg {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(148,163,184,0.55);
  vertical-align: super;
  -webkit-text-fill-color: rgba(148,163,184,0.55);
}

/* Underline glow on hover */
.footer-logo-animated::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.6), rgba(167,139,250,0.5), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}
.footer-logo-animated:hover::after { transform: scaleX(1); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .fp-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-grid .fp-card:last-child { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; }
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-grid .fs-card:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
  .fs-grid .fs-card:nth-child(5) { grid-column: 2 / 3; grid-row: 1 / 2; }
}

@media (max-width: 768px) {
  .fp-grid { grid-template-columns: 1fr; }
  .fp-grid .fp-card:last-child { grid-column: 1; max-width: 100%; }
  .fs-grid { grid-template-columns: 1fr; }
  .fs-grid .fs-card:nth-child(1),
  .fs-grid .fs-card:nth-child(5) {
    grid-column: 1; grid-row: auto; min-height: auto;
  }
  .featured-projects-section,
  .features-showcase-section { padding: 80px 0 60px; }
  .fp-title { font-size: 1.8rem; }
  .fp-card-visual { height: 150px; }
}
