/* ==========================================================================
   Branding Pigeon - Interactive 3D Service Cards Hero Section
   Luxury, Modern, High-Converting 3D Perspective Digital Marketing Showcase
   Matching the Hero Section's Aesthetic, Precision Typography & Micro-Interactions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* Color & Typography Tokens */
:root {
  --bp-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bp-red: #D40000;
  --bp-red-hover: #b80000;
  --bp-black: #111111;
  --bp-white: #FFFFFF;
  --bp-soft-red: rgba(212, 0, 0, 0.08);
  --bp-text-secondary: #666666;
  --bp-border-subtle: rgba(0, 0, 0, 0.08);
  --bp-bg-accent: #F8F9FA;
  --bp-green: #10B981;
  --bp-green-soft: rgba(16, 185, 129, 0.12);
  
  --bp-shadow-card: 0 14px 34px -8px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --bp-shadow-center: 0 20px 45px -10px rgba(212, 0, 0, 0.12), 0 6px 18px -4px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(212, 0, 0, 0.2);
  --bp-shadow-hover: 0 22px 48px -12px rgba(0, 0, 0, 0.13), 0 8px 24px -4px rgba(212, 0, 0, 0.18), 0 0 0 1px rgba(212, 0, 0, 0.35);
}

/* ==========================================================================
   Section Container & Background
   ========================================================================== */
.bp-3d-services-hero {
  position: relative;
  width: 100%;
  padding: 4.5rem 0 5.5rem;
  background-color: var(--bp-white);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(212, 0, 0, 0.035) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  background-position: center center, center center, center center;
  overflow: visible;
  border-top: 1px solid var(--bp-border-subtle);
  border-bottom: 1px solid var(--bp-border-subtle);
  font-family: var(--bp-font-body);
  box-sizing: border-box;
}

/* Dark Mode Adaptation */
body.dark-mode .bp-3d-services-hero {
  background-color: #0d0d0d;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(212, 0, 0, 0.07) 0%, rgba(13, 13, 13, 0) 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  border-top-color: #222222;
  border-bottom-color: #222222;
}

.bp-3d-services-hero * {
  box-sizing: border-box;
}

.bp-container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

/* ==========================================================================
   Section Header
   ========================================================================== */
.bp-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.25rem;
  position: relative;
  z-index: 2;
}

.bp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: var(--bp-soft-red);
  border: 1px solid rgba(212, 0, 0, 0.22);
  color: var(--bp-red);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-family: var(--bp-font-heading);
  transition: transform 0.3s ease;
}

body.dark-mode .bp-badge-pill {
  background: rgba(212, 0, 0, 0.15);
  border-color: rgba(212, 0, 0, 0.35);
  color: #ff4d4d;
}

.bp-section-title {
  font-size: 2.65rem;
  font-weight: 800;
  color: var(--bp-black);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
  font-family: var(--bp-font-heading);
}

body.dark-mode .bp-section-title {
  color: #FFFFFF;
}

.bp-section-title span {
  color: var(--bp-red);
  position: relative;
  display: inline-block;
}

.bp-section-desc {
  font-size: 1.05rem;
  color: var(--bp-text-secondary);
  line-height: 1.6;
  font-family: var(--bp-font-body);
  margin: 0;
}

body.dark-mode .bp-section-desc {
  color: #9E9E9E;
}

/* ==========================================================================
   3D Stage and Card Fan Layout
   ========================================================================== */
.bp-cards-stage {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1250px;
  transform-style: preserve-3d;
  padding: 2.5rem 0 1.5rem;
}

/* Faint soft glow positioned behind central performance card */
.bp-central-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 0, 0, 0.08) 0%, rgba(212, 0, 0, 0.02) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  filter: blur(25px);
}

body.dark-mode .bp-central-glow {
  background: radial-gradient(circle, rgba(212, 0, 0, 0.18) 0%, rgba(212, 0, 0, 0.04) 50%, transparent 70%);
}

.bp-cards-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
}

/* ==========================================================================
   Service Card Outer Wrapper (Handles 3D Transform & Layering)
   ========================================================================== */
