/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   innovators4u â€” COMPONENTS.CSS
   Cards, Sections, Page-Specific Component Styles
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ CLIENTS SHOWCASE â”€â”€ */
.clients-section {
  padding: 52px 0 56px;
  border-top: none;
  border-bottom: none;
  background: var(--surface-1);
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: 32px;
}

.clients-label {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  padding: 0 20px;
}

[data-theme="light"] .clients-label {
  color: var(--text-pri);
}

.clients-marquee-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Gradient fade at edges */
.clients-fade-left,
.clients-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

.clients-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--surface-1), transparent);
}

.clients-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--surface-1), transparent);
}

/* Each scrolling row */
.clients-track {
  overflow: hidden;
  width: 100%;
}

.clients-inner {
  display: flex;
  gap: 21px;
  width: max-content;
  align-items: center;
}

.track-fwd .clients-inner {
  animation: clients-fwd 30s linear infinite;
}

.track-rev .clients-inner {
  animation: clients-rev 36s linear infinite;
}

/* Pause on section hover */
.clients-marquee-wrap:hover .clients-inner {
  animation-play-state: paused;
}

@keyframes clients-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes clients-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Logo pills */
.client-logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
  min-width: 195px;
}

.client-logo-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(124,58,237,.18);
  transform: translateY(-3px);
}

.client-logo-pill img {
  height: 78px;
  width: auto;
  object-fit: contain;
  filter: brightness(var(--logo-brightness, 1.2));
  opacity: .95;
  transition: all .35s ease;
  display: block;
}

.client-logo-pill:hover img {
  filter: brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

[data-theme="light"] .client-logo-pill {
  background: #fff;
  border-color: rgba(0,0,0,.09);
}

[data-theme="light"] .client-logo-pill img {
  filter: brightness(.95);
}

[data-theme="light"] .client-logo-pill:hover img {
  filter: brightness(1);
  opacity: 1;
}

.clients-main-title {
  font-family: 'Brasika Display', 'Josefin Sans', sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--text-pri); /* Use neutral primary color */
  line-height: 1.2;
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
  font-weight: 400;
}

.clients-main-title span {
  color: var(--accent);
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
}

/* Legacy: keep .marquee-logo rule for any other pages that still use it */
.marquee-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(var(--logo-brightness));
  opacity: .8;
  transition: all .3s ease;
}

.marquee-logo:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL PRESENCE â€” Globe + Stats Cards
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#stats {
  background: var(--bg);
  padding: 96px 0;
}

/* Two-column layout: globe left, cards right */
.stats-hub {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: center;
}

/* â”€â”€ Globe Zone (left) â”€â”€ */
.hub-globe-zone {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* â”€â”€ Right Panel (Text + Cards) â”€â”€ */
.hub-right-panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hub-globe-label .hub-eyebrow {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hub-globe-label h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: 14px;
}

.hub-globe-label p {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* â”€â”€ Dotted Map Container â”€â”€ */
.hub-map-container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-map-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.6;
}

/* Base image is dark grey, so on dark theme we invert it to white/light grey */
[data-theme="dark"] .world-map-img {
  filter: invert(1) brightness(1.5) opacity(0.8);
}

[data-theme="light"] .world-map-img {
  filter: opacity(0.6);
}

/* â”€â”€ Dynamic Multi-Axis Map Labels â”€â”€ */
.map-label-group {
  position: absolute;
  /* Explicit anchor size so brackets know where to extend from */
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* Core glowing dot */
.location-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 8px 2px var(--accent);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Base bracket and text styles */
.bracket {
  position: absolute;
  background: transparent;
}

.label-text {
  position: absolute;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--heading);
  text-transform: uppercase;
  white-space: nowrap;
}

/* 1. CANADA: Top-Left Quadrant (UP then LEFT) */
.bracket-tl {
  bottom: 50%;
  right: 50%;
  width: clamp(60px, 10vw, 140px);
  height: 50px;
  border-top: 1px solid rgba(124, 58, 237, 0.6);
  border-right: 1px solid rgba(124, 58, 237, 0.6);
  border-top-right-radius: 8px;
}

.bracket-tl .label-text {
  top: -10px;
  right: 100%;
  margin-right: 12px;
}

/* 2. USA: Bottom-Left Quadrant (DOWN then LEFT) */
.bracket-bl {
  top: 50%;
  right: 50%;
  width: clamp(40px, 6vw, 90px);
  height: 48px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.6);
  border-right: 1px solid rgba(124, 58, 237, 0.6);
  border-bottom-right-radius: 8px;
}

.bracket-bl .label-text {
  bottom: -10px;
  right: 100%;
  margin-right: 12px;
}

/* 3. PAKISTAN: Top-Right Quadrant (UP then RIGHT) */
.bracket-tr {
  bottom: 50%;
  left: 50%;
  width: clamp(60px, 8vw, 130px);
  height: 36px;
  border-top: 1px solid rgba(124, 58, 237, 0.6);
  border-left: 1px solid rgba(124, 58, 237, 0.6);
  border-top-left-radius: 8px;
}

.bracket-tr .label-text {
  top: -10px;
  left: 100%;
  margin-left: 12px;
}

/* 4. UAE: Bottom-Right Quadrant (DOWN then RIGHT) */
.bracket-br {
  top: 50%;
  left: 50%;
  width: clamp(30px, 4vw, 70px);
  height: 36px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.6);
  border-left: 1px solid rgba(124, 58, 237, 0.6);
  border-bottom-left-radius: 8px;
}

.bracket-br .label-text {
  bottom: -10px;
  left: 100%;
  margin-left: 12px;
}



