/* ==========================================================================
   Projects Section CSS – Exact 1:1 Match to Reference Screenshot
   ========================================================================== */
.projects-section-scope {
  padding-top: 90px;
  padding-bottom: 90px;
  background: #fbfdff;
  position: relative;
  overflow: hidden;
}

.projects-section-scope::before {
  content: "";
  position: absolute;
  left: -140px;
  top: 30%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 104, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.projects-section-scope::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: 15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 104, 255, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header Area */
.projects-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.projects-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.projects-eyebrow-wrap .eyebrow {
  color: #1268ff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.projects-eyebrow-wrap .eyebrow-line {
  width: 32px;
  height: 2px;
  background: #1268ff;
  border-radius: 2px;
}

.projects-head-left h2 {
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 850;
  color: #0c1f3d;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 8px;
}

.projects-head-left h2 .highlight-blue {
  color: #1268ff;
}

.projects-head-left p {
  font-size: 16px;
  color: #63759a;
  margin: 0;
  max-width: 620px;
}

.projects-all-btn {
  padding: 12px 28px;
  border-radius: 999px;
  background: #1268ff;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(18, 104, 255, 0.22);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

.projects-all-btn:hover {
  transform: translateY(-2px);
  background: #0c56d6;
}

/* Two-Column Showcase Layout */
.projects-showcase-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Left Column: 6 Selector Rows with Outer Index */
.projects-selector-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-selector-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-selector-idx {
  font-size: 14px;
  font-weight: 800;
  color: #a4bcd8;
  width: 22px;
  flex: 0 0 auto;
  text-align: right;
  font-family: inherit;
}

.project-selector-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e1ebf7;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(18, 55, 110, 0.04);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
  font-family: inherit;
}

.project-selector-card:hover {
  border-color: #bcd7fc;
  background: #fbfdff;
  transform: translateX(4px);
}

.project-selector-card.is-active {
  border-color: #1268ff;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 104, 255, 0.12);
}

.project-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #eef5ff;
  border: 1px solid #dce8fa;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.project-card-info strong {
  font-size: 13.5px;
  font-weight: 750;
  color: #0c2146;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-info small {
  font-size: 11.5px;
  color: #6a7da2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f6ff;
  color: #1268ff;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: 0 0 auto;
  transition: all 0.2s ease;
}

.project-selector-card.is-active .project-card-arrow {
  background: #1268ff;
  color: #ffffff;
}

/* Right Showcase Main */
.projects-showcase-main {
    background: none;
    border-radius: 32px;
    padding: 44px 44px 44px 36px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.project-feature-index {
  position: absolute;
  top: 14px;
  right: 28px;
  font-size: 96px;
  font-weight: 900;
  color: #edf3fb;
  line-height: 1;
  user-select: none;
  z-index: 1;
  pointer-events: none;
}

.projects-showcase-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Devices Showcase: Laptop + Overlapping iPhone */
.project-devices-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 20px 0;
}

/* MacBook Mockup */
.macbook-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 20px 40px rgba(12, 35, 70, 0.16));
}

.macbook-screen {
  background: #0a111c;
  border: 7px solid #1e293b;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #1e293b;
  border-radius: 0 0 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.camera-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #475569;
}

.macbook-display {
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.macbook-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.macbook-base {
  height: 12px;
  background: linear-gradient(180deg, #d8e2ee 0%, #cbd5e1 100%);
  border-radius: 0 0 16px 16px;
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.macbook-notch-base {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: #94a3b8;
  border-radius: 0 0 4px 4px;
}

/* iPhone Mockup (Overlapping) */
.iphone-frame {
  position: absolute;
  right: 0px;
  bottom: -10px;
  width: 145px;
  z-index: 5;
  filter: drop-shadow(0 18px 36px rgba(10, 30, 60, 0.28));
}

.iphone-sparks {
  position: absolute;
  top: -16px;
  right: 18px;
  display: flex;
  gap: 4px;
}

.iphone-sparks span {
  width: 2.5px;
  height: 10px;
  background: #1268ff;
  border-radius: 2px;
  display: inline-block;
}

.iphone-sparks span:nth-child(1) {
  transform: rotate(-30deg);
}

.iphone-sparks span:nth-child(2) {
  height: 12px;
  margin-top: -3px;
}

.iphone-sparks span:nth-child(3) {
  transform: rotate(30deg);
}

.iphone-body {
  background: #09121f;
  border: 4px solid #1e293b;
  border-radius: 24px;
  padding: 2px;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  position: relative;
}

.iphone-dynamic-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 8px;
  background: #000;
  border-radius: 999px;
  z-index: 6;
}

.iphone-display {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.iphone-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Right Half: Project Information */
.project-info-wrap {
  display: flex;
  flex-direction: column;
}

.project-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill-tag {
  padding: 4px 13px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1268ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid #d8e7fc;
}

#project-feature-title {
  font-size: 27px;
  font-weight: 850;
  color: #0c2146;
  margin: 0 0 2px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.project-feature-type {
  font-size: 13.5px;
  font-weight: 700;
  color: #1268ff;
  margin: 0 0 12px;
}

.project-feature-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5a6d92;
  margin: 0 0 16px;
}

/* Checklist */
.project-feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-feature-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #233b66;
}

.project-feature-checklist li i {
  color: #1268ff;
  font-size: 13px;
  flex: 0 0 auto;
}

/* Tech Stack Row */
.project-tech-stack-block {
  margin-bottom: 18px;
}

.tech-stack-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #7f92b4;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.tech-stack-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tech-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.tech-badge-icon.badge-wp {
  background: #0073aa;
  color: #fff;
  font-size: 16px;
}

.tech-badge-icon.badge-woo {
  background: #7f54b3;
  color: #fff;
  border-radius: 8px;
}

.tech-badge-icon.badge-php {
  background: #777bb4;
  color: #fff;
  border-radius: 8px;
}

.tech-badge-icon.badge-acf {
  background: #00e5a3;
  color: #0c2146;
  border-radius: 8px;
}

.tech-badge-icon.badge-js {
  background: #3178c6;
  color: #fff;
  border-radius: 8px;
}

/* Impact Metrics */
.project-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f3f8ff;
  border: 1px solid #e1ecfa;
  margin-bottom: 20px;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-pill i {
  color: #1268ff;
  font-size: 14px;
  flex: 0 0 auto;
}

.metric-pill strong {
  display: block;
  font-size: 11.5px;
  color: #0c2146;
  line-height: 1.1;
}

.metric-pill small {
  display: block;
  font-size: 10px;
  color: #6a7da2;
  line-height: 1.1;
}

/* Action Button */
.btn-case-study {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #1268ff;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(18, 104, 255, 0.24);
  text-decoration: none;
  align-self: flex-start;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-case-study:hover {
  transform: translateY(-2px);
  background: #0c56d6;
}

/* Responsiveness */
@media (max-width: 1200px) {
  .projects-showcase-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .project-devices-wrap {
    padding: 10px 0 20px 0;
  }
}

@media (max-width: 960px) {
  .projects-showcase-layout {
    grid-template-columns: 1fr;
  }
  .projects-selector-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-section-scope {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .projects-selector-col {
    grid-template-columns: 1fr;
  }
  .projects-showcase-main {
    padding: 24px 18px;
    border-radius: 24px;
  }
  .project-metrics-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .iphone-frame {
    width: 115px;
    right: -6px;
    bottom: -6px;
  }
}
