:root {
  --primary: #4d9cde;
  --secondary: #23265d;
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --glass: rgba(255, 255, 255, 0.85);
  --container: 1280px;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);

  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --accent-color: #4d9cde;
  --accent-hover: #23265d;
  --accent-soft: #eff6ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-slate: #475569;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #4d9cde;
  --brand-700: #23265d;
  --brand-900: #23265d;
  --glow-blue: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
  --shadow-card-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 35px -8px rgba(37, 99, 235, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  /* Directional & Logical Variables */
  --arrow-dir: 1;
  --origin-start: left;
  --gradient-end: right;
  --font-heading: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Cairo', system-ui, sans-serif;
  --font-latin: 'Plus Jakarta Sans', 'Cairo', sans-serif;
}

/* RTL & Arabic Typography Adaptations */
[dir="rtl"],
body.rtl,
:lang(ar) {
  --arrow-dir: -1;
  --origin-start: right;
  --gradient-end: left;
  --font-heading: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.error-code,
.error-title {
  font-family: var(--font-heading);
}

/* layout */
.container {
  max-width: var(--container);
  margin: 8px auto;
  padding: 0 24px
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px
}

.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%)
}

.logo {
  height: 75px;
}

.logo-small {
  height: 100px;
}

/* nav links */
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  margin: 0 8px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.desktop-only {
  display: none
}

/* mobile toggle */
.mobile-toggle {
  background: none;
  border: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.mobile-toggle .menu-icon {
  width: 28px;
  height: 28px;
  object-fit: contain
}

/* mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .36s;
  padding: 0 24px;
  border-top: 1px solid var(--border)
}

.mobile-menu.open {
  max-height: 480px;
  padding: 12px 24px
}

.mobile-link {
  display: block;
  padding: 10px 0;
  color: var(--fg);
  text-decoration: none
}

/* ==========================================================================
   POLYLANG LANGUAGE SWITCHER
   ========================================================================== */
.language-switcher-wrapper {
  display: inline-flex;
  align-items: center;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(36, 38, 93, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header.scrolled .language-switcher {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(36, 38, 93, 0.04);
}

.language-switcher li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
}

.language-switcher li a,
.language-switcher li.current-lang span,
.language-switcher li.current-lang a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  line-height: 1;
}

.language-switcher li.current-lang a,
.language-switcher li.current-lang span {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(77, 156, 222, 0.35);
}

.language-switcher li:not(.current-lang) a:hover {
  color: var(--fg);
  background: rgba(77, 156, 222, 0.08);
}

.language-switcher img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
}

/* Language switcher in mobile menu */
.mobile-menu .language-switcher-wrapper {
  padding: 12px 0 16px;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.mobile-menu .language-switcher {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.mobile-menu .language-switcher li {
  flex: 1;
}

.mobile-menu .language-switcher li a,
.mobile-menu .language-switcher li.current-lang span {
  width: 100%;
  justify-content: center;
  padding: 8px 14px;
}

/* Arrow RTL flip */
.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

[dir="rtl"] .arrow,
body.rtl .arrow {
  transform: scaleX(-1);
}

/* hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(77, 156, 222, 0.04), transparent 50%)
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 80px 0;
  text-align: center;
  max-width: 900px
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(36, 38, 93, 0.06);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px
}

.hero-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.02;
  margin: 8px 0;
  color: var(--fg)
}

.hero-title .accent {
  background: linear-gradient(90deg, var(--primary), #7b61d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero-desc {
  color: var(--muted);
  max-width: 700px;
  margin: 14px auto;
  font-size: 18px
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(77, 156, 222, 0.3);
}

.primary-btn:hover:not(:disabled) {
  filter: brightness(.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77, 156, 222, 0.4);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.outline-btn {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.outline-btn:hover:not(:disabled) {
  background: rgba(77, 156, 222, 0.04);
  border-color: var(--primary);
  color: var(--primary);
}

.outline-white {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.outline-white:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.large {
  padding: 14px 22px;
  font-size: 16px
}

.full {
  width: 100%
}

/* hero stats */
.hero-stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-top: 28px;
  color: var(--muted)
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg)
}

.stat-label {
  font-size: 13px;
  color: var(--muted)
}

/* sections */
.section {
  padding: 56px 0
}

.section-head .eyebrow {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700
}

.section-head h2 {
  font-size: 28px;
  margin: 10px 0 8px
}

.lead {
  color: var(--muted);
  max-width: 720px;
  margin: 0
}

.text-center .lead {
  margin: 0 auto;
}

/* grid */
.grid {
  display: grid;
  gap: 20px
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

@media(max-width:900px) {
  .desktop-only {
    display: none
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr
  }

  .nav-center {
    position: static;
    transform: none
  }

  .mobile-toggle {
    display: block
  }

  .desktop-only {
    display: none
  }
}

@media(min-width:900px) {
  .desktop-only {
    display: flex
  }

  .mobile-toggle {
    display: none
  }
}

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  color: #111;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.card a {
  text-decoration: none;
  color: #111;
}