/* â”€â”€ Stats Cards (right) â”€â”€ */
.hub-stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hub-stat-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 12px;
  text-align: center;
  cursor: default;
  /* 3D tilt support */
  transform-style: preserve-3d;
  will-change: transform;
  /* Smooth for non-hover props */
  transition:
    border-color .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

/* Site-standard purple accent glow on hover */
.hub-stat-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 40px rgba(124, 58, 237, .25),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

[data-theme="light"] .hub-stat-card:hover {
  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 32px rgba(109, 40, 217, .18);
}

/* Plain heading color â€” no gradient */
.stat-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 54px;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--heading);
}

.stat-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 960px) {
  .stats-hub {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hub-globe-zone {
    padding: 60px 40px 20px;
  }

  .hub-map-container {
    max-width: 480px;
    margin: 0 auto;
    transform: none;
    overflow: visible;
  }
}

/* On small screens scale down the entire label group to prevent overflow */
@media (max-width: 640px) {
  .hub-globe-zone {
    padding: 40px 16px 10px;
    overflow: hidden;
  }

  .hub-map-container {
    max-width: 100%;
    overflow: hidden;
  }

  .map-label-group {
    transform: translate(-50%, -50%) scale(0.65);
  }
  
  /* Fix USA to not overflow left edge */
  .bracket-bl .label-text {
    white-space: normal;
    text-align: right;
    width: 85px;
    line-height: 1.2;
    bottom: -15px;
  }

  /* Fix Canada to not overflow left edge */
  .bracket-tl .label-text {
     white-space: normal;
     text-align: right;
     width: 85px;
     line-height: 1.2;
     top: -15px;
  }
}

@media (max-width: 480px) {
  .hub-stats-panel {
    gap: 12px;
  }

  .hub-stat-card {
    padding: 28px 16px;
  }

  .stat-num {
    font-size: 40px;
  }

  .hub-map-container {
    max-width: 320px;
    transform: none;
  }
}










/* â”€â”€ SERVICES SECTION â”€â”€ */
#services,
#about {
  padding: 160px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  position: relative;
  transition: all .3s ease;
  box-shadow: var(--shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  border-radius: 14px;
  z-index: -1;
}

.service-icon,
.service-desc {
  pointer-events: none;
}

/* â”€â”€ BLOG CARDS â”€â”€ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media(max-width:1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--surface-1);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  overflow: hidden;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-h);
  background: var(--surface-1); /* Keep surface-1 */
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

/* Custom top-left tab effect */
.blog-cat {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--surface-1);
  padding: 12px 24px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  border-bottom-right-radius: 20px;
  z-index: 2;
  transition: background 0.4s;
}

.blog-cat::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 0;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 100% 100%, transparent 20px, var(--surface-1) 20px);
}

.blog-cat::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 100% 100%, transparent 20px, var(--surface-1) 20px);
}

.blog-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-author-date {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.blog-author-date .dot {
  width: 7px;
  height: 7px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background-color: var(--accent);
}

.blog-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--heading);
  transition: color 0.3s;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card:hover .blog-title {
  color: var(--accent);
}

.blog-excerpt {
  display: none; /* Removed as per the screenshot */
}

.blog-more {
  margin-top: auto;
  align-self: flex-end; /* Align right */
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, color 0.3s;
  text-decoration: none;
}

.blog-card:hover .blog-more {
  gap: 12px;
  color: var(--accent); /* Hover effect using theme accent */
}

.service-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
  z-index: 10;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3);
}

/* Remove old top-border variants â€” now handled by accent scope */
.card-top-border,
.card-top-border-blue {
  border-top: none;
}

.service-num {
  display: none;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--surface-3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  color: var(--accent);
  transition: all .3s;
}

.service-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 400;
}

/* â”€â”€ PRODUCTS SECTION â”€â”€ */
#products {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.products-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  opacity: .1;
}

.products-header {
  position: relative;
  z-index: 1;
  margin-bottom: 52px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}

.product-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
  border-radius: 14px;
}

.product-icon,
.product-desc,
.product-tag {
  pointer-events: none;
}

.product-card>* {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
  z-index: 10;
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  width: 50px;
  height: 50px;
  background: var(--surface-3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  color: var(--accent);
  transition: all .3s;
}

.product-card:hover .product-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3);
}

.product-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 18px;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 18px;
  color: var(--text-sec);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .2);
}

/* â”€â”€ AI SECTION â”€â”€ */
#ai {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.ai-tech-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
  padding: 16px 24px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ai-tech-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-tech-logos {
  display: flex;
  gap: 16px;
  overflow: hidden;
  flex: 1;
  flex-wrap: wrap;
}

.ai-tech-logos img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(.6);
  transition: filter .25s;
}

.ai-tech-logos img:hover {
  filter: grayscale(0) brightness(1);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.ai-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
  position: relative;
}

.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  border-radius: 14px;
  z-index: -1;
}

.ai-icon,
.ai-desc {
  pointer-events: none;
}

.ai-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
  z-index: 10;
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card:hover .ai-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3);
}

.ai-icon {
  width: 54px;
  height: 54px;
  background: var(--surface-3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  color: var(--accent);
  transition: all .3s;
}

.ai-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 8px;
}

.ai-desc {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.65;
  font-weight: 400;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ai-tag {
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-sec);
  transition: border-color .2s, color .2s;
}

.ai-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* â”€â”€ HOW IT WORKS / PROCESS (Site-Wide Uniformity) â”€â”€ */
#how,
.process-section {
  padding: 120px 0 !important;
  background: var(--bg);
  border-top: none;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] #how,
[data-theme="light"] .process-section {
  background: var(--surface-1);
}

