/* =============================================================================
   Ashirwad Infotech - design layer
   Applied ON TOP of the compiled React build (no source available). Changes
   presentation only: colour, type, spacing, surfaces, motion. No content.
   Selectors lean on section ids and structure; JS adds data-ai-* hooks.
   ========================================================================== */

:root {
  --ai-ink: #0b1324;
  --ai-ink-2: #334155;
  --ai-muted: #64748b;
  --ai-line: #e5eaf3;
  --ai-surface: #f6f8fd;
  --ai-card: #ffffff;
  --ai-navy-950: #040a1c;
  --ai-navy-900: #071233;
  --ai-navy-800: #0b1d4d;
  --ai-blue: #2563eb;
  --ai-cyan: #06b6d4;
  --ai-grad: linear-gradient(120deg, #2563eb 0%, #0ea5e9 55%, #06b6d4 100%);
  --ai-grad-deep: linear-gradient(135deg, #071233 0%, #0b2a6b 55%, #0a4a8f 100%);
  --ai-radius: 20px;
  --ai-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --ai-shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --ai-shadow-lg: 0 24px 60px -20px rgba(37, 99, 235, .35);
  --ai-ease: cubic-bezier(.22, 1, .36, 1);
  --ai-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --ai-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ai-body) !important;
  color: var(--ai-ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgba(14, 165, 233, .18), transparent 60%),
    radial-gradient(50rem 40rem at 0% 60%, rgba(37, 99, 235, .22), transparent 60%),
    #050c22 !important;
  background-attachment: fixed !important;
}
::selection { background: rgba(6, 182, 212, .25); }

h1, h2, h3, #service .font-bold, #career .font-bold, #contact .text-4xl, .text-xl.font-semibold {
  font-family: var(--ai-display) !important;
  letter-spacing: -0.025em;
}

/* ---------- navigation ---------------------------------------------------- */
/* NOTE: never put backdrop-filter/transform/filter on <nav> itself - it would
   become the containing block for the position:fixed mobile drawer inside it
   and drag that drawer onto the desktop page. The pill is painted on the bar. */
nav.fixed {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transition: top .4s var(--ai-ease) !important;
}
nav.fixed::before, nav.fixed::after { display: none !important; }
/* The app has THREE nav states, and only the logo tells them apart:
     at top          class top-[6.5vh], BLACK logo, dark links
     scrolled a bit  class top-0,       BLACK logo, dark links   (over the hero)
     past the hero   class top-0,       WHITE logo, white links, white button
   The bar colour must follow the LOGO, not top-0: keying the dark bar off
   top-0 put a black logo and dark links on a dark bar in the middle state.
   theme.js sets html[data-ai-nav="dark"] exactly when the white logo shows. */