.card a:hover {
  text-decoration: none;
}

/* read more links */
.read-more:hover {
  transform: translateX(calc(4px * var(--arrow-dir, 1)));
}





.service-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(77, 156, 222, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg)
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0
}

.tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.tags span {
  background: rgba(36, 38, 93, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--secondary)
}

/* project visuals */
.project-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  border-radius: 14px;
  margin-bottom: 16px;
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.p-visual-1 {
  background: linear-gradient(135deg, #4d9cde 0%, rgba(77, 156, 222, 0.2) 100%);
  color: #fff;
}

.p-visual-2 {
  background: linear-gradient(135deg, #9966ff 0%, rgba(153, 102, 255, 0.2) 100%);
  color: #fff;
}

.p-visual-3 {
  background: linear-gradient(135deg, #24265d 0%, rgba(36, 38, 93, 0.3) 100%);
  color: #fff;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  text-align: start;
}

.project-card:hover .project-visual {
  transform: scale(1.02) rotateZ(calc(-2deg * var(--arrow-dir, 1)));
}

.project-card:hover .project-visual::after {
  opacity: 1;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 10px 0;
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: var(--primary);
}

.project-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* PAGE HERO */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, rgba(77, 156, 222, 0.04) 0%, rgba(153, 102, 255, 0.02) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-hero .hero-title {
  font-size: 42px;
  font-weight: 700;
  margin: 16px 0;
  color: var(--fg);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
  margin-top: 16px;
  line-height: 1.6;
}

/* CTA */
.section-cta {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--secondary) 0%, #2e3266 100%);
  color: #fff;
}

.cta-card {
  background: transparent;
  padding: 48px;
  border-radius: 18px;
  text-align: center;
}

.cta-card h2 {
  margin-bottom: 12px;
  font-size: 32px;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-size: 16px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-left {
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(calc(4px * var(--arrow-dir, 1)));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  align-items: center;
}

/* FORM ELEMENTS */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg);
  transition: all 0.25s ease;
  margin-bottom: 8px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 156, 222, 0.1);
  background: rgba(77, 156, 222, 0.02);
}

textarea {
  resize: vertical;
  font-family: inherit;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-inline-end: 32px;
  padding-inline-start: 14px;
}

[dir="rtl"] select,
body.rtl select {
  background-position: left 12px center;
}

/* utilities */
.text-center {
  text-align: center
}

.text-sm {
  font-size: 14px
}

.font-medium {
  font-weight: 500
}

.uppercase {
  text-transform: uppercase
}

.tracking-widest {
  letter-spacing: 1px
}

.muted {
  color: var(--muted);
  font-size: 14px
}

/* flex utilities */
.flex {
  display: flex
}

.flex-col {
  flex-direction: column
}

