/* ============================================================
   Cipher Consulting — Clean Modern Design System
   Rebuilt 2026 · Inter + Space Grotesk
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-2: #06b6d4;
  --brand-ink: #0b2545;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  /* darker cyan end so gradient-clipped TEXT still meets WCAG AA */
  --grad-text: linear-gradient(135deg, #2563eb 0%, #0e7490 100%);
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.12));

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-tint: #eef3fb;
  --bg-deep: #0a1729;
  --ink: #0c1a2b;
  --ink-2: #1e2c3f;
  --text: #4a5a6f;
  --muted: #616e85;
  --line: #e7ecf3;
  --line-2: #dde4ee;
  --white: #ffffff;

  /* Effects */
  --r-xs: 10px;
  --r-sm: 14px;
  --r: 18px;
  --r-lg: 26px;
  --pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.04);
  --shadow-sm: 0 4px 14px rgba(11,27,69,.06);
  --shadow: 0 14px 40px rgba(11,27,69,.10);
  --shadow-lg: 0 30px 70px rgba(11,27,69,.16);
  --ring: 0 0 0 4px rgba(37,99,235,.18);

  --container: 1180px;
  --section-y: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

::selection { background: rgba(37,99,235,.18); }

/* Consistent, on-brand keyboard focus ring (matches marketing site) */
:focus-visible {
  outline: 3px solid rgba(37,99,235,.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Keep the Calendly badge out of the chatbot's bottom-right corner */
.calendly-badge-widget { left: 20px !important; right: auto !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-soft); }
.pricing-section { background: var(--bg-soft); }
.photo-videography-section { background: var(--bg); }

/* Generic centered section heading (services / past work / contact) */
.section > .container > h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 14px;
}
.section > .container > h2 + .service-grid,
.section > .container > h2 + .project-showcase { margin-top: 48px; }

/* Reusable, scannable section header (eyebrow + title + subtitle) */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--grad-soft);
  border: 1px solid rgba(37,99,235,.18);
  padding: 7px 16px; border-radius: var(--pill);
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-sub { font-size: 1.06rem; color: var(--text); }

/* ---------- Buttons ---------- */
.btn,
.hero-cta,
.pricing-contact-btn,
.cta-button,
.contact-btn,
.work-pdf-btn,
.website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary,
.hero-cta,
.pricing-contact-btn,
.cta-button {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37,99,235,.30);
}
.btn-primary:hover,
.hero-cta:hover,
.pricing-contact-btn:hover,
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37,99,235,.40);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* ---------- Loading Screen ---------- */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader { display: flex; gap: 10px; }
.loader .circle {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad);
  animation: loaderBounce 1s var(--ease) infinite;
}
.loader .circle:nth-child(2) { animation-delay: .12s; }
.loader .circle:nth-child(3) { animation-delay: .24s; }
.loader .circle:nth-child(4) { animation-delay: .36s; }
@keyframes loaderBounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(-14px); opacity: 1; }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo-text { display: flex; align-items: center; gap: 13px; }
.header-logo-bg {
  width: 46px; height: 46px; border-radius: 13px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.header-logo-bg .logo { width: 100%; height: 100%; object-fit: cover; }
.header-text { display: flex; flex-direction: column; }
.brand-title {
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em;
  display: flex; gap: 6px; line-height: 1;
}
.brand-cipher { color: var(--ink); }
.brand-consulting {
  color: var(--brand-700);
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-tagline { font-size: .74rem; color: var(--muted); font-weight: 500; margin-top: 3px; letter-spacing: .01em; }

.nav-bar { display: flex; margin-left: auto; }
.header-cta { padding: 11px 22px; font-size: .92rem; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  font-size: .94rem; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--pill);
  transition: color .2s, background .2s;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--brand); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--brand); }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line);
  background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span {
  width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: 75px; left: 0; right: 0; z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
}
.mobile-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-nav .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 18px 22px; }
.mobile-nav .nav-link { padding: 14px 16px; border-radius: 12px; font-size: 1rem; }
.mobile-nav .nav-link:hover { background: var(--bg-tint); }
.mobile-nav .nav-link::after { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 0;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(6,182,212,.10), transparent 55%),
    var(--bg);
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(12,26,43,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,26,43,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(700px 420px at 50% 18%, #000, transparent 80%);
  mask-image: radial-gradient(700px 420px at 50% 18%, #000, transparent 80%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 860px; margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand-700);
  background: var(--grad-soft);
  border: 1px solid rgba(37,99,235,.18);
  padding: 8px 16px; border-radius: var(--pill);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-grad {
  color: var(--brand-700);
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--text);
  max-width: 660px; margin: 0 auto 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 30px; }
.hero-cta { padding: 16px 32px; font-size: 1rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  margin-bottom: 56px;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.hero-badges i { color: var(--brand); }

/* Legacy hero illustration / float imgs (kept hidden — replaced by tech strip) */
.hero-illustration { display: none; }
.hero-float-img { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }

/* Tech marquee strip */
.tech-strip {
  position: relative; z-index: 2;
  margin-top: 8px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent, rgba(246,249,252,.6));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}
.tech-track {
  display: flex; align-items: center; gap: 56px;
  width: max-content;
  animation: techScroll 42s linear infinite;
}
.tech-track:hover { animation-play-state: paused; }
.tech-track .hero-float-img {
  width: auto; height: 34px;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s, opacity .3s, transform .3s;
}
.tech-track .hero-float-img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.08); }
@keyframes techScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Services (flip cards)
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-tile { perspective: 1400px; min-height: 320px; }
.service-card-inner {
  position: relative; width: 100%; height: 100%; min-height: 320px;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}