nav.fixed.top-0 { top: 12px !important; }
nav.fixed > div:first-child {
  bottom: 0 !important;
  padding: 10px 18px !important;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  box-shadow: 0 10px 34px -14px rgba(4, 10, 28, .45);
  /* near-instant: the app swaps the logo instantly, so a slow fade would
     briefly put the dark logo on a still-dark bar (and vice versa) */
  transition: background .12s linear, border-color .12s linear, box-shadow .35s var(--ai-ease);
}
html[data-ai-nav="dark"] nav.fixed > div:first-child {
  background: rgba(6, 14, 40, .9);
  border-color: rgba(125, 211, 252, .14);
  box-shadow: 0 16px 44px -16px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* dark-state links: the app gives them text-slate-400 / text-white-100 */
nav.fixed button span.text-slate-400 { color: rgba(255, 255, 255, .72) !important; }
nav.fixed button span.text-white-100 { color: #fff !important; }
html[data-ai-nav="dark"] nav.fixed button:hover span.text-lg { color: #fff !important; }
nav.fixed button span.text-2xl.text-white-100 { color: #22d3ee !important; }
nav.fixed button.bg-white-100 {
  background: #fff !important; color: var(--ai-navy-900) !important;
  border-radius: 12px !important; padding: 10px 20px !important; font-weight: 600 !important;
  box-shadow: 0 8px 20px -10px rgba(255, 255, 255, .5);
  transition: transform .25s var(--ai-ease), box-shadow .25s var(--ai-ease);
}
nav.fixed button.bg-white-100:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(34, 211, 238, .6); }

/* top info strip sits over the hero: make it part of it */
#root > div > div.bg-white-100.z-40 { background: transparent !important; }
#root > div > div.bg-white-100.z-40 span { color: rgba(255, 255, 255, .78) !important; font-size: 13.5px !important; }
#root > div > div.bg-white-100.z-40 img.gradient-icon { filter: brightness(0) invert(1); opacity: .75; }
nav.fixed img.w-56 { width: 11.5rem !important; }
nav.fixed button span.text-lg {
  font-family: var(--ai-body);
  font-size: 15px !important;
  font-weight: 550 !important;
  color: var(--ai-ink-2);
  transition: color .2s;
}
nav.fixed button:hover span.text-lg { color: var(--ai-blue); }
nav.fixed .gradient-icon { background: var(--ai-grad) !important; -webkit-background-clip: text !important; }

/* primary buttons everywhere */
.bg-custom-gradient {
  background-image: var(--ai-grad) !important;
  background-size: 200% 100% !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6);
  transition: transform .25s var(--ai-ease), box-shadow .25s var(--ai-ease), background-position .6s var(--ai-ease) !important;
}
button.bg-custom-gradient, div.bg-custom-gradient.cursor-pointer { padding: 10px 20px !important; font-weight: 600 !important; }
.bg-custom-gradient:hover { transform: translateY(-2px); background-position: 100% 0 !important; box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .7); }

/* ---------- hero ----------------------------------------------------------- */
#home > div {
  position: relative;
  overflow: hidden;
  height: 100vh !important;
  min-height: 640px;
  background-color: var(--ai-navy-950);
  background-image: var(--ai-grad-deep) !important;
  isolation: isolate;
}
/* the original artwork, kept but blended into the new background */
#home > div::before {
  content: "";
  position: absolute; inset: 0;
  background: url(/static/media/aibg.33583212669509ab0a9f.png) center 60% / cover no-repeat;
  opacity: .55;
  mix-blend-mode: screen;
  z-index: -1;
}
/* fine grid + glow orbs */
#home > div::after {
  content: "";
  position: absolute; inset: -20%;
  background:
    radial-gradient(28rem 28rem at 20% 30%, rgba(6, 182, 212, .28), transparent 60%),
    radial-gradient(32rem 32rem at 80% 70%, rgba(37, 99, 235, .35), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  animation: ai-drift 18s ease-in-out infinite alternate;
  z-index: -2;
}
#home h1 {
  top: 26vh !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  font-size: clamp(2.1rem, 4.6vw, 4rem) !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-shadow: 0 2px 30px rgba(4, 10, 28, .5);
  animation: ai-rise 1s var(--ai-ease) both .15s;
}
#home h1 .custom-stroke {
  display: inline-block;
  font-family: var(--ai-display) !important;
  font-size: 1em !important;
  font-weight: 800 !important;
  -webkit-text-stroke: 0 !important;
  background: linear-gradient(90deg, #7dd3fc, #22d3ee, #a5b4fc, #7dd3fc);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  animation: ai-shimmer 8s linear infinite;
  text-shadow: none;
}

/* ---------- light panels (services / contact) ------------------------------ */
#service > div, #contact > div {
  border-radius: 40px !important;
  box-shadow: 0 -20px 60px -30px rgba(4, 10, 28, .5) !important;
  background: #fff !important;
}
#service > div { margin-top: -40px; position: relative; z-index: 2; }