/* small */
@media(max-width:720px) {
  .hero-title {
    font-size: 28px
  }

  .nav {
    padding: 10px 0
  }

  .container {
    padding: 0 16px
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }

  /* Mobile center alignment - section titles and cards */
  .hero-content {
    text-align: center;
  }

  .section-head {
    text-align: center;
  }

  .section-head.text-center {
    text-align: center;
  }

  .section-head p {
    margin: 12px auto 0 auto;
  }

  .eyebrow {
    display: block;
    text-align: center;
    margin-bottom: 12px;
  }

  .lead {
    margin: 12px auto 0 auto;
  }

  /* Center-align cards on mobile */
  .reason {
    align-items: center;
    text-align: center;
  }

  .reason-icon {
    margin: 0 auto 16px auto;
  }

  .reason h4 {
    text-align: center;
  }

  .reason p {
    text-align: center;
  }

  .service-card {
    text-align: center;
  }

  .service-card .card-icon {
    margin: 0 auto 16px auto;
  }

  .service-card h3 {
    text-align: center;
  }

  .service-card p {
    text-align: center;
  }

  .service-card .tags {
    justify-content: center;
  }

  .service-card .service-read-more {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .project-card {
    text-align: center;
  }

  .project-card h3 {
    text-align: center;
  }

  .project-card p {
    text-align: center;
  }

  .project-card .tags {
    justify-content: center;
  }

  .project-card .project-read-more {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .blog-card {
    text-align: center;
  }

  .blog-card h3 {
    text-align: center;
  }

  .blog-card p {
    text-align: center;
  }

  .blog-card .meta {
    justify-content: center;
  }

  .blog-card .read-more {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .card-icon {
    margin: 0 auto 16px auto;
  }

  .proj-icon {
    margin: 0 auto 16px auto;
  }

  .trusted-by {
    text-align: center;
  }

  .trusted-logos {
    justify-content: center;
  }

  .process-line {
    grid-template-columns: 1fr;
  }

  .proc-col {
    text-align: center;
    align-items: center;
  }

  .proc-col::before {
    margin: 0 auto 12px auto;
    text-align: center;
  }

  .proc-col strong {
    text-align: center;
  }

  .proc-col p {
    text-align: center;
  }

  /* Footer center alignment on mobile */
  .footer-inner {
    text-align: center;
    align-items: center;
    flex-direction: column;
  }

  .footer-left {
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }

  .footer-links {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .footer-links>div {
    text-align: center;
  }

  .footer-links h4 {
    text-align: center;
  }

  .footer-links a {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .links-inline {
    justify-content: center;
    display: flex;
    gap: 16px;
  }

  /* Hide "احجز استشارة" button in header on mobile */
  .bp-header-actions .bp-btn-nav {
    display: none !important;
  }

  /* Mobile menu button styling - white text */
  .bp-mobile-menu .bp-btn-primary {
    color: #ffffff !important;
    background: var(--primary);
  }

  /* Fix active menu item accent color on mobile */
  .bp-mobile-menu .mobile-link.is-active,
  .bp-mobile-menu .mobile-link[aria-current="page"] {
    color: var(--primary) !important;
    font-weight: 600;
  }
}


/* Trusted section */
:root {
  --trusted-gap: 28px;
  --logo-height: 56px;
  /* base logo height on large screens */
  --logo-muted: 0.64;
  /* grayscale opacity */
}

/* Section padding / alignment */
.trusted {
  padding: 36px 0;
}

.trusted-row {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Heading */
.trusted-item {
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  flex: 0 0 auto;
  font-size: 16px;
  letter-spacing: 0.6px;
}

/* Logos container - default: horizontal flow, centered vertically */
.trusted-logos {
  display: flex;
  gap: var(--trusted-gap);
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 60%;
  min-width: 220px;
  overflow: hidden;
  /* hide scrollbar if using scroll or animation */
  position: relative;
}

/* old trusted-logo styles removed - using logo-item instead */

/* Responsive: stacked on small screens */
@media (max-width:900px) {
  .trusted-row {
    gap: 14px;
    align-items: center;
  }

  .trusted-logos {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    padding-bottom: 6px;
  }

  .trusted-logo {
    scroll-snap-align: center;
    padding: 8px;
  }

  :root {
    --logo-height: 48px;
  }

  /* hide native scrollbar (thin) but keep accessibility */
  .trusted-logos {
    scrollbar-width: thin;
  }

  .trusted-logos::-webkit-scrollbar {
    height: 8px;
  }

  .trusted-logos::-webkit-scrollbar-thumb {
    background: rgba(36, 38, 93, 0.08);
    border-radius: 999px;
  }
}

/* Compact on very small screens */
@media (max-width:420px) {
  :root {
    --logo-height: 36px;
    --trusted-gap: 14px;
  }

  .trusted {
    padding: 22px 0;
  }

  .trusted-item {
    font-size: 14px;
  }
}

/* Trusted-by section */
.trusted-by {
  background-color: #F9FAFB;
  padding: 3.25rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.03);
}

.trusted-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.75rem;
  animation: fadeInUp 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered entrance for 4 logos */
.logo-item {
  animation: fadeInUp 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.logo-item:nth-child(1) {
  animation-delay: 100ms;
}

.logo-item:nth-child(2) {
  animation-delay: 200ms;
}

.logo-item:nth-child(3) {
  animation-delay: 300ms;
}

.logo-item:nth-child(4) {
  animation-delay: 400ms;
}

/* Logos row */
.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* each logo item - smooth professional animations */
.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, box-shadow;
  outline: none;
}

.logo-item:focus {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(77, 156, 222, 0.12);
}

/* the images — fixed max height for 4 logos */
.logo-item img {
  display: block;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
  backface-visibility: hidden;
}

/* Professional hover effect */
.logo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(77, 156, 222, 0.12);
}

.logo-item:hover img,
.logo-item:focus img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* Optimized responsive for 4 logos */
@media (min-width: 640px) {
  .trusted-logos {
    gap: 3rem;
  }
}

@media (min-width: 992px) {
  .trusted-logos {
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    gap: 4rem;
  }

  .logo-item {
    padding: 1.25rem;
  }

  .logo-item img {
    max-height: 72px;
  }
}

/* nice horizontal scrollbar hiding for modern browsers */
.trusted-logos::-webkit-scrollbar {
  height: 6px;
}

.trusted-logos::-webkit-scrollbar-thumb {
  background: rgba(77, 156, 222, 0.15);
  border-radius: 999px;
  transition: background 200ms ease;
}

.trusted-logos::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 156, 222, 0.25);
}

/* Accessibility improvements */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Better responsive grid for all screen sizes */
@media (max-width:768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width:480px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-hero .hero-title {
    font-size: 24px;
  }

  .nav-center {
    position: static;
    transform: none;
    margin: 16px 0;
  }
}

/* WHY BLUEPOINT SECTION */
.section-head {
  margin-bottom: 40px;
}

.section-head.text-center {
  text-align: center;
}

.section-head p {
  margin: 12px 0 0 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.section-head.text-center p {
  margin: 12px auto 0 auto;
}

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

.reason {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

.reason-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.reason h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 12px 0;
}

.reason p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* HOW WE WORK SECTION */
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  counter-reset: step-counter;
}

.process-line::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 2px;
  background: linear-gradient(to var(--gradient-end, right), var(--primary), transparent);
  transform: translateY(-40px);
}

.proc-col {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(135deg, rgba(77, 156, 222, 0.04) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  counter-increment: step-counter;
}

.proc-col::before {
  content: counter(step-counter, decimal-leading-zero);
  font-weight: 700;
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 12px;
}

.proc-col:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(77, 156, 222, 0.12);
  transform: translateY(-4px);
}

.proc-col strong {
  font-weight: 700;
  color: var(--fg);
  font-size: 16px;
  margin-bottom: 8px;
}

.proc-col p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* RESPONSIVE FOR HOW WE WORK */
@media (max-width: 992px) {
  .process-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .proc-col {
    padding: 20px;
  }
}

/* PORTFOLIO & BLOG SECTION STYLING */

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fff 0%, rgba(77, 156, 222, 0.02) 100%);
  border: 1px solid rgba(77, 156, 222, 0.1);
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
  text-align: start;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 3px;
  background: linear-gradient(to var(--gradient-end, right), var(--primary), #9966ff);
  transform: scaleX(0);
  transform-origin: var(--origin-start, left);
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(77, 156, 222, 0.15);
  border-color: rgba(77, 156, 222, 0.2);
}