.bp-card-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 268px;
  height: 412px;
  margin: 0 -16px; /* Balanced overlapping fan */
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
  outline: none;
  
  --base-rot: 0deg;
  --base-y: 0px;
  --base-scale: 1;
  --base-depth: 0px;
  --base-z: 3;
  z-index: var(--base-z);
  transform: rotate(var(--base-rot)) translateY(var(--base-y)) translateZ(var(--base-depth)) scale(var(--base-scale));
  transform-origin: center 65%;
  transition:
    transform 380ms cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 380ms cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 280ms ease,
    opacity 350ms ease,
    filter 350ms ease,
    z-index 0ms;
  -webkit-tap-highlight-color: transparent;
}

/* Card 1: Leftmost (SEO Services) */
.bp-card-1 {
  --base-rot: -10deg;
  --base-y: 10px;
  --base-scale: 0.99;
  --base-depth: 6px;
  --base-z: 5;
}

/* Card 2: Inner Left (Social Media) */
.bp-card-2 {
  --base-rot: -5deg;
  --base-y: 4px;
  --base-scale: 1;
  --base-depth: 16px;
  --base-z: 8;
}

/* Card 3: Center Dominant (Performance Marketing) */
.bp-card-3 {
  --base-rot: 0deg;
  --base-y: -4px;
  --base-scale: 1.02;
  --base-depth: 24px;
  --base-z: 12;
}

/* Card 4: Inner Right (Web Development) */
.bp-card-4 {
  --base-rot: 5deg;
  --base-y: 4px;
  --base-scale: 1;
  --base-depth: 16px;
  --base-z: 8;
}

/* Card 5: Rightmost (Creative Design & Branding) */
.bp-card-5 {
  --base-rot: 10deg;
  --base-y: 10px;
  --base-scale: 0.99;
  --base-depth: 6px;
  --base-z: 5;
}

/* ==========================================================================
   Idle Floating Sub-Container
   ========================================================================== */
.bp-card-inner-float {
  width: 100%;
  height: 100%;
  animation: bpIdleFloat 6s ease-in-out infinite;
}

.bp-card-1 .bp-card-inner-float { animation-delay: 0s; animation-duration: 5.8s; }
.bp-card-2 .bp-card-inner-float { animation-delay: 1.4s; animation-duration: 6.4s; }
.bp-card-3 .bp-card-inner-float { animation-delay: 0.7s; animation-duration: 5.2s; }
.bp-card-4 .bp-card-inner-float { animation-delay: 2.1s; animation-duration: 6.2s; }
.bp-card-5 .bp-card-inner-float { animation-delay: 1.0s; animation-duration: 5.6s; }

@keyframes bpIdleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .bp-card-inner-float {
    animation: none !important;
  }
  .bp-card-wrapper {
    transition: transform 150ms ease, box-shadow 150ms ease !important;
  }
}

/* ==========================================================================
   Service Card Body (Visual Panel Surface)
   ========================================================================== */
.bp-service-card {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bp-border-subtle);
  border-radius: 22px;
  padding: 1.35rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), var(--bp-shadow-card);
  position: relative;
  overflow: hidden;
  transition:
    border-color 300ms ease,
    box-shadow 420ms ease,
    background-color 300ms ease;
  user-select: none;
}

body.dark-mode .bp-service-card {
  background: rgba(21, 21, 21, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px -8px rgba(0, 0, 0, 0.5);
}

/* Central Card Surface Polish */
.bp-card-3 .bp-service-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), var(--bp-shadow-center);
  border-color: rgba(212, 0, 0, 0.22);
}

body.dark-mode .bp-card-3 .bp-service-card {
  background: #171717;
  border-color: rgba(212, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -10px rgba(0, 0, 0, 0.6), 0 10px 25px -4px rgba(212, 0, 0, 0.2);
}

/* ==========================================================================
   Card Header: Category, Title, Subtitle
   ========================================================================== */
.bp-card-header {
  margin-bottom: 0.65rem;
}

.bp-card-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.bp-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.24rem 0.65rem;
  border-radius: 50px;
  background: var(--bp-bg-accent);
  color: var(--bp-black);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--bp-font-heading);
}

body.dark-mode .bp-card-tag {
  background: #202020;
  border-color: #2D2D2D;
  color: #CCCCCC;
}