/* section headings: the first-letter bubble becomes a gradient letter + rule */
#service h2, #service .text-4xl.font-bold, #career .text-4xl.font-bold, #contact p.text-4xl {
  font-weight: 800 !important;
  font-size: clamp(2rem, 3.6vw, 3rem) !important;
  line-height: 1.12 !important;
  color: var(--ai-ink) !important;
  position: relative;
}
#service h2 > span, #service .text-4xl.font-bold > span, #career .text-4xl.font-bold > span, #contact p.text-4xl > span {
  background: var(--ai-grad) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important;
  padding-left: 0 !important; padding-right: 0 !important;
  border-radius: 0 !important;
}
#service h2::after, #service .text-4xl.font-bold::after, #career .text-4xl.font-bold::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 14px;
  border-radius: 99px; background: var(--ai-grad);
}
#career .text-4xl.font-bold, #contact p.text-4xl { color: #fff !important; }
#career .text-4xl.font-bold > span, #contact p.text-4xl > span {
  background: linear-gradient(90deg, #7dd3fc, #22d3ee) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}

#service p.text-gray-600 { color: var(--ai-muted) !important; font-size: 16.5px !important; line-height: 1.75 !important; }

/* service cards */
#service .grid > .rounded-xl { background: none !important; border: 0 !important; padding: 0 !important; }
#service .grid > .rounded-xl > .bg-primary-200 {
  background: var(--ai-card) !important;
  border: 1px solid var(--ai-line) !important;
  border-radius: var(--ai-radius) !important;
  padding: 28px !important;
  box-shadow: var(--ai-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ai-ease), box-shadow .45s var(--ai-ease), border-color .45s;
}
#service .grid > .rounded-xl > .bg-primary-200::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--ai-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ai-ease);
}
#service .grid > .rounded-xl > .bg-primary-200:hover {
  transform: translateY(-6px);
  box-shadow: var(--ai-shadow-lg);
  border-color: rgba(37, 99, 235, .25) !important;
}
#service .grid > .rounded-xl > .bg-primary-200:hover::before { transform: scaleX(1); }
#service .grid .bg-custom-gradient.rounded-full {
  flex: 0 0 auto;
  border-radius: 14px !important; padding: 0 !important;
  width: 52px !important; height: 52px !important;
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .8);
}
#service .grid .text-xl.font-semibold { font-size: 21px !important; font-weight: 700 !important; color: var(--ai-ink); }
#service .grid p.text-gray-100 { color: var(--ai-muted) !important; line-height: 1.75; font-size: 15.5px; }
#service .grid .text-gray-200 { color: #94a3b8 !important; transition: color .3s, transform .3s var(--ai-ease); }
#service .grid > .rounded-xl:hover .text-gray-200 { color: var(--ai-blue) !important; }
#service .grid > .rounded-xl:hover .text-gray-200:hover { transform: scale(1.15); }

/* process band */
#service .bg-primary-200.w-\[99vw\] {
  background:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--ai-surface) !important;
  border-top: 1px solid var(--ai-line); border-bottom: 1px solid var(--ai-line);
  width: 100% !important;
}
#service .relative.grid.md\:grid-cols-4 > div {
  background: #fff; border: 1px solid var(--ai-line); border-radius: var(--ai-radius);
  padding: 26px 24px 24px 56px; box-shadow: var(--ai-shadow-sm);
  transition: opacity .9s var(--ai-ease), transform .45s var(--ai-ease), box-shadow .45s var(--ai-ease);
}
#service .relative.grid.md\:grid-cols-4 > div:hover { transform: translateY(-6px); box-shadow: var(--ai-shadow-md); }
#service .relative.grid.md\:grid-cols-4 > div > .absolute { display: none !important; }
#service .relative.grid.md\:grid-cols-4 h3 { font-weight: 700 !important; font-size: 20px !important; color: var(--ai-ink); }
#service .relative.grid.md\:grid-cols-4 p { color: var(--ai-muted); line-height: 1.7; font-size: 15px; }

/* technology filter + tiles */
#service .rounded-3xl {
  border: 1px solid var(--ai-line) !important; background: #fff;
  font-weight: 600; font-size: 14px; color: var(--ai-ink-2);
  transition: all .25s var(--ai-ease) !important;
}
#service .rounded-3xl:hover { border-color: var(--ai-blue) !important; color: var(--ai-blue); }
#service .rounded-3xl.bg-primary-300 {
  background: var(--ai-grad) !important; color: #fff !important; border-color: transparent !important;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .7);
}
#service .gradient-bg {
  background: #fff !important;
  border: 1px solid var(--ai-line) !important;
  border-radius: 24px !important;
  width: 7.5rem !important; height: 7.5rem !important;
  box-shadow: var(--ai-shadow-sm);
  transition: transform .45s var(--ai-ease), box-shadow .45s var(--ai-ease), border-color .3s !important;
}
#service .gradient-bg img { transition: transform .45s var(--ai-ease); }
#service .gradient-bg:hover {
  transform: translateY(-6px) rotate(-2deg);
  box-shadow: var(--ai-shadow-lg);
  border-color: rgba(37, 99, 235, .3) !important;
}
#service .gradient-bg:hover img { transform: scale(1.12); }
#service .gradient-bg + p { font-size: 15.5px !important; font-weight: 600 !important; color: var(--ai-ink-2); }