.blog-card .meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.blog-card .meta::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  margin-inline-end: 4px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: var(--primary);
}

.blog-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
}

.blog-card .read-more::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.blog-card:hover .read-more {
  gap: 10px;
  color: var(--primary);
}

.blog-card:hover .read-more::after {
  width: 100%;
}

/* Portfolio section background */
#portfolio {
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

#portfolio .section-head {
  text-align: center;
  margin-bottom: 48px;
}

#portfolio .section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}

/* MOBILE FIXES */
/* Header logo responsive size */
@media(max-width: 900px) {
  .logo {
    height: 80px;
  }
}

@media(max-width: 600px) {
  .logo {
    height: 70px;
  }
}

/* Blog grid responsive */
@media(max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 404 ERROR PAGE */
.error-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.error-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(77, 156, 222, 0.03), transparent 60%);
  pointer-events: none;
}

.error-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  padding: 40px 24px;
}

.error-code {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary), #7b61d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.error-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  margin: 16px 0;
  color: var(--fg);
}

.error-desc {
  color: var(--muted);
  font-size: 18px;
  margin: 16px 0 32px 0;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.error-actions .btn {
  min-width: 160px;
}

.error-animation {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, rgba(77, 156, 222, 0.1), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
}

.error-animation.one {
  top: -100px;
  inset-inline-start: -100px;
  animation-delay: 0s;
}

.error-animation.two {
  bottom: -80px;
  inset-inline-end: -80px;
  animation-delay: 1s;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.sitemap-hint {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.sitemap-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.sitemap-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.sitemap-links a:hover {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .error-code {
    font-size: 80px;
  }

  .error-title {
    font-size: 28px;
  }

  .error-desc {
    font-size: 16px;
  }

  .error-animation {
    display: none;
  }
}

/* Footer responsive - mobile centered */
@media(max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .footer-left {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-left .logo-small {
    margin: 0 auto 12px auto;
  }

  .footer-left p {
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .footer-links>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-links h4 {
    text-align: center;
  }

  .footer-links a {
    text-align: center;
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .footer-bottom .links-inline {
    justify-content: center;
    display: flex;
    gap: 16px;
  }
}

@media(max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   STITCH DESIGN SYSTEM — header, hero, tokens, lower-section harmony
   ========================================================================== */
html.scroll-smooth {
  scroll-behavior: smooth;
}

.font-latin {
  font-family: var(--font-latin);
}

.bp-body,
body {
  /* Additional mobile styles for single pages */
}

/* Single Service Page - Related Services centered on mobile */
@media(max-width:720px) {
  .related-services-section .service-card {
    text-align: center;
  }

  .related-services-section .service-card .card-icon {
    margin: 0 auto 16px auto;
  }

  .related-services-section .service-card h3 {
    text-align: center;
  }

  .related-services-section .service-card h3 a {
    text-align: center;
  }

  .related-services-section .service-card p {
    text-align: center;
  }

  .related-services-section .service-card .tags {
    justify-content: center;
  }

  .related-services-section .service-card .service-read-more {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Single project related section */
  .related-projects-section .project-card {
    text-align: center;
  }

  .related-projects-section .project-card h3 {
    text-align: center;
  }

  .related-projects-section .project-card p {
    text-align: center;
  }

  .related-projects-section .project-card .tags {
    justify-content: center;
  }

  .related-projects-section .project-card .project-read-more {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* Single Project Page - Fix image and buttons */
@media(max-width:720px) {
  .single-project-hero-inner {
    flex-direction: column;
    gap: 24px;
  }

  .single-project-visual-wrap {
    width: 100%;
    max-width: 100%;
  }

  .single-project-thumb,
  .single-project-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .single-project-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .single-project-hero-meta {
    width: 100%;
    text-align: center;
  }

  .single-project-title {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .single-project-quick-info {
    justify-content: center;
    flex-wrap: wrap;
  }

  .single-project-tags {
    justify-content: center;
  }

  /* Fix buttons layout on mobile */
  .single-project-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .single-project-actions .bp-btn {
    width: 100%;
    margin: 0 !important;
    justify-content: center;
    text-align: center;
  }

  .single-project-actions .bp-btn svg {
    margin-inline-start: 4px;
  }

  /* Related projects centered */
  .related-projects-section .project-card {
    text-align: center;
  }
}

/* Desktop layout for single project buttons */
@media(min-width:721px) {
  .single-project-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .single-project-actions .bp-btn {
    flex: 0 0 auto;
  }
}

/* Consultation Page - Hide the three consultation info points */
.bp-card-list {
  display: none !important;
}

/* Additional mobile fixes for header menu */
@media(max-width:720px) {

  /* Ensure mobile menu items show active state */
  .bp-mobile-menu .mobile-link {
    position: relative;
    padding: 12px 16px;
    transition: all 0.3s ease;
  }

  .bp-mobile-menu .mobile-link.is-active::before,
  .bp-mobile-menu .mobile-link[aria-current="page"]::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px 0 0 2px;
  }

  [dir="ltr"] .bp-mobile-menu .mobile-link.is-active::before,
  [dir="ltr"] .bp-mobile-menu .mobile-link[aria-current="page"]::before {
    right: auto;
    left: 0;
    border-radius: 0 2px 2px 0;
  }

  /* Services page - center align sections below hero */
  body.page-template-page-services .section:not(.page-hero) .section-head,
  body.page-id-services .section:not(.page-hero) .section-head {
    text-align: center;
  }

  body.page-template-page-services .service-card,
  body.page-id-services .service-card {
    text-align: center;
  }

  /* Portfolio page - center align sections below hero */
  body.page-template-page-portfolio .section:not(.page-hero) .section-head,
  body.page-id-portfolio .section:not(.page-hero) .section-head {
    text-align: center;
  }

  body.page-template-page-portfolio .project-card,
  body.page-id-portfolio .project-card {
    text-align: center;
  }

  /* Blog page - center align sections below hero */
  body.blog .section:not(.page-hero) .section-head,
  body.home .section:not(.page-hero) .section-head {
    text-align: center;
  }

  body.blog .blog-card,
  body.home .blog-card {
    text-align: center;
  }

  body.blog .blog-card .meta,
  body.home .blog-card .meta {
    justify-content: center;
  }

  body.blog .blog-card .read-more,
  body.home .blog-card .read-more {
    justify-content: center;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

::selection {
  background: var(--brand-600);
  color: #fff;
}

.bp-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
}

.bp-orb-1 {
  top: -10%;
  right: 15%;
  width: 650px;
  height: 650px;
  background: rgba(219, 234, 254, 0.6);
}

.bp-orb-2 {
  top: 25%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: rgba(224, 242, 254, 0.5);
}

.bp-orb-3 {
  top: 65%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: rgba(238, 242, 255, 0.7);
}

@media (max-width: 768px) {
  .bp-orb {
    display: none !important;
  }
}

.bg-grid-pattern {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to left, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
}

.text-gradient,
.hero-title .accent {
  background: linear-gradient(135deg, #0284c7 0%, #4d9cde 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  border-color: #93c5fd;
  transform: translateY(-4px);
}

/* ---- Header (Stitch) ---- */
.bp-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  padding: 16px 16px 8px;
}

.bp-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.bp-brand .custom-logo,
.bp-brand img {
  height: 60px;
  width: auto;
}

.bp-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 1.5px;
  background: linear-gradient(to top right, #23265d, #4d9cde, #06b6d4);
  box-shadow: 0 1px 8px rgba(59, 130, 246, 0.2);
}

.bp-mark-inner {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bp-mark-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  transform: scale(1.25);
  transition: transform 0.7s ease;
}

.bp-brand:hover .bp-mark-orbit {
  transform: scale(1.25) rotate(45deg);
}

.bp-mark-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4d9cde;
  animation: bp-pulse 2s ease-in-out infinite;
}

.bp-mark-letters {
  position: absolute;
  bottom: 2px;
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 800;
  color: #23265d;
  letter-spacing: 0.16em;
}

.bp-brand-text {
  display: flex;
  flex-direction: column;
}

.bp-brand-name {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}

.bp-brand:hover .bp-brand-name {
  color: #4d9cde;
}

.bp-brand-sub {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-top: -2px;
}

.bp-nav {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bp-nav li {
  list-style: none;
  margin: 0;
}

.bp-nav a,
.bp-nav .nav-link {
  color: #475569;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 0;
  position: relative;
  background: none;
  border-radius: 0;
}

.bp-nav a::after,
.bp-nav .nav-link::after {
  display: none;
}

.bp-nav a:hover,
.bp-nav .current-menu-item>a,
.bp-nav .is-active {
  color: #4d9cde;
}

.bp-nav .current-menu-item>a::after,
.bp-nav .is-active::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: #4d9cde;
  border-radius: 999px;
}

.bp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.bp-btn-primary,
.bp-btn.primary-btn,
.btn.primary-btn {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
  border-color: transparent;
}

.bp-btn-primary:hover,
.btn.primary-btn:hover:not(:disabled) {
  background: var(--brand-700);
  filter: none;
  color: #fff;
}

.bp-btn-nav {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.bp-btn-nav:active,
.bp-btn-lg:active {
  transform: scale(0.97);
}

.bp-btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  width: 100%;
}

.bp-btn-secondary {
  padding: 16px 28px;
  font-size: 1rem;
  width: 100%;
  color: #1e293b;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bp-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.bp-btn-full {
  width: 100%;
  padding: 10px 16px;
}

.bp-icon-flip {
  transform: scaleX(-1);
}

.bp-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.bp-mobile-menu {
  display: none;
  max-width: 80rem;
  margin: 8px auto 0;
  border-radius: 16px;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.bp-mobile-menu.open {
  display: flex;
}

.bp-mobile-menu a,
.bp-mobile-menu .mobile-link,
.bp-mobile-menu li a {
  display: block;
  padding: 8px 4px;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
}

.bp-mobile-menu li {
  list-style: none;
}

.bp-mobile-menu .bp-btn {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .bp-nav {
    display: flex;
  }

  .bp-menu-toggle {
    display: none;
  }

  .bp-mobile-menu,
  .bp-mobile-menu.open {
    display: none !important;
  }

  .bp-btn-lg,
  .bp-btn-secondary {
    width: auto;
  }
}

@keyframes bp-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

@keyframes bp-ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ---- Hero (Stitch) ---- */
.bp-hero {
  position: relative;
  z-index: 1;
  padding: 144px 16px 80px;
  overflow: hidden;
}

.bp-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.bp-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(191, 219, 254, 0.8);
  color: #23265d;
  font-size: 0.8125rem;
  margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
  justify-content: center;
}

.bp-live {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
}

.bp-live-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3b82f6;
  opacity: 0.75;
  animation: bp-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.bp-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4d9cde;
}

.bp-status-text {
  font-weight: 700;
  color: #1e293b;
}

.bp-year {
  font-weight: 800;
  color: #4d9cde;
  -webkit-text-fill-color: #4d9cde;
}

.bp-status-sep {
  color: #cbd5e1;
}

.bp-status-free {
  color: #23265d;
  font-size: 0.75rem;
  font-weight: 600;
}

.bp-hero-title {
  font-size: clamp(2rem, 6vw, 4.4rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 auto 24px;
  max-width: 56rem;
}

.bp-hero-title .text-gradient,
.bp-hero-title .accent {
  display: block;
  margin-top: 4px;
}

.bp-hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #475569;
  max-width: 42rem;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.bp-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.bp-metrics {
  position: relative;
  overflow: hidden;
  max-width: 56rem;
  margin: 0 auto;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-card-soft);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bp-metrics-glow {
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: 288px;
  height: 128px;
  background: rgba(219, 234, 254, 0.6);
  filter: blur(48px);
  pointer-events: none;
}

.bp-metrics .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: #0f172a;
}

.bp-metric-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.bp-metric-plus {
  color: #4d9cde;
  margin-inline-end: 2px;
}

.bp-metric-accent {
  color: #4d9cde;
}

.bp-metrics .stat-num {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.bp-metrics .stat-label {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 700;
}

.bp-industry {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  padding: 0 16px 8px;
}

.bp-industry-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bp-industry-copy {
  text-align: center;
}

.bp-industry-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.bp-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  overflow: visible;
  mask-image: none;
}

.bp-pills span {
  font-family: var(--font-latin);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.bp-pills span:hover {
  background: #eff6ff;
  color: #23265d;
}

@media (max-width: 767px) {
  .bp-industry-inner {
    padding: 20px 16px;
    gap: 18px;
  }

  .bp-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
    width: 100%;
  }

  .bp-pills span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
  }

  .bp-pills span:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 640px) {
  .bp-hero {
    padding: 176px 24px 112px;
  }

  .bp-hero-cta {
    flex-direction: row;
  }

  .bp-metrics {
    padding: 32px;
    gap: 32px;
  }
}

@media (min-width: 768px) {
  .bp-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .bp-metrics .stat+.stat {
    border-inline-start: 1px solid #f1f5f9;
    padding-inline-start: 16px;
  }

  .bp-industry-inner {
    flex-direction: row;
  }

  .bp-industry-copy {
    text-align: start;
    flex-shrink: 0;
  }

  .bp-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .bp-pills span {
    width: auto;
    display: inline-block;
  }
}

/* ---- Harmonize existing lower sections with Stitch tokens ---- */
.section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.bg-secondary-light {
  background: rgba(248, 250, 252, 0.72);
}

.section-head .eyebrow {
  color: var(--brand-700);
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  padding: 4px 14px;
  border-radius: 999px;
  display: inline-block;
  letter-spacing: 0.12em;
}

.section-head h2,
.section-head h3 {
  color: var(--text-main);
  font-weight: 800;
}

.card,
.service-card,
.project-card,
.blog-card,
.reason,
.proc-col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card-soft);
  color: var(--text-main);
}

.card:hover,
.service-card:hover,
.project-card:hover,
.blog-card:hover,
.reason:hover,
.proc-col:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.tags span {
  background: #f1f5f9;
  color: var(--brand-700);
}

.section-cta {
  background: linear-gradient(180deg, #1e40af 0%, #23265d 100%);
}

.cta-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--text-slate);
  position: relative;
  z-index: 1;
}

.footer h4 {
  color: var(--text-main);
}

.footer .muted,
.footer-links a,
.footer-bottom a {
  color: var(--text-muted);
}

.page-hero {
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg-primary) 100%);
  padding-top: 140px;
}

body:not(.home) main {
  padding-top: 0;
}

body:not(.home) .page-hero {
  padding-top: 148px;
}

body:not(.home) main>.section:first-child,
body:not(.home) main>article:first-child {
  padding-top: 148px;
}

/* ==========================================================================
   INNER PAGES — Stitch-aligned templates
   ========================================================================== */
.bp-page-hero,
.page-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, var(--bg-primary) 100%);
  padding: 148px 0 56px;
  border-bottom: 1px solid var(--border);
}

.bp-page-hero .container,
.page-hero .container {
  max-width: var(--container);
}

.page-hero .hero-label,
.hero-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.page-hero .hero-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin: 12px 0 0;
  max-width: 40ch;
}

