
:root {
  /* Modern neutral theme: soft light background with teal → violet accents */

  
  --bg: #f7f9fc;                /* refined pearl-blue background */
  --bg-elev: #ffffff;           /* crisp elevated surface */
  --text: #0c1526;              /* elegant deep navy text */
  --muted: #5a6478;             /* subtle slate blue-gray for secondary text */
  --brand: #1e40af;             /* sophisticated royal sapphire */
  --brand-2: #3b82f6;           /* bright modern blue highlight */
  --accent: linear-gradient(135deg, #1e40af, #3b82f6);
  --card: #fdfefe;              /* ultra-clean card background */
  --border: #d7e1f0;            /* light cool border tone */
  --shadow: 0 8px 28px rgba(30, 64, 175, 0.08); /* soft sapphire shadow */
  --radius: 22px;               /* modern smooth corner radius */

  --container: 1200px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 120px;

  /* 3D helpers */
  --scene-perspective: 1200px;
  --tilt-rotate: 10deg;
  --tilt-scale: 1.03;
}


@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-elev: #ffffff;
    --text: #0b1220;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e6f0f8;
    --shadow: 0 20px 60px rgba(2,6,23,.06);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  perspective: var(--scene-perspective);
}

html { scroll-behavior: smooth; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.skip-link {
  position: absolute; left: -999px; top: -999px;
}
.skip-link:focus { left: 16px; top: 16px; background: var(--brand); color: white; padding: 6px 10px; border-radius: 8px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 14px; z-index: 60; background: rgba(255,255,255,0.55); border-bottom: 1px solid rgba(255,255,255,0.06); transition: background .28s ease, box-shadow .28s ease, transform .25s ease; padding: 8px 12px; will-change: transform; backdrop-filter: blur(8px) saturate(140%); }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(2,6,23,.06); }
.site-header.nav-hidden { transform: translateY(-120%); }
.header-wrap { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.55)); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); margin: 0 auto; }
.nav { justify-self: center; }
.header-wrap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 35%, transparent), color-mix(in oklab, var(--brand-2) 35%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: none; /* removed shadow */
}

.brand-name {
  display: inline-block; /* if you want it visible, otherwise keep display:none */
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}


.nav-toggle { display: none; background: transparent; border: 0; padding: 0; border-radius: 10px; width: 42px; height: 36px; position: relative; transition: transform .18s ease; }
.nav-toggle::before, .nav-toggle::after, .nav-toggle span { content: ""; position: absolute; left: 10px; right: 10px; height: 3px; background: var(--text); border-radius: 3px; transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .2s ease, top .28s ease, bottom .28s ease; }
.nav-toggle::before { top: 10px; }
.nav-toggle span { top: 16px; height: 2px; opacity: .95; }
.nav-toggle::after { bottom: 10px; }
.nav-toggle[aria-expanded="true"]::before { top: 16px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { bottom: 16px; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-menu { display: flex; align-items: center; justify-content: center; gap: 18px; list-style: none; margin: 0; padding: 0; position: relative; }
.nav-menu .btn.btn-primary { display: none; }
.nav-menu a { color: var(--text); text-decoration: none; opacity: .95; position: relative; padding: 8px 10px; font-size: 16px; font-weight: 600; border-radius: 8px; transition: color .18s ease, transform .18s ease, background .18s ease; }
.nav-menu a:hover { transform: translateY(-3px); background: color-mix(in oklab, var(--brand-2) 8%, transparent); }
.nav-menu a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -8px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: left; transition: transform .24s cubic-bezier(.22,.61,.36,1); border-radius: 3px; }
/* make underline follow theme colors */
.nav-menu a::after { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.nav-menu a:hover { opacity: 1; }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a:focus-visible { outline: none; }
.nav-menu a:focus-visible::after { transform: scaleX(1); }
.nav-menu a.active { opacity: 1; }
.nav-menu a.active::after { transform: scaleX(1); }

/* floating indicator element (positioned via CSS or JS) */
.nav-indicator { position: absolute; bottom: -8px; height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: 64px; left: 50%; transform: translateX(-50%) scaleX(0); opacity: 0; transition: left .28s cubic-bezier(.22,.61,.36,1), width .28s cubic-bezier(.22,.61,.36,1), opacity .18s ease, transform .28s ease; pointer-events: none; }
.site-header.scrolled .nav-indicator { opacity: .95; transform: translateX(-50%) scaleX(1); }

/* Accessible focus ring */
:where(a, button, .btn, .accordion-item):focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(99,102,241,.35); border-radius: 10px; }

/* Floating active indicator bar */
.nav-indicator { position: absolute; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: 0; left: 0; opacity: 0; transition: left .28s cubic-bezier(.22,.61,.36,1), width .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease; pointer-events: none; }
.site-header.scrolled .nav-indicator { opacity: .9; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { justify-self: end; }
  .nav-menu { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); background: color-mix(in oklab, var(--bg-elev) 96%, transparent); padding: 8px; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; transform: translateY(-6px) scale(.98); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; box-shadow: var(--shadow); }
  .nav-menu.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
  .nav-menu li { width: 100%; opacity: 0; transform: translateY(6px); transition: transform .22s ease, opacity .22s ease; }
  .nav-menu.open li { opacity: 1; transform: translateY(0); }
  .nav-menu.open li:nth-child(1){ transition-delay: .02s; }
  .nav-menu.open li:nth-child(2){ transition-delay: .05s; }
  .nav-menu.open li:nth-child(3){ transition-delay: .08s; }
  .nav-menu.open li:nth-child(4){ transition-delay: .11s; }
  .nav-menu.open li:nth-child(5){ transition-delay: .14s; }
  .nav-menu a { display: block; width: 100%; padding: 8px 6px; font-size: 15px; }
  .nav-menu .btn.btn-primary { display: inline-flex; }
  .nav-actions { display: none; }
}

