#codexa-projects {
  --cp-navy: #0f1d3a;
  --cp-blue: #2563eb;
  --cp-blue-dark: #1d4ed8;
  --cp-blue-light: #dbeafe;
  --cp-purple-light: #ede9fe;
  --cp-gray: #64748b;
  --cp-gray-light: #94a3b8;
  --cp-border: #e2e8f0;
  --cp-bg: #ffffff;
  --cp-featured-bg: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 48%, #faf5ff 100%);
  --cp-shadow: 0 4px 24px rgba(15, 29, 58, 0.06);
  --cp-shadow-lg: 0 12px 40px rgba(15, 29, 58, 0.08);
  --cp-radius: 20px;
  --cp-radius-sm: 12px;
  --cp-max: 1180px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--cp-navy);
  background: var(--cp-bg);
  position: relative;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 120px 24px 80px;
}

#codexa-projects *,
#codexa-projects *::before,
#codexa-projects *::after {
  box-sizing: border-box;
}

.cp-container {
  max-width: var(--cp-max);
  margin: 0 auto;
}

/* Hero */
.cp-hero {
  text-align: center;
  margin-bottom: 48px;
}

.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cp-gray);
  margin: 0 0 20px;
}

.cp-eyebrow::before,
.cp-eyebrow::after {
  content: "✦";
  color: var(--cp-blue);
  font-size: 10px;
}

.cp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--cp-navy);
}

.cp-hero p {
  margin: 0 auto;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cp-gray);
}

/* Filters */
.cp-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.cp-filter {
  appearance: none;
  border: 1px solid var(--cp-border);
  background: #fff;
  color: var(--cp-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-filter:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cp-filter.is-active {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

/* Featured */
.cp-featured {
  background: var(--cp-featured-bg);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 56px;
  box-shadow: var(--cp-shadow);
}

.cp-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cp-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.cp-badge svg {
  width: 14px;
  height: 14px;
}

.cp-featured h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.cp-categories {
  color: var(--cp-blue);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cp-featured-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cp-gray);
  max-width: 520px;
}

.cp-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.cp-tech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cp-navy);
}

.cp-tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.cp-btn-primary {
  background: var(--cp-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.cp-btn-primary:hover {
  background: var(--cp-blue-dark);
  transform: translateY(-1px);
}

.cp-btn-outline {
  background: #fff;
  color: var(--cp-blue);
  border: 1.5px solid var(--cp-blue);
}

.cp-btn-outline:hover {
  background: #eff6ff;
}

.cp-btn svg {
  width: 16px;
  height: 16px;
}

/* Device mockup */
.cp-mockup-wrap {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-laptop {
  width: 100%;
  max-width: 420px;
  background: #111827;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 0;
  box-shadow: var(--cp-shadow-lg);
  transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
}

.cp-laptop-screen {
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.cp-laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-phone {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 110px;
  background: #1f2937;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: rotate(6deg);
}

.cp-phone-screen {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  background: #fff;
}

.cp-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* More projects */
.cp-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.cp-more-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.cp-view-all {
  color: var(--cp-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
}

.cp-view-all:hover {
  text-decoration: underline;
}

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

.cp-card {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  overflow: hidden;
  box-shadow: var(--cp-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow-lg);
}

.cp-card.is-hidden,
.cp-card-hidden {
  display: none !important;
}

.cp-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.cp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cp-card-top h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.cp-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cp-tag-web {
  background: #dbeafe;
  color: #1d4ed8;
}

.cp-tag-mobile {
  background: #ede9fe;
  color: #6d28d9;
}

.cp-tag-ai {
  background: #fce7f3;
  color: #be185d;
}

.cp-tag-saas {
  background: #d1fae5;
  color: #047857;
}

.cp-card-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cp-gray);
  flex: 1;
}

.cp-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.cp-card-tech span {
  font-size: 11px;
  font-weight: 600;
  color: var(--cp-gray-light);
  background: #f8fafc;
  border: 1px solid var(--cp-border);
  padding: 4px 8px;
  border-radius: 6px;
}

.cp-card-link {
  color: var(--cp-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cp-card-link:hover {
  gap: 8px;
}

@media (max-width: 1024px) {
  .cp-featured-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cp-mockup-wrap {
    order: -1;
    min-height: 280px;
  }

  .cp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #codexa-projects {
    padding: 100px 16px 60px;
  }

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

  .cp-filter {
    flex-shrink: 0;
  }

  .cp-grid {
    grid-template-columns: 1fr;
  }

  .cp-more-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cp-phone {
    width: 90px;
    right: 8px;
  }
}

/* Hide all Framer home page sections inside #main on Projects routes */
#codexa-projects ~ #main .framer-UKDkJ > *:not(.framer-hnpj9p-container):not(.framer-1haw2cq):not(.framer-jsdzb-container):not(nav):not(footer):not(style),
#codexa-projects ~ #main > div > *:not(.framer-hnpj9p-container):not(.framer-1haw2cq):not(.framer-jsdzb-container):not(nav):not(footer):not(style),
#main .framer-UKDkJ > .ssr-variant,
#main .framer-146fwfe,
#main .framer-81egp,
#main .framer-88jhvu {
  display: none !important;
}

/* Ensure Footer and its inner responsive variants remain fully visible */
#main .framer-hnpj9p-container,
#main .framer-1haw2cq,
#main footer {
  display: flex !important;
}

#main footer .ssr-variant,
#main .framer-1haw2cq .ssr-variant {
  display: contents !important;
}

/* Remove 100vh min-height constraint on #main and .framer-UKDkJ so no white box appears below footer */
#main,
#main .framer-UKDkJ,
.framer-UKDkJ {
  min-height: auto !important;
  height: auto !important;
}

#main .framer-1haw2cq,
#main footer {
  background-color: var(--token-ac4ad6cb-9810-4691-952f-87a30cbeca2c, #7584d6) !important;
}