.service-tile.flipped .service-card-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .service-tile:hover .service-card-inner { transform: rotateY(180deg); }
}

.service-card-front, .service-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.service-card-front { align-items: flex-start; justify-content: center; }
.service-card-back { transform: rotateY(180deg); justify-content: center; }

.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.4rem; color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 22px rgba(37,99,235,.28);
  margin-bottom: 20px;
}
.service-card-front h3, .service-card-back h3 {
  font-size: 1.18rem; margin-bottom: 12px; color: var(--ink);
}
.service-card-front p { color: var(--text); font-size: .96rem; }
.flip-indicator {
  margin-top: auto; padding-top: 18px;
  font-size: .78rem; font-weight: 600; color: var(--brand);
  letter-spacing: .02em;
}
.service-card-back ul { display: flex; flex-direction: column; gap: 9px; }
.service-card-back li {
  position: relative; padding-left: 26px;
  font-size: .9rem; color: var(--text); line-height: 1.4;
}
.service-card-back li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 1px; font-size: .72rem; color: var(--brand);
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-header-section { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.pricing-badge-top, .team-badge {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--grad-soft);
  border: 1px solid rgba(37,99,235,.18);
  padding: 7px 16px; border-radius: var(--pill);
  margin-bottom: 18px;
}
.pricing-title, .team-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 14px;
}
.pricing-subtitle, .team-subtitle {
  font-size: 1.06rem; color: var(--text);
}
.pricing-divider, .team-divider {
  width: 64px; height: 4px; border-radius: 4px;
  background: var(--grad);
  margin: 24px auto 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  transform: translateY(-8px);
}
.pricing-card.featured:hover { transform: translateY(-14px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 18px; border-radius: var(--pill);
  box-shadow: 0 8px 20px rgba(37,99,235,.35);
}
.pricing-header { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pricing-icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 17px; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--brand);
  background: var(--grad-soft);
  border: 1px solid rgba(37,99,235,.16);
}
.pricing-header h3 { font-size: 1.35rem; margin-bottom: 14px; }
.pricing-range { margin-bottom: 10px; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.price-contact, .price-custom {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--brand-700);
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* hide any leftover numeric price fragments if present */
.price-from, .price-separator, .price-to { display: none; }
.pricing-note { font-size: .9rem; color: var(--muted); }

.pricing-body { display: flex; flex-direction: column; flex: 1; }
.pricing-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .93rem; color: var(--text);
}
.pricing-features li i { color: var(--brand); margin-top: 3px; font-size: .85rem; flex-shrink: 0; }
.pricing-features li strong { color: var(--ink); }
.pricing-support {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: .84rem; color: var(--muted);
}
.pricing-support strong { color: var(--ink-2); }