@media (max-width: 490px) {
  .header-wrap { padding: 10px 12px; border-radius: 14px; }
  .brand { gap: 8px; }
  .brand-logo { width: 45px; height: 45px; }
  .nav-toggle { width: 34px; height: 35px; justify-self: end; }
  .nav-menu { left: 10px; right: 10px; top: calc(100% + 6px); border-radius: 10px; padding: 8px; gap: 4px; }
  .nav-menu a { padding: 8px 4px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .site-header.nav-hidden { transform: none; }
  .nav-menu { transition: none; }
}

body.no-scroll { overflow: hidden; }

/* overlay when mobile menu open */
.site-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 40; }
.site-overlay.show { opacity: 1; pointer-events: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--border); transition: transform .08s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 40px rgba(99,102,241,.4); }
.btn-primary { background: #111827; color: white; border-color: #111827; box-shadow: 0 8px 25px rgba(17,24,39,.2); position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: radial-gradient(40% 60% at 10% 10%, rgba(255,255,255,.2), transparent 60%); opacity: .4; transition: opacity 0.3s ease; }
.btn-ghost { background: transparent; color: var(--text); }

.btn:focus-visible { box-shadow: 0 0 0 3px rgba(16,185,129,.35); }

/* Hero */
/* Hero Section */
.hero {
  padding: clamp(56px, 8vw, var(--space-8)) 0 var(--space-7);
  background: linear-gradient(180deg, #ffffff, #f6f7f8);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Contained animated background */
.hero .hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .orb { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(40px); opacity: .25; mix-blend-mode: plus-lighter; }
.hero .orb.o1 { left: -60px; top: -60px; background: radial-gradient(closest-side, rgba(16,185,129,.6), transparent); animation: orbFloat1 16s ease-in-out infinite; }
.hero .orb.o2 { right: -80px; top: 20%; background: radial-gradient(closest-side, rgba(17,24,39,.45), transparent); animation: orbFloat2 20s ease-in-out infinite; }
.hero .orb.o3 { left: 10%; bottom: -80px; background: radial-gradient(closest-side, rgba(99,102,241,.5), transparent); animation: orbFloat3 22s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(24px,18px) scale(1.05);} }
@keyframes orbFloat2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-18px,12px) scale(1.03);} }
@keyframes orbFloat3 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(12px,-16px) scale(1.06);} }

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  left: -120px;
  top: -120px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 35%, transparent), transparent);
  filter: blur(50px);
  opacity: 0.6;
  animation: pulse 8s ease-in-out infinite;
}

/* Hero Layout */
.hero-wrap {
  display: grid;
  margin-top: -40px;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Text Styling */
.eyebrow {

  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

.hero h1 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  margin: 8px 0 12px;
  color: var(--text);
}

.gradient-text {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 24px;
}

/* Buttons */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.hero-ctas .btn {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand);
  color: #fff;
  border: none;
}

.btn-primary:hover { background: #0f172a; transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 40px rgba(17,24,39,.25); }

.btn-ghost { background-color: transparent; border: 2px solid #111827; color: #111827; }

.btn-ghost:hover {
  background-color: var(--brand);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,123,255,.3);
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Media Cards */
.media-card {
  height: 160px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card stack illusion (subtle layers behind card) */
.work-card, .media-card, .t-card {
  position: relative;
}
.work-card::before, .media-card::before, .t-card::before {
  content: '';
  position: absolute;
  inset: 6px; /* visible offset to create layer */
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(2,6,23,0.04), rgba(2,6,23,0.02));
  transform: translateZ(-6px) scale(.99);
  filter: blur(6px);
  transition: transform 420ms ease, opacity 420ms ease;
  opacity: 0.95;
}
.work-card::after, .media-card::after, .t-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: -3;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(16,185,129,0.02), rgba(99,102,241,0.02));
  transform: translateZ(-12px) scale(.98);
  filter: blur(12px);
  opacity: 0.7;
}