.bp-card-tag.highlight {
  background: var(--bp-soft-red);
  color: var(--bp-red);
  border-color: rgba(212, 0, 0, 0.22);
}

body.dark-mode .bp-card-tag.highlight {
  background: rgba(212, 0, 0, 0.2);
  color: #ff5252;
  border-color: rgba(212, 0, 0, 0.4);
}

.bp-card-icon-pill {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--bp-bg-accent);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-black);
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode .bp-card-icon-pill {
  background: #222222;
  border-color: #333333;
  color: #FFFFFF;
}

.bp-card-3 .bp-card-icon-pill {
  background: var(--bp-soft-red);
  border-color: rgba(212, 0, 0, 0.2);
  color: var(--bp-red);
}

body.dark-mode .bp-card-3 .bp-card-icon-pill {
  background: rgba(212, 0, 0, 0.2);
  color: #ff5252;
}

.bp-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--bp-black);
  margin: 0 0 0.2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-family: var(--bp-font-heading);
  transition: color 0.3s ease;
}

body.dark-mode .bp-card-title {
  color: #FFFFFF;
}

.bp-card-3 .bp-card-title {
  font-size: 1.32rem;
}

.bp-card-subtitle {
  font-size: 0.78rem;
  color: var(--bp-text-secondary);
  line-height: 1.4;
  margin: 0;
  font-family: var(--bp-font-body);
}

body.dark-mode .bp-card-subtitle {
  color: #8C8C8C;
}

/* ==========================================================================
   Internal Miniature Interfaces & Visuals (Matching Hero Section Quality)
   ========================================================================== */
.bp-card-visual {
  flex-grow: 1;
  background: #F8F9FA;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 0.85rem;
  margin: 0.65rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 380ms ease, border-color 300ms ease;
}

body.dark-mode .bp-card-visual {
  background: #121214;
  border-color: #222222;
}

/* Global Growth Pill (Styled like Hero Section's .fc-growth) */
.bp-growth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bp-green);
  background: var(--bp-green-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-family: var(--bp-font-heading);
  white-space: nowrap;
}

/* CARD 1: SEO Services Visual */
.bp-seo-serp {
  background: var(--bp-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 9px;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.dark-mode .bp-seo-serp {
  background: #191919;
  border-color: #2a2a2a;
}

.bp-serp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.bp-serp-url {
  font-size: 0.65rem;
  color: #777777;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--bp-font-body);
}

.bp-serp-rank {
  font-size: 0.64rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 0.12rem 0.45rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--bp-font-heading);
}

.bp-serp-headline {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a0dab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--bp-font-heading);
}

body.dark-mode .bp-serp-headline {
  color: #8ab4f8;
}

.bp-seo-chart-container {
  width: 100%;
  height: 68px;
  position: relative;
  margin: 0.2rem 0;
}

.bp-seo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bp-seo-pulse {
  transform-origin: 192px 10px;
  animation: bpSeoDotPulse 2.4s ease-in-out infinite;
}

@keyframes bpSeoDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.6); opacity: 0.85; }
}

.bp-seo-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
}

body.dark-mode .bp-seo-metric-row {
  border-top-color: #262626;
}

.bp-metric-col {
  display: flex;
  flex-direction: column;
}

.bp-metric-lbl {
  font-size: 0.62rem;
  color: #888888;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--bp-font-heading);
  letter-spacing: 0.03em;
}

.bp-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bp-black);
  font-family: var(--bp-font-heading);
  line-height: 1.1;
}

body.dark-mode .bp-metric-val {
  color: #FFFFFF;
}