.pricing-cta { text-align: center; margin-top: 46px; }
.pricing-disclaimer { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.pricing-contact-btn { padding: 16px 34px; font-size: 1rem; }

/* ============================================================
   Team / Meet the Team
   ============================================================ */
.team-header-section { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.photo-video-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 540px;
  margin: 0 auto;
}
.team-member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.team-member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-member-image { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-tint); }
.team-member-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.team-member-card:hover .team-member-image img { transform: scale(1.05); }
.team-member-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,23,41,.78), transparent 55%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
  opacity: 0; transition: opacity .3s;
}
.team-member-card:hover .team-member-overlay { opacity: 1; }
.team-social-links { display: flex; gap: 12px; }
.team-social-link {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: var(--brand);
  font-size: 1rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s, color .2s;
}
.team-social-link:hover { transform: translateY(-3px); background: var(--brand); color: #fff; }
.team-member-info { padding: 26px 26px 30px; }
.team-member-info h3 { font-size: 1.45rem; margin-bottom: 5px; }
.team-member-role { color: var(--brand); font-weight: 600; font-size: .96rem; margin-bottom: 2px; }
.team-member-org { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.team-member-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.skill-badge {
  font-size: .78rem; font-weight: 500;
  padding: 6px 13px; border-radius: var(--pill);
  background: var(--bg-tint); color: var(--brand-700);
  border: 1px solid rgba(37,99,235,.12);
}
.team-member-bio p { font-size: .94rem; color: var(--text); margin-bottom: 18px; }
.team-member-stats { display: flex; gap: 14px; }
.team-stat {
  flex: 1; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 12px;
}
.team-stat .stat-number {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem; font-weight: 700; color: var(--ink);
}
.team-stat .stat-label { font-size: .78rem; color: var(--muted); }
.team-member-highlights { display: flex; flex-direction: column; gap: 11px; }
.highlight-item { display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--text); }
.highlight-item i { color: var(--brand); margin-top: 3px; flex-shrink: 0; }

.photo-video-cta {
  text-align: center; margin-top: 50px;
  padding: 38px 24px;
  background: var(--grad-soft);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: var(--r-lg);
}
.photo-video-cta p { font-size: 1.08rem; color: var(--ink-2); font-weight: 500; margin-bottom: 18px; }

/* ============================================================
   Past Work
   ============================================================ */
.project-showcase { margin-top: 14px; }
.category-filter, .portfolio-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2);
  padding: 10px 20px; border-radius: var(--pill);
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(37,99,235,.3); }

.projects-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.project-grid-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.project-grid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-grid-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.project-grid-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-grid-card:hover .project-grid-image img { transform: scale(1.06); }
.project-grid-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,23,41,.55), transparent 60%);
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 14px;
  opacity: 0; transition: opacity .3s;
}
.project-grid-card:hover .project-grid-overlay { opacity: 1; }
.project-grid-link {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s, color .2s;
}
.project-grid-link:hover { transform: translateY(-2px); background: var(--brand); color: #fff; }
.project-grid-content { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-grid-category {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--bg-tint);
  padding: 5px 11px; border-radius: var(--pill);
}
.project-grid-title { font-size: 1.18rem; }
.project-grid-description { font-size: .92rem; color: var(--text); }

/* Detail view */
.project-container { margin-top: 10px; }
.project-detail-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.back-to-grid-btn, .project-nav-detail-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2);
  padding: 11px 20px; border-radius: var(--pill);
  transition: all .2s var(--ease);
}
.back-to-grid-btn:hover, .project-nav-detail-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.project-navigation-detail { display: flex; gap: 10px; }