/* 3D style primary button */
.btn-primary {
  --btn-tz: 6px;
  transform-style: preserve-3d;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.04));
  transform: translateZ(calc(var(--btn-tz) * -1));
  z-index: -1;
}

.media-card:nth-child(2) { animation-delay: 0.6s; }
.media-card:nth-child(3) { animation-delay: 1.2s; }
.media-card:nth-child(4) { animation-delay: 1.8s; }

/* Image inside Media Card */
.media-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;       /* fill width */
  height: 100%;      /* fill height */
  object-fit: cover; /* fill box completely */
  object-position: center;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Label on Media Card */
.media-card span {
  position: relative;
  z-index: 2;
  margin: 10px;
  background-color: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}

/* Gradient Overlays */
.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 180deg at 50% 50%, 
    color-mix(in oklab, var(--brand) 25%, transparent), 
    color-mix(in oklab, var(--brand-2) 25%, transparent), 
    transparent 50%
  );
  filter: blur(40px);
  opacity: 0.35;
  z-index: 0;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  z-index: 1;
}

/* ---- Blog work-card styles (3D cards) ---- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.work-card {
  background: linear-gradient(180deg, var(--card), color-mix(in oklab, var(--card) 92%, var(--brand) 2%));
  border-radius: 18px;
  padding: 22px;
  min-height: 220px;
  box-shadow: 0 18px 50px rgba(2,6,23,0.08);
  transition: transform 420ms cubic-bezier(.2,.9,.3,1), box-shadow 420ms ease, background 420ms ease;
  transform-style: preserve-3d;
  cursor: pointer;
}
.work-card h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.25; }
.work-card p { color: var(--muted); margin: 0 0 16px; }
.work-card .btn { margin-top: auto; }

/* Tilt transform variables used by JS */
.tiltable { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateZ(var(--tz, 0)); }

.work-card:focus-within, .work-card:hover { transform: translateY(-8px) scale(var(--tilt-scale, 1.03)); box-shadow: 0 30px 80px rgba(2,6,23,0.14); }
.work-card:active { transform: translateY(-2px) scale(1.01); }

@media (max-width: 980px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---- Modal styles (centralized with accessibility) ---- */
.blog-modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(2,6,23,0.55); backdrop-filter: blur(6px) saturate(120%); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .32s ease; }
.blog-modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.blog-modal-inner { width: 100%; max-width: 980px; padding: 28px; display: flex; align-items: center; justify-content: center; }
.blog-modal-content {
  width: 100%; background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,252,0.98)); border-radius: 16px; box-shadow: 0 30px 80px rgba(2,6,23,0.25); padding: 28px; transform: translateY(18px) scale(.98); opacity: 0; transition: transform .36s cubic-bezier(.2,.9,.3,1), opacity .36s ease;
}
.blog-modal[aria-hidden="false"] .blog-modal-content { transform: translateY(0) scale(1); opacity: 1; }
.blog-modal-close { display: none; }
.blog-close { position: absolute; right: 18px; top: 18px; background: transparent; border: none; font-size: 22px; cursor: pointer; color: var(--muted); padding: 8px; border-radius: 8px; }
.blog-close:focus { outline: none; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.blog-modal-title { margin: 0 0 8px; font-size: 1.5rem; }
.blog-modal-sub { margin: 0 0 18px; color: var(--muted); }
.blog-modal-body { color: var(--text); line-height: 1.8; font-size: 1rem; }

@media (max-width: 700px) {
  .blog-modal-inner { padding: 16px; }
  .blog-modal-content { padding: 18px; border-radius: 12px; }
}

/* reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .work-card, .blog-modal-content { transition: none !important; animation: none !important; }
}

/* Hover Effect */
.media-card:hover {
  transform: translateY(-8px) scale(1.02) translateZ(8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.18);
}

/* Use CSS vars for JS-driven tilt. These fall back to no-ops if not set */
.tiltable {
  --rx: 0deg; --ry: 0deg; --tz: 0px; --scale: 1; --ty: 0px;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz)) translateY(var(--ty, 0px)) scale(var(--scale));
  transition: transform 280ms cubic-bezier(.2,.9,.3,1), box-shadow 280ms ease;
  transform-style: preserve-3d;
}

.tiltable:hover { --scale: var(--tilt-scale); }

/* Subtle inner shadow and highlight to increase depth perception */
.tiltable::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 18px 40px rgba(0,0,0,0.06), inset 0 -8px 30px rgba(255,255,255,0.02);
  mix-blend-mode: normal;
}

.media-card:hover img {
  transform: scale(1.08);
}