/* CARD 2: Social Media Marketing Visual */
.bp-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.bp-social-tile {
  background: var(--bp-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 0.55rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.dark-mode .bp-social-tile {
  background: #191919;
  border-color: #2a2a2a;
}

.bp-tile-reel {
  background: linear-gradient(145deg, #1f0808 0%, #111111 100%);
  border-color: rgba(212, 0, 0, 0.25);
  color: #FFFFFF;
}

.bp-tile-reel .bp-tile-stats .bp-stat-bold {
  color: #FFFFFF;
}

.bp-tile-engagement {
  background: linear-gradient(145deg, #141416 0%, #1a1a1d 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.bp-tile-engagement .bp-tile-stats .bp-stat-bold {
  color: #FFFFFF;
}

.bp-tile-video-preview {
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.bp-play-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #D40000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bp-viral-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ff5252;
  background: rgba(212, 0, 0, 0.25);
  padding: 0.12rem 0.4rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--bp-font-heading);
}

.bp-preview-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bp-sound-bar {
  width: 3.5px;
  height: 16px;
  background: linear-gradient(180deg, #D40000 0%, #ff5252 100%);
  border-radius: 2px;
  animation: bpEqualizer 1.2s ease-in-out infinite alternate;
}

.bp-sound-bar:nth-child(2) { height: 28px; animation-delay: 0.2s; }
.bp-sound-bar:nth-child(3) { height: 22px; animation-delay: 0.4s; }
.bp-sound-bar:nth-child(4) { height: 14px; animation-delay: 0.6s; }

@keyframes bpEqualizer {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.1); }
}

.bp-tile-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--bp-font-heading);
}

.bp-stat-bold {
  font-size: 0.88rem;
  font-weight: 800;
}

.bp-stat-sub {
  font-size: 0.62rem;
  color: #888888;
  text-transform: uppercase;
}

.bp-social-growth-bar {
  background: var(--bp-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 9px;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.dark-mode .bp-social-growth-bar {
  background: #191919;
  border-color: #2a2a2a;
}

.bp-growth-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bp-black);
  margin-bottom: 0.3rem;
  font-family: var(--bp-font-heading);
}

body.dark-mode .bp-growth-label-row {
  color: #FFFFFF;
}

.bp-growth-pct {
  color: var(--bp-red);
}

.bp-progress-track {
  width: 100%;
  height: 6px;
  background: #EAEAEA;
  border-radius: 4px;
  overflow: hidden;
}

body.dark-mode .bp-progress-track {
  background: #282828;
}

.bp-progress-fill {
  width: 94%;
  height: 100%;
  background: linear-gradient(90deg, #D40000 0%, #ff5252 50%, #D40000 100%);
  background-size: 200% 100%;
  animation: bpShimmer 2.8s linear infinite;
  border-radius: 4px;
}

@keyframes bpShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* CARD 3: Center Dominant Card (Performance Marketing) */
.bp-card-3 .bp-card-visual {
  background: linear-gradient(180deg, #111115 0%, #08080a 100%);
  border-color: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
  padding: 0.95rem 0.85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bp-perf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.bp-perf-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #AAAAAA;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--bp-font-heading);
}

.bp-perf-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #10B981;
  font-weight: 700;
  font-size: 0.68rem;
  font-family: var(--bp-font-heading);
}

.bp-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: bpPulse 2s infinite;
}

@keyframes bpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.bp-perf-kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.55rem 0 0.45rem;
}

.bp-kpi-main-group {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.bp-kpi-main {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  font-family: var(--bp-font-heading);
  line-height: 1;
}

.bp-kpi-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: #999999;
  font-family: var(--bp-font-heading);
}

/* Analytics Vertical Bars */
.bp-perf-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 54px;
  gap: 5px;
  margin-bottom: 0.55rem;
  padding-top: 5px;
}

.bp-perf-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bp-bar-fill {
  width: 100%;
  background: #242426;
  border-radius: 3px 3px 0 0;
  transition: height 0.6s ease;
}

.bp-bar-fill.active {
  background: linear-gradient(180deg, #D40000 0%, #850000 100%);
  box-shadow: 0 0 12px rgba(212, 0, 0, 0.5);
}

.bp-bar-label {
  font-size: 0.58rem;
  color: #666666;
  margin-top: 0.25rem;
  font-family: var(--bp-font-heading);
}

.bp-bar-label.active {
  color: #ff5252;
  font-weight: 700;
}

/* Funnel Summary Row */
.bp-perf-funnel {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
}

.bp-funnel-item {
  display: flex;
  flex-direction: column;
}

.bp-funnel-label {
  color: #888888;
  font-size: 0.58rem;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--bp-font-heading);
}

.bp-funnel-val {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--bp-font-heading);
}