.project-slide { display: none; }
.project-slide.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.project-flex-group {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
}
.work-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px;
  box-shadow: var(--shadow-sm);
}
.work-item h3 { font-size: 1.5rem; margin-bottom: 14px; }
.work-item > p { color: var(--text); margin-bottom: 20px; }
.website-link {
  padding: 10px 20px; font-size: .9rem;
  background: var(--grad-soft); color: var(--brand-700);
  border: 1px solid rgba(37,99,235,.18);
  margin: 0 8px 10px 0;
}
.website-link:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.project-details { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.project-details li {
  position: relative; padding-left: 28px;
  font-size: .94rem; color: var(--text); line-height: 1.55;
}
.project-details li::before {
  content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 2px; color: var(--brand); font-size: .9rem;
}
.project-details li strong { color: var(--ink); }
.project-images {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 22px;
}
.project-images figure { margin: 0; }
.project-image {
  width: 100%; border-radius: var(--r-sm);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.project-images figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }

.work-stats-panel {
  position: sticky; top: 100px;
  background: var(--bg-deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.work-stats-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 14px;
}
.work-stats-summary { font-size: .94rem; color: rgba(255,255,255,.78); line-height: 1.6; }
.work-stats-divider { height: 1px; background: rgba(255,255,255,.14); margin: 22px 0; }
.work-stats-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.work-stats-list li { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: rgba(255,255,255,.85); }
.work-stat-icon { font-size: 1.2rem; }
.work-stat-value {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff;
}
.work-pdf-btn { background: var(--grad); color: #fff; width: 100%; box-shadow: 0 10px 24px rgba(37,99,235,.3); }
.work-pdf-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37,99,235,.4); }
.tech-stack {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.6;
}
.tech-stack strong { color: var(--brand-2); }

.project-counter {
  text-align: center; margin-top: 30px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--muted);
}
.project-counter .current-project { color: var(--brand); font-size: 1.1rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact-section { background: var(--bg-soft); }
.contact-content { text-align: center; max-width: 980px; margin: 0 auto; }
.contact-content > h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.contact-intro { font-size: 1.08rem; color: var(--text); max-width: 660px; margin: 0 auto 48px; }
.contact-methods {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; margin-bottom: 50px;
}
.contact-method {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-method:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 17px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 22px rgba(37,99,235,.28);
}
.contact-details h3 { font-size: 1.22rem; margin-bottom: 8px; }
.contact-details p { font-size: .94rem; color: var(--text); margin-bottom: 18px; }
.contact-btn { font-size: .94rem; }
.contact-btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,.3); }
.contact-btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.contact-btn.secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.contact-benefits {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 38px 32px;
  box-shadow: var(--shadow-sm); margin-bottom: 40px;
}
.contact-benefits h3 { font-size: 1.4rem; margin-bottom: 26px; }
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.benefit-item {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 18px;
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
}
.benefit-item i { color: var(--brand); font-size: 1.1rem; flex-shrink: 0; }

.social-links { display: flex; justify-content: center; }
.social-icons { display: flex; gap: 14px; }
.social-link {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-2);
  color: var(--ink); font-size: 1.15rem;
  box-shadow: var(--shadow-xs);
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.social-link:hover { transform: translateY(-3px); background: var(--grad); color: #fff; border-color: transparent; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.72); padding: 64px 0 30px; }
.footer-content {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-section h3 { color: #fff; font-size: 1.35rem; margin-bottom: 14px; }
.footer-section h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-section p { font-size: .94rem; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social .social-link {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 1rem;
}
.footer-social .social-link:hover { background: var(--grad); border-color: transparent; }
.contact-info p { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-info i { color: var(--brand-2); }
.footer-links-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: .94rem; transition: color .2s, padding .2s; }
.footer-link:hover { color: var(--brand-2); padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 24px; font-size: .86rem; color: rgba(255,255,255,.5); }

/* ============================================================
   Chatbot Widget
   ============================================================ */
.chatbot-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
  width: 380px; max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chatbot-widget.minimized { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.9) translateY(10px); }
.chatbot-container { display: flex; flex-direction: column; height: 540px; max-height: calc(100vh - 80px); }
.chatbot-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: var(--grad); color: #fff;
}
.chatbot-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.5); flex-shrink: 0; }
.chatbot-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.chatbot-info { flex: 1; }
.chatbot-info h4 { color: #fff; font-size: 1rem; margin-bottom: 2px; }
.chatbot-info p { font-size: .8rem; color: rgba(255,255,255,.85); }
.chatbot-close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center;
  background: rgba(255,255,255,.15); transition: background .2s;
}
.chatbot-close-btn:hover { background: rgba(255,255,255,.28); }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-soft); }
.chatbot-message { display: flex; gap: 10px; max-width: 90%; }
.chatbot-message.bot-message { align-self: flex-start; }
.chatbot-message.user-message { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.message-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.message-bubble {
  padding: 12px 15px; border-radius: 16px; font-size: .9rem; line-height: 1.5;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs); white-space: pre-line;
}
.user-message .message-bubble { background: var(--grad); color: #fff; border-color: transparent; }
.chatbot-action-buttons { margin-top: 10px; }
.chatbot-schedule-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-soft); color: var(--brand-700);
  border: 1px solid rgba(37,99,235,.2);
  padding: 9px 14px; border-radius: var(--pill); font-size: .82rem; font-weight: 600;
  transition: all .2s;
}
.chatbot-schedule-btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.typing-indicator { display: inline-flex; gap: 4px; padding: 12px 15px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chatbot-contact-form { padding: 0 18px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chatbot-contact-form .form-group { margin: 0; }
.form-input, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  font-size: .9rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--brand); box-shadow: var(--ring); }
.form-textarea { resize: vertical; min-height: 70px; }
.contact-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff; font-weight: 600;
  padding: 12px; border-radius: 12px; font-size: .9rem;
}