.page-hero .hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-top: 16px;
  line-height: 1.8;
}

.bp-prose {
  max-width: 48rem;
  margin-inline: auto;
  color: var(--text-slate);
  line-height: 1.85;
  font-size: 1.0625rem;
}

.bp-prose h2,
.bp-prose h3 {
  color: var(--text-main);
}

.bp-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.bp-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card-soft);
  padding: 28px;
}

.bp-form-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-slate);
  margin-bottom: 6px;
}

.bp-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.bp-bento .card:nth-child(1) {
  grid-column: span 3;
}

.bp-bento .card:nth-child(2) {
  grid-column: span 3;
}

.bp-bento .card:nth-child(3),
.bp-bento .card:nth-child(4),
.bp-bento .card:nth-child(5),
.bp-bento .card:nth-child(6) {
  grid-column: span 2;
}

.bp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-600);
  margin-bottom: 16px;
}

.bp-card-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #f1f5f9;
}

.bp-card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-slate);
  margin: 6px 0;
}

.bp-card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-600);
  flex-shrink: 0;
}

.bp-jobs {
  display: grid;
  gap: 16px;
}

.bp-job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}

.bp-job h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.bp-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bp-job-meta span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-700);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 999px;
}

.bp-filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0 8px;
}

.bp-filter-bar .filter {
  background: #fff;
  color: var(--text-slate);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.bp-filter-bar .filter.active,
.bp-filter-bar .filter:hover {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 32rem;
}

.search-form input[type="search"] {
  flex: 1;
  margin-bottom: 0;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-navigation a {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 600;
}

.pagination-wrapper .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  text-decoration: none;
}

.pagination-wrapper .current {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}

.error-section {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
}

@media (max-width: 900px) {

  .bp-bento,
  .bp-bento .card:nth-child(1),
  .bp-bento .card:nth-child(2),
  .bp-bento .card:nth-child(3),
  .bp-bento .card:nth-child(4),
  .bp-bento .card:nth-child(5),
  .bp-bento .card:nth-child(6) {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .page-hero .hero-title {
    max-width: none;
  }

  .bp-job {
    align-items: flex-start;
  }
}

/* ==========================================================================
   CONTACT & CONSULTATION HERO GRID — Desktop & Mobile Responsive
   ========================================================================== */
.contact-hero-grid,
.page-hero .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
}

.contact-hero .hero-content {
  display: flex;
  flex-direction: column;
}

.contact-quick-info {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-info-val {
  font-size: 0.98rem;
  color: var(--text-main);
  font-weight: 600;
}

.contact-info-val.email-link {
  color: var(--brand-600);
  text-decoration: none;
  direction: ltr;
  display: inline-block;
  transition: color 0.2s ease;
}

.contact-info-val.email-link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.contact-whatsapp-box {
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
}

.contact-whatsapp-hint {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.whatsapp-cta-btn {
  background-color: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 11px 22px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition: all 0.25s ease;
  text-decoration: none;
}

.whatsapp-cta-btn:hover {
  background-color: #20bd5a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {

  .contact-hero-grid,
  .page-hero .grid-2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-hero .hero-content {
    order: 1;
  }

  .contact-form-wrapper {
    order: 2;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 130px;
    padding-bottom: 40px;
  }

  .contact-hero-grid,
  .page-hero .grid-2 {
    gap: 28px;
  }

  .contact-form-wrapper {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .contact-info-card {
    padding: 16px;
  }

  .contact-whatsapp-box {
    padding: 16px;
  }

  .whatsapp-cta-btn {
    width: 100% !important;
  }
}

/* Mobile WebKit & Performance Optimization (Eliminates Safari & Chrome iOS scroll lag) */
@media (max-width: 768px) {
  .header.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .language-switcher {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95);
  }

  .glass-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.97) !important;
  }

  #hero-canvas,
  .hero-canvas {
    display: none !important;
  }
}

/* ==========================================================================
   PROJECT GALLERY & LIGHTBOX SHOWCASE
   ========================================================================== */
.bp-project-gallery-section {
  padding: 64px 0;
  position: relative;
  z-index: 2;
}

.bp-project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.bp-gallery-item {
  position: relative;
}

.bp-gallery-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  text-decoration: none;
  cursor: pointer;
}