.bp-funnel-val.highlight {
  color: #ff5252;
}

/* CARD 4: Web Development Visual */
.bp-browser-frame {
  background: var(--bp-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 0.5rem;
}

body.dark-mode .bp-browser-frame {
  background: #181818;
  border-color: #2a2a2a;
}

.bp-browser-topbar {
  background: #F4F4F6;
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .bp-browser-topbar {
  background: #202020;
  border-bottom-color: #2b2b2b;
}

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

.bp-browser-dots span {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  display: block;
}

.bp-dot-red { background: #ff5f56; }
.bp-dot-yellow { background: #ffbd2e; }
.bp-dot-green { background: #27c93f; }

.bp-browser-address {
  background: var(--bp-white);
  border-radius: 4px;
  flex-grow: 1;
  height: 14px;
  font-size: 0.56rem;
  color: #666666;
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-family: var(--bp-font-body);
}

body.dark-mode .bp-browser-address {
  background: #121212;
  color: #888888;
  border-color: #262626;
}

.bp-browser-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bp-wireframe-hero {
  height: 30px;
  background: #F6F7F9;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

body.dark-mode .bp-wireframe-hero {
  background: #222222;
  border-color: #2c2c2c;
}

.bp-wireframe-badge {
  width: 22px;
  height: 4px;
  background: rgba(212, 0, 0, 0.3);
  border-radius: 2px;
}

.bp-wireframe-line {
  width: 48%;
  height: 5px;
  background: #D8D8D8;
  border-radius: 2px;
}

body.dark-mode .bp-wireframe-line {
  background: #3a3a3a;
}

.bp-wireframe-btn {
  width: 28px;
  height: 12px;
  background: var(--bp-red);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(212, 0, 0, 0.25);
}

.bp-wireframe-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.bp-wireframe-card {
  height: 22px;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.3rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

body.dark-mode .bp-wireframe-card {
  background: #1c1c1c;
  border-color: #2b2b2b;
}

.bp-micro-chart {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #E8E8E8;
}

.bp-micro-chart.accent {
  background: rgba(212, 0, 0, 0.2);
}

.bp-micro-text {
  flex: 1;
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
}

body.dark-mode .bp-micro-text {
  background: #333333;
}

.bp-speed-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: var(--bp-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 9px;
  font-size: 0.7rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.dark-mode .bp-speed-score-row {
  background: #191919;
  border-color: #2a2a2a;
}

.bp-speed-score-badge {
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--bp-font-heading);
}

.bp-speed-meta {
  font-size: 0.65rem;
  color: var(--bp-text-secondary);
  font-weight: 600;
  font-family: var(--bp-font-heading);
}

/* CARD 5: Creative Design & Branding Visual */
.bp-creative-board {
  background: var(--bp-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 9px;
  padding: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.dark-mode .bp-creative-board {
  background: #191919;
  border-color: #2a2a2a;
}

.bp-swatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.bp-palette-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #888888;
  font-family: var(--bp-font-heading);
  letter-spacing: 0.04em;
}

.bp-swatches {
  display: flex;
  gap: 5px;
}

.bp-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.bp-swatch-red { background: #D40000; }
.bp-swatch-black { background: #111111; }
.bp-swatch-soft { background: #FCECEC; }
.bp-swatch-grey { background: #E7E7E7; }

.bp-typo-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #F8F9FA;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 7px;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.45rem;
}

body.dark-mode .bp-typo-preview {
  background: #202020;
  border-color: #2a2a2a;
}

.bp-typo-letter {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bp-black);
  line-height: 1;
  font-family: var(--bp-font-heading);
}

body.dark-mode .bp-typo-letter {
  color: #FFFFFF;
}

.bp-typo-meta {
  display: flex;
  flex-direction: column;
}

.bp-typo-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bp-black);
  font-family: var(--bp-font-heading);
  line-height: 1.2;
}

body.dark-mode .bp-typo-name {
  color: #FFFFFF;
}

.bp-typo-desc {
  font-size: 0.58rem;
  color: #888888;
  font-family: var(--bp-font-body);
}

.bp-creative-banner {
  background: linear-gradient(135deg, #111111 0%, #262626 100%);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bp-banner-brand {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--bp-font-heading);
}

.bp-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bp-red);
  box-shadow: 0 0 6px rgba(212, 0, 0, 0.6);
}

.bp-banner-tag {
  font-size: 0.58rem;
  font-weight: 700;
  color: #AAAAAA;
  text-transform: uppercase;
  font-family: var(--bp-font-heading);
}

/* ==========================================================================
   Card Footer Action Link
   ========================================================================== */
.bp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--bp-border-subtle);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--bp-black);
  font-family: var(--bp-font-heading);
  transition: color 0.3s ease;
}

body.dark-mode .bp-card-footer {
  border-top-color: #252525;
  color: #FFFFFF;
}

.bp-footer-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 0, 0, 0.06);
  border: 1px solid rgba(212, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-red);
  font-size: 0.95rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

body.dark-mode .bp-footer-arrow {
  background: rgba(212, 0, 0, 0.15);
  border-color: rgba(212, 0, 0, 0.3);
}

/* ==========================================================================
   Main Hover Interaction (Lifts, zooms, foregrounds smoothly)
   ========================================================================== */

/* 1. When any card in the deck is hovered, all other sibling cards gently settle back without losing quality */
.bp-cards-flex.has-hovered .bp-card-wrapper:not(.is-hovered):not(:hover),
.bp-cards-flex:hover .bp-card-wrapper:not(:hover):not(.is-hovered) {
  opacity: 0.90 !important;
  filter: none !important;
  transform: rotate(var(--base-rot)) translateY(calc(var(--base-y) + 2px)) translateZ(-6px) scale(calc(var(--base-scale) * 0.985)) !important;
}

/* 2. Pause idle animation on hovered card so it stays completely steady */
.bp-cards-flex .bp-card-wrapper:hover .bp-card-inner-float,
.bp-cards-flex .bp-card-wrapper.is-hovered .bp-card-inner-float {
  animation-play-state: paused !important;
}

/* 3. The hovered card automatically zooms in gracefully, lifts forward, and prominently highlights */
.bp-cards-flex .bp-card-wrapper:hover,
.bp-cards-flex .bp-card-wrapper.is-hovered,
.bp-cards-flex .bp-card-wrapper:focus-visible {
  opacity: 1 !important;
  filter: none !important;
  z-index: 999 !important;
}

/* Specific per-card hover transforms:
   Subtle, elegant zoom (scale 1.05 - 1.06) with graceful lift (-12px to -14px).
   This avoids excessive enlargement while preserving clear 3D depth and adjacent card visibility. */
.bp-cards-flex .bp-card-1:hover,
.bp-cards-flex .bp-card-1.is-hovered,
.bp-cards-flex .bp-card-1:focus-visible {
  transform: rotate(-6deg) translateY(-12px) translateZ(48px) scale(1.05) !important;
}

.bp-cards-flex .bp-card-2:hover,
.bp-cards-flex .bp-card-2.is-hovered,
.bp-cards-flex .bp-card-2:focus-visible {
  transform: rotate(-3deg) translateY(-12px) translateZ(48px) scale(1.05) !important;
}

.bp-cards-flex .bp-card-3:hover,
.bp-cards-flex .bp-card-3.is-hovered,
.bp-cards-flex .bp-card-3:focus-visible {
  transform: rotate(0deg) translateY(-14px) translateZ(52px) scale(1.06) !important;
}

.bp-cards-flex .bp-card-4:hover,
.bp-cards-flex .bp-card-4.is-hovered,
.bp-cards-flex .bp-card-4:focus-visible {
  transform: rotate(3deg) translateY(-12px) translateZ(48px) scale(1.05) !important;
}

.bp-cards-flex .bp-card-5:hover,
.bp-cards-flex .bp-card-5.is-hovered,
.bp-cards-flex .bp-card-5:focus-visible {
  transform: rotate(6deg) translateY(-12px) translateZ(48px) scale(1.05) !important;
}

.bp-cards-flex .bp-card-wrapper:hover .bp-service-card,
.bp-cards-flex .bp-card-wrapper.is-hovered .bp-service-card,
.bp-cards-flex .bp-card-wrapper:focus-visible .bp-service-card {
  box-shadow: var(--bp-shadow-hover) !important;
  border-color: rgba(212, 0, 0, 0.45) !important;
}

.bp-cards-flex .bp-card-wrapper:hover .bp-card-title,
.bp-cards-flex .bp-card-wrapper.is-hovered .bp-card-title,
.bp-cards-flex .bp-card-wrapper:focus-visible .bp-card-title {
  color: var(--bp-red);
}

.bp-cards-flex .bp-card-wrapper:hover .bp-card-visual,
.bp-cards-flex .bp-card-wrapper.is-hovered .bp-card-visual,
.bp-cards-flex .bp-card-wrapper:focus-visible .bp-card-visual {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(212, 0, 0, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.bp-cards-flex .bp-card-wrapper:hover .bp-card-footer,
.bp-cards-flex .bp-card-wrapper.is-hovered .bp-card-footer,
.bp-cards-flex .bp-card-wrapper:focus-visible .bp-card-footer {
  color: var(--bp-red);
}

.bp-cards-flex .bp-card-wrapper:hover .bp-footer-arrow,
.bp-cards-flex .bp-card-wrapper.is-hovered .bp-footer-arrow,
.bp-cards-flex .bp-card-wrapper:focus-visible .bp-footer-arrow {
  background: var(--bp-red);
  color: #FFFFFF;
  border-color: var(--bp-red);
  transform: translateX(6px) scale(1.05);
}

/* Keyboard accessibility outline */
.bp-card-wrapper:focus-visible {
  outline: 2px solid var(--bp-red);
  outline-offset: 4px;
  border-radius: 22px;
}

/* ==========================================================================
   Responsive Tablet Layout (768px - 1023px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .bp-3d-services-hero {
    padding: 3.5rem 0 4.5rem;
  }

  .bp-section-title {
    font-size: 2.1rem;
  }

  .bp-section-desc {
    font-size: 0.95rem;
  }

  .bp-cards-stage {
    min-height: 440px;
    padding: 1.5rem 0 1rem;
  }

  /* Compact dimensions for tablet */
  .bp-card-wrapper {
    width: 195px;
    height: 355px;
    margin: 0 -13px;
  }

  .bp-card-1 {
    --base-rot: -7deg;
    --base-y: 10px;
  }

  .bp-card-2 {
    --base-rot: -3deg;
    --base-y: 4px;
  }

  .bp-card-3 {
    width: 215px;
    height: 375px;
    --base-rot: 0deg;
    --base-y: -6px;
  }

  .bp-card-4 {
    --base-rot: 3deg;
    --base-y: 4px;
  }

  .bp-card-5 {
    --base-rot: 7deg;
    --base-y: 10px;
  }

  .bp-service-card {
    padding: 1rem 0.9rem;
    border-radius: 18px;
  }

  .bp-card-title {
    font-size: 1.05rem;
  }

  .bp-card-3 .bp-card-title {
    font-size: 1.15rem;
  }

  .bp-card-subtitle {
    font-size: 0.72rem;
  }

  .bp-card-visual {
    padding: 0.65rem;
    margin: 0.45rem 0;
  }

  .bp-kpi-main {
    font-size: 1.4rem;
  }

  .bp-perf-bars {
    height: 42px;
  }

  .bp-seo-chart-container {
    height: 48px;
  }

  .bp-cards-flex:hover .bp-card-wrapper:not(:hover),
  .bp-cards-flex.has-hovered .bp-card-wrapper:not(.is-hovered):not(:hover) {
    opacity: 0.90;
    filter: none;
    transform: rotate(var(--base-rot)) translateY(var(--base-y)) scale(calc(var(--base-scale) * 0.985));
  }

  .bp-cards-flex .bp-card-wrapper:hover,
  .bp-cards-flex .bp-card-wrapper.is-hovered,
  .bp-cards-flex .bp-card-wrapper:focus-visible {
    transform: rotate(0deg) translateY(-10px) translateZ(40px) scale(1.04) !important;
    z-index: 999 !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* ==========================================================================
   Strict Device Visibility: COMPLETELY HIDDEN ON MOBILE (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .bp-3d-services-hero {
    display: none !important;
  }
}