.chatbot-input-container { padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.chatbot-input-wrapper { display: flex; align-items: center; gap: 10px; }
.chatbot-input {
  flex: 1; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: var(--pill);
  font-size: .9rem; background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.chatbot-input:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--brand); background: #fff; box-shadow: var(--ring); }
.chatbot-send-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: .95rem;
  box-shadow: 0 8px 18px rgba(37,99,235,.3); transition: transform .2s;
}
.chatbot-send-btn:hover { transform: scale(1.06); }

.chatbot-toggle-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 1490;
  width: 64px; height: 64px; border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(37,99,235,.42);
  transition: transform .25s var(--ease);
  animation: tglPulse 2.6s ease-in-out infinite;
}
.chatbot-toggle-btn:hover { transform: scale(1.08); }
.toggle-avatar { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: var(--grad); }
.toggle-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.toggle-notification {
  position: absolute; top: -2px; right: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .7rem;
  display: grid; place-items: center; border: 2px solid #fff;
}
@keyframes tglPulse { 0%,100% { box-shadow: 0 14px 34px rgba(37,99,235,.42); } 50% { box-shadow: 0 14px 44px rgba(37,99,235,.62); } }

/* ============================================================
   Secret Modal
   ============================================================ */
.secret-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; }
.secret-modal.active, .secret-modal.show { display: flex; animation: fadeUp .3s var(--ease); }
.secret-modal-overlay { position: absolute; inset: 0; background: rgba(10,23,41,.55); backdrop-filter: blur(6px); }
.secret-modal-content {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--r-lg);
  padding: 44px 38px; max-width: 420px; width: calc(100% - 40px);
  text-align: center; box-shadow: var(--shadow-lg);
}
.secret-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.4rem; color: var(--muted); background: var(--bg-soft);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.secret-modal-close:hover { background: var(--line); color: var(--ink); }
.secret-modal-icon { font-size: 3rem; margin-bottom: 16px; }
.secret-modal-title { font-size: 1.6rem; margin-bottom: 12px; }
.secret-modal-message { color: var(--text); font-size: .98rem; }

/* ============================================================
   Animations / Utilities
   ============================================================ */
.flip-flash .service-card-inner { animation: flipHint .8s var(--ease); }
@keyframes flipHint { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(18deg); } }

[data-aos] { transition-timing-function: var(--ease); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .project-flex-group { grid-template-columns: 1fr; }
  .work-stats-panel { position: static; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-bar { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .photo-video-team-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-container { padding: 12px 18px; }
  .brand-tagline { display: none; }
  .mobile-nav { top: 71px; }
  .service-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .work-item { padding: 24px; }
  .hero-badges { gap: 10px 16px; }
  .chatbot-widget { bottom: 16px; right: 16px; }
  .chatbot-toggle-btn { bottom: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .service-tile:hover .service-card-inner { transform: none; }
}