.steps-wrap {
  position: relative;
  margin-top: 64px;
}

.steps-line {
  position: absolute;
  top: 40px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--border);
  z-index: 0;
  opacity: 0.4;
  overflow: hidden;
}

.steps-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-blue), transparent);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: sequential-flow 9s linear infinite;
}

@keyframes sequential-flow {
  0% { transform: translateX(-105%); } /* Idle during Step 1 pulse */
  16.6% { transform: translateX(-105%); } /* Start flow 1->2 after step 1 done */
  33.3% { transform: translateX(-50%); } /* Bridge at Hex 2 */
  50% { transform: translateX(-50%); } /* Hold during Step 2 pulse */
  66.6% { transform: translateX(55%); } /* Bridge at Hex 3 */
  100% { transform: translateX(110%); } /* Full exit during Step 3 pulse and pause */
}

@keyframes step-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent)); color: var(--accent); }
  4%, 12% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--accent)); color: var(--accent); }
  16.6% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent)); color: var(--accent); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent)); color: var(--accent); }
}

/* Light theme override â€” keep number readable during highlight */
[data-theme="light"] .step-circle,
[data-theme="light"] .process-num {
  color: var(--accent) !important;
}

@keyframes border-pulse {
  0% { background: var(--border); inset: -1px; }
  4%, 12% { background: var(--accent); inset: -3.5px; }
  16.6% { background: var(--border); inset: -1px; }
  100% { background: var(--border); inset: -1px; }
}

[data-theme="light"] .steps-line {
  opacity: 0.25;
}

.steps-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
  gap: 0;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.step,
.process-step {
  padding: 0 24px;
  text-align: center;
  background: transparent !important;
  position: relative;
}

.step-circle,
.process-num {
  width: 80px;
  height: 80px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  border: none;
}

/* Home page 3-step glow */
.step:nth-child(1) .step-circle { animation: step-glow 9s infinite; }
.step:nth-child(1) .step-circle::before { animation: border-pulse 9s infinite; }

.step:nth-child(2) .step-circle { animation: step-glow 9s 3s infinite; }
.step:nth-child(2) .step-circle::before { animation: border-pulse 9s 3s infinite; }

.step:nth-child(3) .step-circle { animation: step-glow 9s 6s infinite; }
.step:nth-child(3) .step-circle::before { animation: border-pulse 9s 6s infinite; }

/* Inner pages 4-step glow â€” same rhythm, staggered over 12s */
.process-step:nth-child(1) .process-num { animation: step-glow 12s 0s infinite; }
.process-step:nth-child(1) .process-num::before { animation: border-pulse 12s 0s infinite; }

.process-step:nth-child(2) .process-num { animation: step-glow 12s 3s infinite; }
.process-step:nth-child(2) .process-num::before { animation: border-pulse 12s 3s infinite; }

.process-step:nth-child(3) .process-num { animation: step-glow 12s 6s infinite; }
.process-step:nth-child(3) .process-num::before { animation: border-pulse 12s 6s infinite; }

.process-step:nth-child(4) .process-num { animation: step-glow 12s 9s infinite; }
.process-step:nth-child(4) .process-num::before { animation: border-pulse 12s 9s infinite; }

.step-circle::before,
.process-num::before {
  content: '';
  position: absolute;
  inset: -1px;
  clip-path: inherit;
  background: var(--accent);
  z-index: -1;
}

.step-circle::after,
.process-num::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  clip-path: inherit;
  background: var(--bg);
  z-index: -1;
}

[data-theme="light"] .step-circle::after,
[data-theme="light"] .process-num::after {
  background: var(--surface-1);
}

@keyframes spin-prog {
  100% {
    transform: rotate(360deg);
  }
}

/* â”€â”€ BUTTON RIPPLE WAVE â”€â”€ */
.btn-ripple-wave {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: btnRipple 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes btnRipple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.step h3,
.process-step h3,
.step-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 19px !important;
  color: var(--heading) !important;
  margin-bottom: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-top: 0 !important;
}

.step p,
.process-step p,
.step-desc {
  font-size: 14px !important;
  color: var(--text-sec) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  margin: 0 auto !important;
  max-width: 280px;
}

@media(max-width:1024px) {

  .steps-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 0;
  }

  .steps-line {
    display: none;
  }
}

@media(max-width:640px) {

  .steps-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ PORTFOLIO CAROUSEL â”€â”€ */
#case-studies {
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden; /* Hide track overflow */
}

.case-studies-viewport {
  position: relative;
  width: 100%;
  height: 520px; /* fixed height for absolute positioned children */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.case-studies-track-infinite {
  position: relative;
  width: 100%;
  height: 100%;
}

.case-studies-viewport .case-studies-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(680px, 78%, 980px);
  height: 100%;
  margin-left: max(-490px, -39%);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease, filter 0.8s ease, z-index 0s 0.2s;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.85);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* State: Active (Center) */
.case-studies-viewport .case-studies-card.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  transform: translateX(0) scale(1);
  filter: blur(0);
  border-color: var(--accent);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.5), 0 0 40px rgba(124, 58, 237, 0.15);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease, filter 0.8s ease, z-index 0s 0s;
}