.bp-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  border-color: #93c5fd;
}

.bp-gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8fafc;
}

.bp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-gallery-card:hover .bp-gallery-thumb img {
  transform: scale(1.05);
}

.bp-gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 25%, rgba(15, 23, 42, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  pointer-events: none;
}

.bp-gallery-card:hover .bp-gallery-hover-overlay,
.bp-gallery-card:focus-visible .bp-gallery-hover-overlay {
  opacity: 1;
}

.bp-gallery-zoom-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
  transition: transform 0.3s ease;
}

.bp-gallery-card:hover .bp-gallery-zoom-badge {
  transform: translateY(0);
}

.bp-gallery-zoom-badge svg {
  color: var(--primary, #4d9cde);
}

.bp-gallery-caption-tag {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Responsive Gallery Layout */
@media (max-width: 992px) {
  .bp-project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .bp-project-gallery-section {
    padding: 44px 0;
  }

  .bp-project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .bp-gallery-card {
    border-radius: 12px;
  }

  .bp-gallery-thumb {
    aspect-ratio: 4 / 3;
  }

  .bp-gallery-hover-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.6) 100%);
    padding: 10px;
  }

  .bp-gallery-zoom-badge {
    padding: 4px 8px;
    font-size: 0.725rem;
    transform: translateY(0);
  }

  .bp-gallery-zoom-badge span {
    display: none;
  }

  .bp-gallery-caption-tag {
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .bp-project-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bp-gallery-thumb {
    aspect-ratio: 16 / 10;
  }

  .bp-gallery-zoom-badge span {
    display: inline;
  }
}