/* Hero extras */
.hero-badges { display: flex; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; flex-wrap: wrap; }
.hero-badges li { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; background: #ffffff; }

.scroll-cue { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 12px; color: #ffffff66; letter-spacing: .2em; }

.hero-quote { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 60ch; }

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-blob { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(40px); opacity: .28; pointer-events: none; }
.hero-blob.a { right: -120px; top: -80px; background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 40%, transparent), transparent); animation: driftA 14s ease-in-out infinite; }
.hero-blob.b { left: -160px; bottom: -120px; background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-2) 40%, transparent), transparent); animation: driftB 18s ease-in-out infinite; }

@keyframes driftA { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-20px, 14px);} }
@keyframes driftB { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(18px, -20px);} }

/* Floating Animation */
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,.3); }
  50% { box-shadow: 0 0 40px rgba(99,102,241,.6); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .media-card { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 490px) {
  .hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .media-grid { grid-template-columns: 1fr 1fr; }
}

/* Sections */
.section-intro h2, .section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; font-family: "Playfair Display", Georgia, serif; }
.section-intro p { color: var(--muted); max-width: 70ch; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--space-4); }
.link-more { color: var(--muted); text-decoration: none; }

/* Work */
/* Work Section */
.work {
  padding: var(--space-7) 0;
  background: linear-gradient(180deg, #f9fafb, #ffffff);
}

.work-dark {
  background: #0b0f14;
  border-top: 1px solid #0b0f14;
  border-bottom: 1px solid #0b0f14;
}

.work-dark .section-head h2 {
  color: #ffffff;
}

.work-dark .link-more {
  color: #cbd5e1;
}

.work-dark .work-card {
  background: #0f141b;
  border-color: #1f2937;
}

.work-dark .work-card h3 {
  color: #e5e7eb;
}

.work-dark .work-card p {
  color: #9ca3af;
}

/* Tabs */
.work-tabs {
  display: flex;
  gap: 16px;
  margin: 0 0 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.work-tabs .tab {
  appearance: none;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.work-tabs .tab:hover {
  background: var(--brand-2);
  color: #ffffff;
  transform: translateY(-2px);
}

.work-tabs .tab.active {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

/* Work Card */
.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--brand);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.3);
}

.work-card .thumb {
  height: 220px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f0f12, #141824);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover .thumb {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

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

.work-card .btn {
  align-self: flex-start;
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 10px;
  background: var(--brand-2);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.work-card .btn:hover {
  background: #0ea66c;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 490px) {
  .work {
    padding: var(--space-5) 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .work-card {
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .work-card .thumb {
    height: 160px;
    border-radius: 10px;
  }

  .work-card h3 {
    font-size: 18px;
  }

  .work-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .work-card .btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* Add subtle animation for cards */
  .work-card {
    animation: fadeInUp 0.5s ease both;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
/* Services */
.services { padding: var(--space-7) 0; background: #ffffff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.service { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); padding: var(--space-4); box-shadow: var(--shadow); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: clip; }
.service::before { content:""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 40%, transparent), color-mix(in oklab, var(--brand-2) 40%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.service:hover { transform: translateY(-8px) scale(1.02); border-color: var(--brand); box-shadow: 0 25px 60px rgba(99,102,241,.2); }
.service .icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.1)); border: 1px solid var(--border); margin-bottom: 10px; background-size: cover; background-position: center; transform: translateY(0); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.service:hover .icon { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(99,102,241,.2); }
.service h3 { margin: 0 0 6px; }
.service p { color: var(--muted); margin: 0; }

/* stagger reveal for services */
.services-list .service[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.services-list .service[data-reveal].in { opacity: 1; transform: translateY(0); }
.services-list .service:nth-child(1) { transition-delay: .0s; }
.services-list .service:nth-child(2) { transition-delay: .05s; }
.services-list .service:nth-child(3) { transition-delay: .1s; }
.services-list .service:nth-child(4) { transition-delay: .15s; }
.services-list .service:nth-child(5) { transition-delay: .2s; }
.services-list .service:nth-child(6) { transition-delay: .25s; }
.services-list .service:nth-child(7) { transition-delay: .3s; }
.services-list .service:nth-child(8) { transition-delay: .35s; }
.services-list .service:nth-child(9) { transition-delay: .4s; }
.services-list .service:nth-child(10) { transition-delay: .45s; }
.services-list .service:nth-child(11) { transition-delay: .5s; }
.services-list .service:nth-child(12) { transition-delay: .55s; }

@media (max-width: 768px) { .services-list { grid-template-columns: 1fr; } }

/* Feature */
.feature { padding: var(--space-7) 0; }
.feature-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-5); align-items: center; }
.feature-media { height: 340px; border-radius: var(--radius); background: radial-gradient(200px 160px at 50% 30%, rgba(120,0,255,.5), rgba(120,0,255,0)), linear-gradient(180deg, #0f1117, #141824); border: 1px solid var(--border); box-shadow: var(--shadow); }
.feature-copy p { color: var(--muted); }
@media (max-width: 980px) { .feature-wrap { grid-template-columns: 1fr; } }

/* FAQ */
/* FAQ Section */
.faq {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
}

.faq .section-intro h2 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 2rem;
}

.faq .section-intro p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

/* Accordion Container */
.accordion {
  display: grid;
  gap: 16px;
}

/* Accordion Item */
.accordion-item {
  position: relative;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  font-size: 1rem; /* Same font size for question and answer */
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.15);
  border-color: var(--brand);
}

/* Chevron Icon */
.accordion-item .chev {
  transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
  opacity: 0.7;
}

.accordion-item[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* Accordion Panel (Answer) */
.accordion-item .panel {
  grid-column: 1 / -1;
  color: var(--text); /* Match question color */
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  padding-top: 12px;
  font-size: 1rem; /* Same font size as question */
  transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              opacity 0.45s ease,
              transform 0.45s ease;
}

.accordion-item[aria-expanded="true"] .panel {
  max-height: 500px; /* Adjust based on content */
  opacity: 1;
  transform: translateY(0);
}

/* Optional Gradient Hover Glow */
.accordion-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  opacity: 0.08;
  z-index: 0;
  transition: left 0.5s ease, opacity 0.5s ease;
}

.accordion-item:hover::before {
  left: 0;
  opacity: 0.12;
}

/* Ensure content is above gradient */
.accordion-item > * {
  position: relative;
  z-index: 1;
}

/* CTA */
.cta { padding: var(--space-7) 0; background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.08)); border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta { background: radial-gradient(80% 200% at 50% 0%, #111827, #0b0f14 60%, #0b0f14 100%); }
.cta .cta-copy h2, .cta .cta-copy p { color: #ffffff; }
.cta .btn-primary { background: #10b981; border-color: #10b981; color: #0b0f14; box-shadow: 0 10px 30px rgba(16,185,129,.3); }
.cta .btn-primary:hover { background: #0ea66c; }
.cta-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cta-copy p { color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) { .cta-wrap { flex-direction: column; align-items: flex-start; } }

/* Testimonials */
.testimonials { padding: var(--space-7) 0; background: linear-gradient(180deg, #ffffff, #f8fafc); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.testimonials::before { content:""; position: absolute; inset: -2px -2px auto -2px; height: 140px; background: radial-gradient(60% 80% at 10% 10%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 70%); filter: blur(50px); opacity: .35; pointer-events: none; }
.t-wrap { position: relative; }
.t-grid { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.t-scroller { overflow: hidden; }
.t-card { background: color-mix(in oklab, var(--card) 86%, transparent); backdrop-filter: saturate(160%) blur(10px); border: 1px solid var(--border); border-radius: 18px; padding: var(--space-4); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.t-card::before { content:""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 45%, transparent), color-mix(in oklab, var(--brand-2) 45%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; opacity: .6; }
.t-card:hover { transform: translateY(-10px) rotate3d(1,0,0,0.6deg) scale(1.01); box-shadow: 0 35px 80px rgba(17,24,39,.18); border-color: var(--brand); }
.t-card:hover .t-quote { text-shadow: 0 2px 16px rgba(99,102,241,.15); }
.t-quote { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 14px; position: relative; }
.t-quote::before { content: "\201C"; color: color-mix(in oklab, var(--brand) 65%, #000); font-size: 36px; line-height: 0; position: absolute; left: -6px; top: -2px; opacity: .15; }
.t-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); box-shadow: var(--shadow); object-fit: cover; background: #fff; }
.t-person { display: flex; flex-direction: column; line-height: 1.1; }
.t-person strong { font-size: 14px; }
.t-person span { font-size: 12px; color: var(--muted); }
.t-stars { color: #f59e0b; letter-spacing: 1px; font-size: 14px; text-shadow: 0 2px 10px rgba(245,158,11,.25); }

/* reveal anim reuse */
.t-card[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.t-card[data-reveal].in { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) { .t-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { 
  .t-grid { grid-auto-flow: column; grid-auto-columns: 84%; display: grid; grid-template-columns: none; overflow-x: auto; gap: var(--space-4); scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .t-card { scroll-snap-align: start; }
  .t-scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-6) 0 var(--space-7); position: relative; overflow: hidden; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.footer-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; }
.social { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.social a { color: var(--muted); text-decoration: none; }
.footer-mark { position: absolute; inset: auto 0 0 0; height: 120px; display: grid; place-items: center; color: #0000000f; font-weight: 900; font-size: 82px; letter-spacing: 8px; pointer-events: none; user-select: none; }

/* Utilities */
.about, .work, .services, .feature, .faq, .cta { scroll-margin-top: 76px; }

/* About */
.about { padding: var(--space-7) 0; border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-5); margin-top: var(--space-4); }
.about-copy h3 { margin: 0 0 8px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; list-style: none; }
.pill-list li { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in oklab, var(--card) 85%, transparent); font-size: 13px; color: var(--muted); }
.about-links { display: flex; gap: 30px; margin-top: 40px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.stat .label { color: var(--muted); font-size: 13px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.about-badges li { border: 1px dashed var(--border); padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal-in [data-reveal], [data-reveal].in { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
* { scrollbar-color: color-mix(in oklab, var(--brand-2) 40%, #444) transparent; }
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 10px; }


/* Chatbot */
.chatbot {
  /* root is fixed so it can be moved anywhere via inline left/top during drag */
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  font-family: "Inter", sans-serif;
  touch-action: none; /* make touch drags smoother */
}

/* Toggle Button */
.chatbot-toggle {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(16,185,129,.5);
  transition: all 0.3s ease;
}
.chatbot-toggle:hover {
  background: linear-gradient(135deg, #334155, #0f172a);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}
/* subtle pulse when open */
.chatbot:not(.dragging) .chatbot-toggle[aria-expanded="true"] {
  animation: togglePulse 1.8s ease-in-out infinite;
}
.chatbot.dragging .chatbot-toggle {
  transform: none !important;
  animation: none !important;
}
@keyframes togglePulse {
  0% { box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 0 0 0 rgba(16,185,129,.45); }
  70% { box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 0 0 12px rgba(16,185,129,0); }
  100% { box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 0 0 0 rgba(16,185,129,0); }
}

/* Panel */
.chatbot-panel {
  /* Use fixed positioning by default so panel follows the toggle even when root is moved */
  position: fixed;
  right: 16px;
  bottom: 92px; /* sits above the toggle */
  width: min(400px, calc(100vw - 32px));
  max-height: 75vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(200%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255,255,255,0.1);
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.chatbot-panel:not(.closed) {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.35s ease-out;
}
/* Gradient border sheen */
.chatbot-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,197,94,.6), rgba(59,130,246,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .22;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile: bottom sheet style for small viewports */
@media (max-width: 520px) {
  .chatbot {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }
  .chatbot-panel {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 12px !important;
    top: auto !important;
    width: calc(100% - 16px) !important;
    max-height: 70vh;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(2,6,23,0.28);
  }
  .chatbot-panel:not(.closed) {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .chatbot-toggle { position: absolute; right: 14px; bottom: 14px; }
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}
.chatbot-header .avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #22c55e;
  color: #0f172a;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.chatbot-header .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.chatbot-header .status {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bbf7d0;
}
.chatbot-header .status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
}
.chatbot-close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

/* Body */
.chatbot-body {
  padding: 14px;
  background: #f9fafb;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.chatbot-body::-webkit-scrollbar {
  width: 6px;
}
.chatbot-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
.chat-msg {
  max-width: 80%;
  padding: 11px 15px;
  margin: 8px 0;
  font-size: 14px;
  border-radius: 16px;
  line-height: 1.4;
  animation: pop 0.25s ease;
  word-wrap: break-word;
}
@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.chat-msg.bot {
  background: radial-gradient(120% 180% at 0% 0%, rgba(255,255,255,1), rgba(246,247,248,1));
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(2,6,23,0.06);
}
.chat-msg.me {
  margin-left: auto;
  background: linear-gradient(135deg, #0f172a, #1e293b 60%, #334155);
  color: #fff;
  border-top-right-radius: 6px;
  box-shadow: 0 6px 16px rgba(2,6,23,0.18);
}

/* Mini action buttons inside bot bubble */
.btn-mini {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-mini:hover { transform: translateY(-1px); background: #f8fafc; box-shadow: 0 4px 12px rgba(2,6,23,0.08); }
.btn-mini:disabled { opacity: .6; cursor: default; }

/* Typing indicator */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  color: #475569;
  padding: 10px 12px;
  border-radius: 16px;
  width: fit-content;
}
.chat-typing .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
  animation: typing 1.4s infinite ease-in-out;
}
.chat-typing .dot:nth-child(2) { animation-delay: .15s; }
.chat-typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Input */
.chatbot-input {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.chatbot-input input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}
.chatbot-input input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.chatbot-input .send {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.chatbot-input .send:hover {
  background: linear-gradient(135deg, #334155, #0f172a);
  transform: scale(1.05);
}

/* Mobile Optimization */
@media (max-width: 490px) {
  .chatbot {
    right: 12px;
    bottom: 12px;
  }
  .chatbot-toggle {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }
  .chatbot-panel {
    width: calc(100vw - 24px);
    max-height: 80vh;
    border-radius: 18px;
    right: 12px;
    bottom: 75px;
  }
  .chatbot-header, .chatbot-body, .chatbot-input {
    padding: 12px;
  }
  .chat-msg {
    max-width: 90%;
  }
}
/* contact */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem;
  text-align: center;
  max-height: auto;
}

/* Index page hero contact section - modern background + 3D button */
#contact.contact-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.08));
  color: var(--text);
  padding: 5rem 1.5rem;
}

#contact.contact-section .contact-container { max-width: 920px; }

#contact.contact-section .contact-title { color: var(--text); }

#contact.contact-section .contact-subtitle { color: var(--muted); }

#contact.contact-section .contact-btn {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(124,58,237,0.12);
  border: none;
}

#contact.contact-section .contact-btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 90px rgba(124,58,237,0.18);
}

/* Floating squares */
.square {
  position: absolute;
  border-radius: 10px;
  opacity: 0.15;
  filter: blur(2px);
  animation: float 25s linear infinite;
}

/* Different squares with varied size, color, and speed */
.square:nth-child(1) { width: 50px; height: 50px; top: 5%; left: 10%; background: #01a474; animation-duration: 30s; }
.square:nth-child(2) { width: 30px; height: 30px; top: 20%; left: 30%; background: #ff5722; animation-duration: 28s; }
.square:nth-child(3) { width: 60px; height: 60px; top: 35%; left: 15%; background: #ffc107; animation-duration: 32s; }
.square:nth-child(4) { width: 40px; height: 40px; top: 50%; left: 50%; background: #00bcd4; animation-duration: 35s; }
.square:nth-child(5) { width: 45px; height: 45px; top: 15%; left: 70%; background: #e91e63; animation-duration: 33s; }
.square:nth-child(6) { width: 35px; height: 35px; top: 60%; left: 80%; background: #8bc34a; animation-duration: 30s; }
.square:nth-child(7) { width: 50px; height: 50px; top: 40%; left: 60%; background: #9c27b0; animation-duration: 34s; }
.square:nth-child(8) { width: 30px; height: 30px; top: 75%; left: 25%; background: #03a9f4; animation-duration: 36s; }

/* Smooth floating animation with slight scaling */
@keyframes float {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-20px) scale(1.1); }
  50% { transform: translateY(20px) scale(0.95); }
  75% { transform: translateY(-15px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

/* Content above squares */
.contact-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

/* Title + Subtitle */
.contact-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
.contact-subtitle { font-size: 1.1rem; margin-bottom: 2rem; }

/* Center section headings globally (but don't change contact page colors) */
.section-intro h2,
.section-head h2,
.contact-title,
section[id] .section-intro h2 { text-align: center; }

/* Button */
.contact-btn {
  background: linear-gradient(135deg, #5c5c5c, #050045);
  color: #ffffff;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(2, 14, 126, 0.5);
}

/* Responsive */
@media (max-width: 490px) {
  .contact-title { font-size: 1.8rem; }
  .contact-subtitle { font-size: 1rem; }
  .contact-btn { width: 100%; padding: 1rem; }
}


/* Pricing */
.pricing {
padding: var(--space-7) 0;
background: linear-gradient(
180deg,
color-mix(in oklab, var(--card) 96%, var(--bg) 4%),
var(--bg)
);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}

.pricing .section-intro {
margin-bottom: var(--space-4);
text-align: center; /* center pricing heading */
}
.pricing .section-intro p {
margin-top: 8px;
color: var(--muted);
text-align: center;
}

.pricing-toggle {
  display: flex;
  justify-content: center; /* center the monthly/yearly toggle */
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-4);
}

/* Switch */
.switch {
display: inline-flex;
align-items: center;
gap: 12px;
cursor: pointer;
user-select: none;
font-weight: 600;
color: var(--muted);
}
.switch input { position: absolute; opacity: 0; }
.switch .slider {
width: 64px;
height: 34px;
background: var(--border);
border-radius: 999px;
position: relative;
transition: background .25s ease, box-shadow .25s ease;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.switch .slider::after {
content: "";
position: absolute;
top: 3px; left: 3px;
width: 28px; height: 28px;
background: #fff;
border-radius: 50%;
box-shadow: 0 4px 10px rgba(2,6,23,0.12);
transition: transform .25s cubic-bezier(.2,.9,.3,1);
}
.switch input:checked + .slider {
background: linear-gradient(90deg, var(--brand-2), var(--brand));
}
.switch input:checked + .slider::after {
transform: translateX(30px);
}

/* Grid */
.pricing-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-4);
margin-top: var(--space-4);
text-align: left;
}

/* Card */
.price-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 20px;
padding: 24px;
box-shadow: 0 4px 20px rgba(16,24,40,0.08);
display: flex;
flex-direction: column;
gap: 16px;
transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover {
transform: translateY(-6px);
box-shadow: 0 24px 60px rgba(16,24,40,0.15);
border-color: color-mix(in oklab, var(--brand-2) 60%, var(--border));
}

.price-card header {
display: flex;
align-items: baseline;
justify-content: space-between;
}
.price-card h3 {
margin: 0;
font-size: clamp(18px, 2vw, 22px);
}
.price-card .price {
font-weight: 800;
display: flex;
align-items: baseline;
gap: 8px;
}
.price-card .amount {
font-size: clamp(20px, 2.5vw, 28px);
color: var(--text);
}
.price-card .period {
font-size: 13px;
color: var(--muted);
font-weight: 600;
}

/* Features */
.price-card .features {
list-style: none;
padding: 0;
margin: 8px 0 0;
color: var(--muted);
display: grid;
gap: 8px;
}
.price-card .features li {
font-size: 14px;
position: relative;
padding-left: 20px;
}
.price-card .features li::before {
content: "✔";
position: absolute;
left: 0;
color: var(--brand-2);
font-weight: 700;
font-size: 14px;
}

/* CTA */
.price-card .btn {
margin-top: auto;
align-self: flex-start;
}

/* Featured */
.price-card.featured {
background: linear-gradient(
180deg,
color-mix(in oklab, var(--brand-2) 12%, var(--card)),
color-mix(in oklab, var(--brand) 8%, var(--card))
);
border: 1px solid color-mix(in oklab, var(--brand-2) 40%, var(--border));
box-shadow: 0 30px 90px rgba(16,185,129,0.15);
}
.price-card.featured h3,
.price-card.featured .amount { color: #052e1f; }
.price-card.featured .btn {
background: #052e1f;
color: #fff;
border-color: transparent;
}

/* Note */
.pricing-note {
margin-top: var(--space-4);
color: var(--muted);
text-align: left;
font-size: 14px;
}

/* Responsive */
@media (max-width: 980px) {
.pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
.pricing-grid { grid-template-columns: 1fr; }
.pricing .section-intro,
.pricing .section-intro p,
.pricing-toggle,
.pricing-note { text-align: left; }
}

/* ==================================================
  Page-specific overrides: moved from inline styles
  These provide glassmorphism, about/project/contact styles
  ================================================== */

/* About page: glass cards, stats, team */
.content-section { padding: 6rem 0; }
.section-intro { max-width: 65ch; margin: 0 auto 2rem; text-align: center; }
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.card { background: rgba(255,255,255,0.65); backdrop-filter: blur(18px); border-radius: 14px; box-shadow: 0 6px 18px rgba(2,6,23,0.06); padding: 1rem; transition: all .3s ease; }
.pill-list li { background: rgba(255,255,255,0.45); backdrop-filter: blur(10px); }
.about-stats .stat { background: rgba(255,255,255,0.65); }
.about-badges li { background: rgba(255,255,255,0.7); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.team-card { text-align: center; background: rgba(255,255,255,0.65); padding: 1rem; border-radius: 14px; }
.team-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }

/* Project page specifics */
.projects-hero { padding: 6rem 2rem; text-align: center; background: var(--bg); color: var(--text); }
.projects-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); margin-top: 2.5rem; }
.project-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .45s ease, box-shadow .45s ease; }
.project-thumb { background-size: cover; background-position: center; height: 200px; }
.project-body { padding: 1.25rem; display:flex; flex-direction:column; }
.project-title { font-size: 1.25rem; font-weight:700; color:var(--text); }
.project-desc { color: var(--muted); }
.btn-ghost { background: transparent; border: 1px solid var(--border); padding: 8px 12px; border-radius: 12px; }

/* Contact page specifics */
.connect-hero { padding: 6rem 0; background: var(--bg); color: var(--text); position: relative; overflow: hidden; }
.connect-container { display:flex; gap: 2rem; align-items:flex-start; max-width:1100px; margin:0 auto; padding:0 1rem; flex-wrap:wrap; perspective:1000px; }
.connect-details { flex:1; transform-style: preserve-3d; }
.subtitle { font-weight:700; color: var(--brand); margin-bottom: .6rem; text-transform:uppercase; letter-spacing:1.2px; }
.connect-details h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem,5vw,3.2rem); margin-bottom:1.25rem; background: var(--accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.intro-text { color: var(--muted); max-width:70ch; }
.highlights-list { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.highlights-list li { list-style:none; padding:.5rem 1rem; border-radius:999px; background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); }
.primary-button { background: linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; border-radius:14px; padding:.75rem 1.2rem; display:inline-flex; align-items:center; justify-content:center; }
.primary-button:hover { transform: translateY(-6px) scale(1.03) rotateX(2deg); box-shadow: 0 18px 50px rgba(2,6,23,0.08); }