/* State: Previous / Next â€” Restore 3 card view but full width mapped */
.case-studies-viewport .case-studies-card.prev {
  opacity: 0.6;
  z-index: 5;
  transform: translateX(-95%) scale(0.85);
  pointer-events: auto; /* Allow clicking to nav */
  cursor: pointer;
  filter: blur(2px) grayscale(20%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease, filter 0.8s ease, z-index 0s 0s;
}

.case-studies-viewport .case-studies-card.next {
  opacity: 0.6;
  z-index: 5;
  transform: translateX(95%) scale(0.85);
  pointer-events: auto; 
  cursor: pointer;
  filter: blur(2px) grayscale(20%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease, filter 0.8s ease, z-index 0s 0s;
}

/* State: Hidden Left/Right (Moving out of view) */
.case-studies-viewport .case-studies-card.hidden-left,
.case-studies-viewport .case-studies-card.hidden-right {
  opacity: 0;
  transform: scale(0.8);
  z-index: 0;
}

.case-studies-card-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 520px;
}

@media (max-width: 991px) {
  .case-studies-card-inner {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.case-studies-card-img {
  position: relative;
  overflow: hidden;
  background: #000;
}

.case-studies-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

/* Removed image zoom hover to keep card static */

.case-studies-card-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-1);
}

@media (max-width: 640px) {
  .case-studies-card-content {
    padding: 30px;
  }
}

.case-studies-card-tag {
  align-self: flex-start;
  margin-bottom: 24px;
}

.case-studies-card-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
  line-height: 1.1;
}

.case-studies-card-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.case-btn-round {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--text-sec);
  transition: color 0.3s ease;
  text-decoration: none;
  margin-top: 28px;
}

.case-btn-round i {
  width: 38px;
  height: 38px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  font-size: 12px;
  flex-shrink: 0;
}

.case-btn-round:hover {
  color: var(--heading);
}

.case-btn-round:hover i {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
}

/* Controls */
.case-studies-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.case-studies-arrow {
  width: 52px;
  height: 52px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: none;
  background: var(--surface-1);
  color: var(--text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.case-studies-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border);
  clip-path: inherit;
  z-index: -1;
  transition: all 0.3s;
}

.case-studies-arrow::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: inherit;
  clip-path: inherit;
  z-index: -1;
}

.case-studies-arrow:hover::before {
  background: var(--accent);
}

.case-studies-arrow:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-2px);
}

.filter-btn {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-sec);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow);
}

/* â”€â”€ WHY CHOOSE US â”€â”€ */
#why {
  padding: 120px 0;
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.why-left p {
  color: var(--text-sec);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.75;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
}

.why-feature:hover {
  border-color: var(--accent);
  transform: translateX(8px);
  box-shadow: var(--shadow-h);
}

.why-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  width: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-feature-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.why-feature-desc {
  font-size: 16px;
  color: var(--text-sec);
  font-weight: 400;
  line-height: 1.6;
}

/* â”€â”€ TEAM â”€â”€ */
#team {
  padding: 120px 0;
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.team-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all .3s ease;
  box-shadow: var(--shadow);
  display: block;
  text-decoration: none;
  color: inherit;
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-h);
}

.team-card:hover .team-name {
  color: var(--accent);
}

.team-card .avatar {
  width: 72px;
  height: 72px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  border: 1px solid var(--border); /* Adding a solid subtle border */
}

.av1 {
  background: linear-gradient(135deg, #7C3AED, #4C1D95)
}

.av2 {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8)
}

.av3 {
  background: linear-gradient(135deg, #7C3AED, #3B82F6)
}

.av4 {
  background: linear-gradient(135deg, #6366F1, #8B5CF6)
}

.team-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  color: var(--heading);
  margin-bottom: 6px;
  font-weight: 700;
  transition: color .3s;
  word-break: break-word;
  white-space: normal;
}

.team-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* â”€â”€ TESTIMONIALS (SPLIT LAYOUT) â”€â”€ */
#testimonials {
  padding: 120px 0;
  background: var(--surface-1);
}

.testi-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

/* Left Panel */
.testi-left .font-accent {
  color: var(--accent);
}

.testi-left .eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.testi-left .section-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.testi-left-desc {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 30px;
}

/* Floating Stats Card */
.testi-stats-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.testi-big-score {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
}

.testi-stats-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testi-stars-row {
  color: var(--accent);
  font-size: 18px;
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.testi-stats-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Arrows */
.testi-nav-arrows {
  display: flex;
  gap: 16px;
}

.hex-nav {
  width: 52px;
  height: 60px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--surface-2, rgba(124, 58, 237, 0.1));
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.3s;
}

.hex-nav:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Right Panel Backdrop & Cutouts */
.testi-right {
  position: relative;
  width: 100%;
  padding: 125px 50px 75px 50px; 
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

[data-theme="dark"] .testi-right {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
[data-theme="light"] .testi-right {
  filter: none; /* Remove muddy shadow in light mode */
}

/* Multi-div structure to safely draw the cutouts and keep outer radius */
.testi-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1; 
}

.testi-bd-top {
  position: absolute;
  top: 0; left: 80px; right: 0; height: 80px;
  background: var(--surface-1);
  /* Only curve the outer top-right corner */
  border-radius: 0 20px 0 0;
}

.testi-bd-mid {
  position: absolute;
  top: 80px; left: 0; right: 0; bottom: 65px;
  background: var(--surface-1);
  /* Curve the outer bottom-right corner where card meets BR cutout */
  border-radius: 0 0 20px 0;
}

.testi-bd-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 180px; height: 65px;
  background: var(--surface-1);
  /* Only curve the outer bottom-left corner */
  border-radius: 0 0 0 20px;
}

/* Joints removed â€” clean sharp inner corners are intentional per design */

.testi-huge-quote-block {
  position: absolute;
  top: 15px; 
  left: 18px;
  z-index: 2;
}

.testi-dots-block {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 2;
  width: auto;
}

.testi-huge-quote {
  font-size: 52px;
  color: var(--accent);
  line-height: 1;
}