/* ---------- career (dark) --------------------------------------------------- */
#career { position: relative; }
#career .contact-border {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-image: none !important;
  border-radius: 16px !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity .9s var(--ai-ease), transform .45s var(--ai-ease), background .3s, border-color .3s, box-shadow .45s var(--ai-ease) !important;
}
#career .contact-border:hover {
  transform: translateY(-4px) !important;
  background: rgba(255, 255, 255, .09) !important;
  border-color: rgba(34, 211, 238, .45) !important;
  box-shadow: 0 18px 40px -18px rgba(6, 182, 212, .55);
}
#career .contact-border .text-lg { font-weight: 600 !important; font-size: 16.5px !important; }

/* ---------- contact --------------------------------------------------------- */
#contact .bg-gradient-custom {
  background:
    radial-gradient(24rem 18rem at 100% 0%, rgba(6, 182, 212, .35), transparent 60%),
    var(--ai-grad-deep) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 60px -30px rgba(7, 18, 51, .8);
  padding-left: 40px !important; padding-right: 40px !important;
}
#contact form .contact-border {
  background: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-image: none !important;
  border-radius: 12px !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
#contact form .contact-border:focus-within {
  border-color: #22d3ee !important;
  background: rgba(255, 255, 255, .1) !important;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
}
#contact form input::placeholder, #contact form textarea::placeholder { color: rgba(255, 255, 255, .6) !important; }
#contact form select option { color: var(--ai-ink); }
#contact form button.bg-white-100 {
  background: #fff !important; color: var(--ai-navy-900) !important;
  border-radius: 12px !important; font-weight: 700 !important; width: 9rem !important; height: 3rem !important;
  transition: transform .25s var(--ai-ease), box-shadow .25s !important;
}
#contact form button.bg-white-100:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255, 255, 255, .6); }
#contact iframe { border-radius: 20px; border: 1px solid var(--ai-line) !important; box-shadow: var(--ai-shadow-md); }
#contact .flex.gap-3 > img {
  padding: 8px; border-radius: 12px; background: var(--ai-surface); border: 1px solid var(--ai-line);
  width: 44px !important; height: 44px !important;
}
#contact .flex.gap-3 .font-\[500\] { font-weight: 700 !important; color: var(--ai-ink); }
#contact .flex.gap-3 .flex-col > div:last-child { color: var(--ai-muted); }

/* ---------- footer ---------------------------------------------------------- */
#root > div > div.min-h-\[32vh\] { padding: 56px 0 28px !important; gap: 22px !important; }
#root > div > div.min-h-\[32vh\] a.text-sm { color: rgba(255, 255, 255, .72) !important; font-weight: 500; transition: color .2s; }
#root > div > div.min-h-\[32vh\] a.text-sm:hover { color: #fff !important; }
#root > div > div.min-h-\[32vh\] .contact-border {
  background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(255, 255, 255, .12) !important;
  border-image: none !important; border-radius: 12px !important;
  transition: transform .3s var(--ai-ease), background .3s, border-color .3s;
}
#root > div > div.min-h-\[32vh\] .contact-border:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12) !important; border-color: rgba(34, 211, 238, .5) !important; }
#root > div > div.min-h-\[32vh\] hr { border-color: rgba(255, 255, 255, .1) !important; max-width: 1200px; }
#root > div > div.min-h-\[32vh\] p { color: rgba(255, 255, 255, .55); font-size: 14px; }

/* ---------- scroll reveal (hooks added by theme.js) ------------------------- */
[data-ai-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ai-ease), transform .9s var(--ai-ease);
}
[data-ai-d="1"] { transition-delay: .07s; } [data-ai-d="2"] { transition-delay: .14s; }
[data-ai-d="3"] { transition-delay: .21s; } [data-ai-d="4"] { transition-delay: .28s; }
[data-ai-d="5"] { transition-delay: .35s; } [data-ai-d="6"] { transition-delay: .42s; }
[data-ai-d="7"] { transition-delay: .49s; } [data-ai-d="8"] { transition-delay: .56s; }
[data-ai-reveal][data-ai-in] { opacity: 1; transform: none; }

@keyframes ai-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes ai-shimmer { to { background-position: 300% 0; } }
@keyframes ai-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

@media (max-width: 767px) {
  #home > div { min-height: 560px; height: 88vh !important; }
  #home h1 { top: 22vh !important; }
  #service > div, #contact > div { border-radius: 28px !important; }
  #contact .bg-gradient-custom { padding-left: 22px !important; padding-right: 22px !important; }
  #service .relative.grid.md\:grid-cols-4 > div { padding-left: 24px; }
  #service .grid > .rounded-xl > .bg-primary-200 { padding: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-ai-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