/* Lightbox Modal */
body.bp-lightbox-open {
  overflow: hidden !important;
}

.bp-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-lightbox-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.bp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.bp-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  box-sizing: border-box;
  pointer-events: none;
}

.bp-lightbox-dialog > * {
  pointer-events: auto;
}

.bp-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 16px;
  flex-shrink: 0;
}

.bp-lightbox-counter {
  color: #cbd5e1;
  font-family: var(--font-latin);
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.bp-lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bp-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.bp-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: 0;
}

.bp-lightbox-nav {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bp-lightbox-nav:hover {
  background: var(--primary, #4d9cde);
  border-color: var(--primary, #4d9cde);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(77, 156, 222, 0.4);
}

.bp-lightbox-image-container {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
}

.bp-lightbox-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary, #4d9cde);
  border-radius: 50%;
  animation: bp-spin 0.8s linear infinite;
  position: absolute;
}

@keyframes bp-spin {
  to { transform: rotate(360deg); }
}

.bp-lightbox-img {
  max-width: 90vw;
  max-height: calc(85vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-lightbox-img.is-ready {
  opacity: 1;
  transform: scale(1);
}

.bp-lightbox-caption {
  margin-top: 14px;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  max-width: 760px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Lightbox Mobile Responsiveness */
@media (max-width: 768px) {
  .bp-lightbox-dialog {
    padding: 16px 12px;
  }

  .bp-lightbox-stage {
    gap: 8px;
  }

  .bp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .bp-lightbox-prev {
    right: 8px;
  }

  .bp-lightbox-next {
    left: 8px;
  }

  .bp-lightbox-img {
    max-width: 96vw;
    max-height: calc(80vh - 60px);
    border-radius: 8px;
  }

  .bp-lightbox-caption {
    font-size: 0.825rem;
    padding: 6px 14px;
    margin-top: 10px;
  }
}