/* Slides sit above the backdrop */
.testi-slides-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
}


.testi-slide {
  display: none;
  animation: testi-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testi-slide.active {
  display: block;
}

@keyframes testi-fade-in {
  from { opacity: 0; filter: blur(4px); transform: scale(0.97); }
  to   { opacity: 1; filter: blur(0); transform: scale(1); }
}

.testi-split-body {
  font-size: 19px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 30px;
}

.testi-separator {
  border: 0;
  height: 1px;
  background: var(--border);
  margin-bottom: 30px;
}

.testi-split-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testi-split-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-split-avatar {
  width: 50px;
  height: 50px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.testi-split-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.testi-split-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* Dots inside layout */
.testi-split-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.testi-split-dot {
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.testi-split-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}



/* â”€â”€ TESTIMONIALS â€” mobile â”€â”€ */


/* â”€â”€ CASE STUDIES â€” mobile â”€â”€ */
@media(max-width:860px) {
  .case-studies-section { padding: 60px 0; }

  .case-studies-viewport {
    height: auto !important;
    min-height: 0;
    overflow: visible;
    position: relative;
  }

  /* Stack cards vertically â€” show only active, hide prev/next */
  .case-studies-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    transform: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden;
    transition: opacity 0.4s ease;
  }

  .case-studies-card.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    height: auto !important;
  }

  .case-studies-card-inner {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    border-radius: 16px;
    overflow: hidden;
  }

  .case-studies-card-img {
    width: 100% !important;
    height: 220px !important;
    min-width: 0 !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .case-studies-card-content {
    padding: 24px 20px 28px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .case-studies-card-title {
    font-size: 22px !important;
  }

  /* Navigation dots as primary control */
  .cs-nav-wrap { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
}


/* â”€â”€ FAQ SECTION â”€â”€ */
#faq {
  padding: 120px 0;
  background: var(--bg);
}

/* Centered intro header above the 2-col grid */
.faq-intro-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.faq-intro-header .eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.faq-intro-header .section-title {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.faq-intro-header p {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 32px;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--heading);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all .3s ease;
}

.faq-cta-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* 2-column accordion grid */
.faq-accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .faq-accordion-grid {
    grid-template-columns: 1fr;
  }

  .faq-intro-header .section-title {
    font-size: 36px;
  }
}

/* Card styles */
.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, .35);
  background: var(--surface-2);
}

[data-theme="light"] .faq-item:hover {
  border-color: rgba(109, 40, 217, .35);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 58, 237, .14);
  background: var(--surface-2);
}

[data-theme="light"] .faq-item.open {
  box-shadow: 0 8px 32px rgba(109, 40, 217, .12);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 26px 28px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.35;
}

.faq-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .35s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon-box {
  background: var(--accent);
  color: #fff;
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.16, 1, .3, 1);
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a-inner {
  padding: 0 28px 28px;
  font-size: 15.5px;
  color: var(--text-sec);
  line-height: 1.75;
  font-weight: 400;
}

/* â”€â”€ ABOUT SECTION â”€â”€ */
#about {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .04;
  pointer-events: none;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-left-col,
.about-img-wrap {
  position: relative;
}

.about-main-img {
  width: 100%;
  aspect-ratio: 4/5;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 650px;
}

.about-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-float-card {
  position: absolute;
  bottom: 60px;
  right: -20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  z-index: 2;
}

.afc-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 36px;
  color: var(--heading);
  line-height: 1;
}

.afc-lbl {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.about-features-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.afeature {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all .3s ease;
  position: relative;
}

.afeature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
  border-radius: 12px;
}

.afeature>* {
  position: relative;
  z-index: 1;
}

.afeature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
}

.afeature:hover::before {
  opacity: 1;
}

.afeature-icon {
  font-size: 18px;
  margin-bottom: 12px;
  display: block;
  color: var(--accent);
}

.afeature-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  color: var(--heading);
  margin-bottom: 6px;
}

.afeature-desc {
  font-size: 14px;
  color: var(--text-sec);
  font-weight: 400;
  line-height: 1.6;
}

.about-mv-inline {
  margin-top: 24px;
}

.about-mv-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-mv-inline p {
  font-size: 15px;
  color: var(--text-sec);
  font-weight: 400;
  line-height: 1.7;
}

/* â”€â”€ INNER PAGE CONTENT SECTIONS â”€â”€ */
.content-section {
  padding: 100px 0;
}

.content-section.bg-alt {
  background: var(--surface-1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
  border-radius: 14px;
}

.feature-card h3+p,
.feature-card .icon-box {
  pointer-events: none;
}

.feature-card>* {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-h);
  z-index: 10;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .icon-box {
  width: 48px;
  height: 48px;
  background: var(--surface-3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all .3s;
}

.feature-card:hover .icon-box {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3);
}

.feature-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 18px;
  color: var(--heading);
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.65;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  height: auto;
  max-height: 650px;
}

.two-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Results/Stats Cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.result-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.result-lbl {
  font-size: 16px;
  color: var(--text-sec);
  font-weight: 500;
}

/* Tech Stack Strip */
.tech-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}

.tech-strip-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.tech-strip img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(.6);
  transition: filter .25s;
}

.tech-strip img:hover {
  filter: none;
}

/* â”€â”€ PORTFOLIO CASE STUDY â”€â”€ */
.case-hero {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 64px;
  border: 1px solid var(--border);
}

.case-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, transparent 60%);
}

.case-hero-label {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: calc(100% - 80px);
}

.case-client-logo {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 140px;
  height: 140px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: var(--shadow-h);
}

.case-client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.case-hero-label h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: #fff;
  line-height: 1.1;
  margin-top: 16px;
  margin-bottom: 12px;
}

.case-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.case-meta-item {
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-meta-item i {
  color: var(--accent);
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
}

.case-content h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 16px;
  margin-top: 40px;
}

.case-content h2:first-child {
  margin-top: 0;
}

.case-content p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 16px;
}

.case-sidebar .sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  position: sticky;
  top: 100px;
}

.sidebar-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  color: var(--heading);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-list li {
  font-size: 16px;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-list li i {
  color: var(--accent);
  width: 14px;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.case-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  transition: color .2s;
}

.case-nav a:hover {
  color: var(--accent);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Blog Post */
.article-hero {
  padding: 160px 0 60px;
  background: var(--surface-1);
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-meta span {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--heading);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.article-intro {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.8;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 0;
}

.article-body h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 26px;
  color: var(--heading);
  margin: 48px 0 16px;
}

.article-body h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  color: var(--heading);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: var(--surface-1);
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}

.article-body blockquote p {
  font-style: italic;
  font-size: 18px;
  color: var(--text-pri);
  margin: 0;
}

.author-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 60px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 64px;
  height: 64px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 18px;
  color: var(--heading);
  margin-bottom: 4px;
}

.author-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.6;
}

.related-posts {
  padding: 80px 0;
  background: var(--surface-1);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-decoration: none;
  transition: all .3s ease;
  display: block;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
}

.related-cat {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.related-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 10px;
}

.related-card p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* â”€â”€ RESPONSIVE â”€â”€ */
@media(max-width:1024px) {

  .services-grid,
  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .about-grid,
  .why-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .case-body {
    grid-template-columns: 1fr;
  }

  .case-sidebar {
    order: -1;
  }

  .case-sidebar .sidebar-card {
    position: static;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:768px) {

  .services-grid,
  .ai-grid,
  .products-grid,
  .feature-grid,
  .case-studies-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 12px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-line {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:480px) {

  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ LIGHT THEME PREMIUM OVERRIDES â”€â”€ */
[data-theme="light"] .service-card,
[data-theme="light"] .ai-card {
  background: #FFFFFF;
}

[data-theme="light"] .step {
  background: transparent;
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .ai-card:hover {
  background: #FAFAFD;
}

[data-theme="light"] .stats-grid {
  background: #FFFFFF;
  box-shadow: 0 2px 16px rgba(13, 13, 26, .06);
}

[data-theme="light"] .stat-item {
  border-right-color: #E4E4EF;
}

[data-theme="light"] .case-studies-card,
[data-theme="light"] .product-card,
[data-theme="light"] .team-card,
[data-theme="light"] .faq-item {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(13, 13, 26, .06);
}

[data-theme="light"] .nav-cta-btn,
[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 28px rgba(109, 40, 217, .25);
}

[data-theme="light"] .marquee-logo {
  filter: grayscale(1) brightness(.3);
}

[data-theme="light"] .ai-tech-logos img {
  filter: grayscale(1) brightness(.4);
}

/* â”€â”€ THREE PILLARS (HOMEPAGE) â”€â”€ */
.pillar-section {
  padding: 100px 0;
  background: var(--bg);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 52px;
}

@media (max-width: 991px) {
  .pillar-grid {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }
}

.pillar-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  /* Default subtle border, accent on hover */
}

/* Each card shows its own accent color as border */
.pillar-card.p-marketing { border-color: rgba(124, 58, 237, 0.35); }
.pillar-card.p-saas      { border-color: rgba(16, 185, 129, 0.35); }
.pillar-card.p-ai        { border-color: rgba(59, 130, 246, 0.35); }

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--panel-accent-rgb, 109, 40, 217), .07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  border-radius: 14px;
  z-index: -1;
}

.pillar-icon,
.pillar-desc,
.pillar-action {
  pointer-events: none;
}

.pillar-card .pillar-title a {
  color: inherit;
  text-decoration: none;
}

.pillar-card>* {
  position: relative;
  z-index: 1;
}

.pillar-card.p-marketing {
  --panel-accent: #7C3AED;
  --panel-accent-rgb: 124, 58, 237;
}

.pillar-card.p-saas {
  --panel-accent: #10B981;
  --panel-accent-rgb: 16, 185, 129;
}

.pillar-card.p-ai {
  --panel-accent: #3B82F6;
  --panel-accent-rgb: 59, 130, 246;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(var(--panel-accent-rgb, 109, 40, 217), 0.15);
  border-color: var(--panel-accent, var(--accent));
  z-index: 10;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 56px;
  height: 65px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--panel-accent, var(--accent));
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  background: var(--panel-accent, var(--accent));
  border-color: var(--panel-accent, var(--accent));
  color: #fff;
  box-shadow: 0 0 24px rgba(var(--panel-accent-rgb, 109, 40, 217), 0.35);
}

.pillar-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pillar-action {
  font-weight: 600;
  font-size: 16px;
  color: var(--panel-accent, var(--accent));
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.pillar-card:hover .pillar-action {
  opacity: 1;
}

.pillar-action i {
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-action i {
  /* removed transform */
}

/* â”€â”€ STRETCHED LINK UTILITY â”€â”€ */
.stretched-link {
  display: inline-block;
}

.stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  /* absolutely on top */
  pointer-events: auto;
}

@media (max-width: 768px) {
  .stretched-link::after {
    display: none;
  }
}

/* Ensure headings/links in cards aren't blue and are on top */
.service-title,
.product-title,
.ai-title,
.pillar-title,
.feature-card h3,
.case-studies-title,
.case-studies-body,
.blog-title,
.blog-content {
  position: relative;
  z-index: 5;
  /* higher than default siblings (icons, thumbs) z-index:1 */
}

.service-title a,
.product-title a,
.ai-title a,
.pillar-title a,
.feature-card h3 a,
.case-studies-title a,
.blog-title a {
  color: inherit;
  text-decoration: none;
}

/* â”€â”€ CARD EXPLORE TRIGGER â”€â”€ */
.card-explore {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  pointer-events: none;
  /* Let parent click pass through or handle explicitly */
}

.pillar-card:hover .card-explore,
.product-card:hover .card-explore,
.feature-card:hover .card-explore,
.service-card:hover .card-explore {
  opacity: 1;
  transform: translateX(0);
}

.card-explore i {
  font-size: 14px;
  transition: transform 0.3s;
}

.pillar-card:hover .card-explore i,
.product-card:hover .card-explore i,
.feature-card:hover .card-explore i,
.service-card:hover .card-explore i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .card-explore {
    position: static;
    margin-top: 16px;
    opacity: 1;
    transform: none;
    justify-content: flex-end;
  }
}

/* â”€â”€ CARD ACTION TOP (Expanding Arrow) â”€â”€ */
.card-action-top {
  position: absolute;
  top: 32px;
  right: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--panel-accent, var(--accent));
  height: 52px;
  /* Set to pillar-icon height for middle-alignment */
  width: 40px;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.product-card .card-action-top {
  top: 24px;
  right: 24px;
  height: 46px;
  /* Set to product-icon height */
}

.card-action-top .action-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.4s ease;
  padding-right: 8px;
}

.card-action-top .action-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  transition: transform 0.3s;
}

/* Hover State */
.pillar-card:hover .card-action-top,
.product-card:hover .card-action-top,
.feature-card:hover .card-action-top,
.service-card:hover .card-action-top,
.ai-card:hover .card-action-top {
  width: 120px;
  color: var(--panel-accent, var(--accent-h));
}

.pillar-card:hover .card-action-top .action-text,
.product-card:hover .card-action-top .action-text,
.feature-card:hover .card-action-top .action-text,
.service-card:hover .card-action-top .action-text,
.ai-card:hover .card-action-top .action-text {
  opacity: 1;
  transform: translateX(0);
}

.pillar-card:hover .card-action-top .action-icon i,
.product-card:hover .card-action-top .action-icon i,
.feature-card:hover .card-action-top .action-icon i,
.service-card:hover .card-action-top .action-icon i,
.ai-card:hover .card-action-top .action-icon i {
  transform: translateX(2px);
}

/* Mobile Static State */
@media (max-width: 768px) {
  .card-action-top {
    width: auto;
    padding: 0 16px;
    height: 36px;
    border-radius: 10px;
  }

  .card-action-top .action-text {
    opacity: 1;
    transform: none;
    padding-left: 0;
    margin-right: 8px;
  }

  .card-action-top .action-icon {
    width: auto;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CASE STUDIES PAGE â€” Grid Layout (not carousel)
   These override the carousel styles for the listing page
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

@media (max-width: 1100px) {
  .case-studies-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .case-studies-grid { grid-template-columns: 1fr; }
}

/* Grid cards must NOT inherit carousel transforms */
.case-studies-grid .case-studies-card {
  flex: none !important;
  width: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-studies-grid .case-studies-card:hover {
  /* No movement on hover per user request */
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-h);
}

.case-studies-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
}

.case-studies-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.case-studies-grid .case-studies-card:hover .case-studies-thumb img {
  /* No scale on hover per user request */
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.case-studies-grid .case-studies-card:hover .thumb-overlay {
  opacity: 1;
}

.thumb-overlay-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}

.thumb-overlay-link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.case-studies-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-studies-cat {
  margin-bottom: 10px;
}

.case-studies-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.case-studies-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.case-studies-title a:hover { color: var(--accent); }

.case-studies-desc {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}

.case-studies-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
/* Fix for inner pages 4-step diagram */
.steps-wrap:has(.process-grid) .steps-line::after {
  animation: sequential-flow-4 12s linear infinite;
  width: 33.33%;
  background-size: 100% 100%;
}

@keyframes sequential-flow-4 {
  0%, 12.5% { transform: translateX(-100%); opacity: 0; }
  13% { transform: translateX(-100%); opacity: 1; }
  25%, 37.5% { transform: translateX(0%); opacity: 1; }
  50%, 62.5% { transform: translateX(100%); opacity: 1; }
  75%, 87.5% { transform: translateX(200%); opacity: 1; }
  99%, 100% { transform: translateX(300%); opacity: 0; }
}
/* â”€â”€ PORTFOLIO INFINITE SCROLL â”€â”€ */
.portfolio-section {
  padding: 120px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.portfolio-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Gradient edge fades */
.port-fade-left,
.port-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}

.port-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 20%, transparent);
}

.port-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 20%, transparent);
}

/* Base track setup */
.portfolio-marquee-track {
  display: flex;
  width: fit-content;
}

.portfolio-marquee-inner {
  display: flex;
  gap: 30px;
  padding: 0 10px;
}

/* Animations */
.track-left .portfolio-marquee-inner {
  animation: marquee-left 80s linear infinite;
}

.track-right .portfolio-marquee-inner {
  animation: marquee-right 90s linear infinite;
}

/* Pause whole wrap on hover */
/* Each track pauses independently on hover */
.portfolio-marquee-track:hover .portfolio-marquee-inner {
  animation-play-state: paused;
}

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

@keyframes marquee-right {
  0%   { transform: translateX(calc(-50% - 10px)); }
  100% { transform: translateX(0); }
}

/* Card aesthetics */
.port-item {
  width: 510px;
  height: 345px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  cursor: pointer;
}

[data-theme="light"] .port-item {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.port-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px rgba(124,58,237,0.18);
  z-index: 2;
}

.port-img-wrap {
  width: 100%;
  height: 100%;
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  transition: background-position 8s cubic-bezier(0.25, 1, 0.5, 1);
}

.port-item:hover .port-img-wrap {
  background-position: bottom center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .port-item {
    width: 340px;
    height: 230px;
  }

  .port-fade-left,
  .port-fade-right {
    width: 60px;
  }
}

/* â”€â”€ SERVICE PACKAGES â”€â”€ */
.packages-section {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}

.packages-section > .container {
  position: relative;
  z-index: 1;
}

.packages-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.packages-header-left .section-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-top: 12px;
  margin-bottom: 16px;
}

.packages-header-left .font-accent {
  color: var(--accent);
}

.packages-header-desc {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 620px;
}

.packages-browser {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.packages-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.packages-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.packages-sidebar-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px 14px;
}

.packages-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-sec);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.packages-nav-btn:hover {
  background: var(--surface-2);
  color: var(--heading);
}

.packages-nav-btn.active {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--heading);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.12);
}

.packages-nav-icon {
  width: 38px;
  height: 38px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.packages-nav-btn.active .packages-nav-icon {
  background: var(--accent);
  color: #fff;
}

.packages-nav-text {
  flex: 1;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.packages-nav-arrow {
  font-size: 15px;
  opacity: 0.45;
}

.packages-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.packages-panel {
  display: none;
  position: relative;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  animation: packages-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.packages-panel.active {
  display: flex;
  flex: 1;
  min-height: 100%;
}

@keyframes packages-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.packages-popular {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 100px;
  padding: 6px 12px;
}

.packages-panel-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-right: 120px;
}

.packages-panel-icon {
  width: 76px;
  height: 76px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.14);
  color: var(--accent);
  font-size: 28px;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.18);
  flex-shrink: 0;
}

.packages-panel-title {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 10px;
}

.packages-panel-desc {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 640px;
}

.packages-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.packages-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  color: var(--text-sec);
}

.packages-feature i {
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.packages-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.packages-panel-cta {
  padding: 14px 28px;
  font-size: 15px;
  white-space: nowrap;
}

.packages-feature-count {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

[data-theme="light"] .packages-panel,
[data-theme="light"] .packages-sidebar {
  background: #fff;
}

@media (max-width: 991px) {
  .packages-browser {
    grid-template-columns: 1fr;
  }

  .packages-sidebar {
    overflow-x: auto;
    padding: 14px;
    scrollbar-width: none;
  }

  .packages-sidebar::-webkit-scrollbar {
    display: none;
  }

  .packages-sidebar-label {
    display: none;
  }

  .packages-sidebar-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .packages-nav-btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 14px;
  }

  .packages-nav-arrow {
    display: none;
  }

  .packages-panel-top {
    padding-right: 0;
    flex-direction: column;
  }

  .packages-popular {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
  }

  .packages-features {
    grid-template-columns: 1fr;
  }

  .packages-panel-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .packages-panel-cta {
    width: 100%;
    text-align: center;
  }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE FIXES â€” Case Studies + Testimonials
   Tested against actual HTML structure.
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Case Studies: mobile â”€â”€
   Base: cards are position:absolute inside a 520px viewport.
   Fix: switch to normal flow â€” hide inactive, show active. */
@media(max-width:860px) {
  .case-studies-viewport {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 0px !important;
  }

  .case-studies-track-infinite {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100% !important;
    padding: 0 20px 30px;
    margin: 0;
    gap: 12px;
  }

  .case-studies-track-infinite::-webkit-scrollbar { display: none; }

  .case-studies-card {
    display: block !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 85% !important; /* Forces peeking on mobile */
    flex-shrink: 0 !important;
    height: auto !important;
    transform: none !important;
    scroll-snap-align: center;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .case-studies-card-inner {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    border-radius: 16px;
    overflow: hidden;
  }

  .case-studies-card-img {
    width: 100% !important;
    height: 180px !important;
    min-width: 0 !important;
    border-radius: 0 !important;
  }

  .case-studies-card-content {
    padding: 24px 20px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Nav dots hidden or centered - keeping simplified for peeking layout */
  .case-studies-nav { display: none !important; }
}

/* â”€â”€ Testimonials: mobile â”€â”€ */
@media(max-width:860px) {
  .testi-split-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .testi-left {
    padding: 48px 20px 32px !important;
    text-align: center;
  }

  .testi-left .section-title { font-size: 24px !important; margin-bottom: 20px; }

  .testi-right {
    padding: 105px 32px 85px !important;
    min-height: 280px;
    position: relative;
    background: var(--surface-1); /* Solid back for mobile */
    border-radius: 20px;
    overflow: hidden; /* Prevent text bleed */
  }

  .testi-backdrop { display: none !important; }

  .testi-split-body {
    font-size: 15px !important;
    line-height: 1.75 !important;
    width: 100% !important;
    word-break: break-word;
  }

  .testi-dots-block {
     position: relative !important;
     bottom: auto !important;
     left: auto !important;
     margin-top: 35px;
     display: flex !important;
     justify-content: center;
  }

  .testi-huge-quote-block {
    top: 15px !important;
    left: 20px !important;
    transform: scale(0.7);
    transform-origin: top left;
  }

  .testi-split-body {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  .testi-split-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-top: 20px;
  }

  .testi-dots-block {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex;
    gap: 8px;
  }

  .testi-split-dot {
    width: 12px !important;
    height: 12px !important;
  }
}
