/* Ahmed Ali — custom layer on top of the template. One accent colour, used sparingly. */
:root {
  --aa-accent: #2f6bff;
  --aa-accent-soft: rgba(47, 107, 255, 0.12);
}
[data-bs-theme="dark"] {
  --aa-accent: #6f97ff;
  --aa-accent-soft: rgba(111, 151, 255, 0.16);
}

.aa-accent { color: var(--aa-accent); }

/* Header brand */
.aa-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.aa-mono__bg { fill: var(--at-neutral-900); }
.aa-mono__fg { fill: none; stroke: var(--at-neutral-0); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.aa-mono__accent { stroke: var(--aa-accent); }

/* Hero */
.aa-hero-name { letter-spacing: -0.04em; }
.aa-hero-portrait { position: relative; }
.aa-hero-portrait img { width: 100%; height: auto; display: block; filter: grayscale(0.15) contrast(1.05); }
.aa-hero-portrait::before {
  content: ""; position: absolute; inset: 18% 4% 0 4%; border-radius: 50% 50% 0 0;
  background: radial-gradient(closest-side, var(--aa-accent-soft), transparent);
  z-index: -1;
}
.aa-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--at-neutral-100); background: var(--at-neutral-0); font-size: 14px; color: var(--at-neutral-900);
}
.aa-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.aa-mobile-portrait { max-width: 360px; margin: 0 auto 24px; border-radius: 24px; overflow: hidden; }

/* Workflow graphic */
.aa-flow { width: 100%; height: auto; display: block; }
.aa-flow__dot { fill: rgba(255, 255, 255, 0.12); }
.aa-flow__edge { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.aa-flow__pulse {
  fill: none; stroke: var(--aa-accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 18 400; animation: aa-pulse 2.4s linear infinite;
}
@keyframes aa-pulse { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.aa-flow__node rect { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.22); }
.aa-flow__node.is-core rect { fill: var(--aa-accent); stroke: var(--aa-accent); }
.aa-flow__led { fill: #22c55e; animation: aa-blink 2s ease-in-out infinite; }
.aa-flow__node.is-core .aa-flow__led { fill: #fff; }
@keyframes aa-blink { 50% { opacity: 0.35; } }
.aa-flow__label { fill: #fff; font-size: 13px; font-weight: 600; font-family: inherit; }
.aa-flow__sub { fill: rgba(255, 255, 255, 0.6); font-size: 11px; font-family: inherit; }
.aa-flow-card {
  background: #0e1220; border-radius: 20px; padding: 22px; color: #fff; position: relative; overflow: hidden;
}
.aa-flow-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47,107,255,.45), transparent);
}

/* Voice wave */
.aa-wave { display: flex; align-items: center; gap: 4px; height: 70px; }
.aa-wave span {
  flex: 1; min-width: 3px; border-radius: 3px; background: var(--at-neutral-900);
  transform-origin: center; animation: aa-bar 1.1s ease-in-out infinite;
}
.aa-wave span:nth-child(5n) { background: var(--aa-accent); }
@keyframes aa-bar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .aa-flow__pulse, .aa-flow__led, .aa-wave span { animation: none; }
}

/* Tool logos grid */
.aa-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 767px) { .aa-tools { grid-template-columns: repeat(2, 1fr); } }
.aa-tool {
  height: 92px; border-radius: 16px; background: var(--at-neutral-0); display: flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 600; color: var(--at-neutral-900); padding: 12px; transition: transform .3s ease;
}
.aa-tool { position: relative; overflow: hidden; border: 1px solid transparent; transition: transform .35s ease, border-color .35s ease, color .35s ease; }
.aa-tool::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 120%, var(--brand), transparent 70%); opacity: 0; transition: opacity .35s ease; }
.aa-tool > * { position: relative; }
.aa-tool:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.aa-tool:hover::before { opacity: .18; }
.aa-tool:hover .aa-brand { color: var(--brand); transform: scale(1.12) rotate(-4deg); }

/* Brand icons */
.aa-brand { display: inline-block; flex: none; color: var(--at-neutral-900); transition: color .3s ease, transform .35s ease; }
.aa-brand--mask { background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.aa-brand-fallback { display: inline-grid; place-items: center; border-radius: 6px; background: var(--aa-accent-soft); color: var(--aa-accent); font-size: 12px; font-weight: 700; }

/* Interactive stack explorer */
.aa-stackx { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 8px; }
@media (max-width: 991px) { .aa-stackx { grid-template-columns: 1fr; } }
.aa-stackx__tabs { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 991px) { .aa-stackx__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; } }
.aa-stackx__tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--at-neutral-100);
  background: transparent; color: var(--at-neutral-500); font-weight: 600; transition: all .3s ease; white-space: nowrap; }
.aa-stackx__tab:hover { color: var(--at-neutral-900); }
.aa-stackx__tab.is-active { background: var(--at-neutral-0); color: var(--at-neutral-900); border-color: transparent; box-shadow: inset 3px 0 0 var(--aa-accent); }
.aa-stackx__num { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.aa-stackx__title { flex: 1; font-size: 18px; }
.aa-stackx__count { font-size: 12px; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: var(--at-neutral-100); transition: all .3s ease; }
.aa-stackx__tab.is-active .aa-stackx__count { background: var(--aa-accent); color: #fff; }
.aa-stackx__panel { background: var(--at-neutral-0); border-radius: 20px; padding: 32px; position: relative; overflow: hidden; }
.aa-stackx__panel::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--aa-accent-soft), transparent 70%); pointer-events: none; }
.aa-stackx__blurb { font-size: 18px; color: var(--at-neutral-500); margin-bottom: 24px; max-width: 520px; animation: aaFadeUp .5s ease both; }
.aa-stackx__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.aa-skill { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--at-neutral-100);
  color: var(--at-neutral-900); font-weight: 600; transition: transform .3s ease, border-color .3s ease, background .3s ease; animation: aaFadeUp .45s ease both; }
.aa-skill__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--at-neutral-50); flex: none; transition: background .3s ease; }
.aa-skill:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.aa-skill:hover .aa-brand { color: var(--brand); transform: scale(1.12); }
@keyframes aaFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aa-skill, .aa-stackx__blurb { animation: none; } }

/* Skill pills */
.aa-pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--at-neutral-100);
  font-size: 14px; color: var(--at-neutral-900); margin: 0 6px 8px 0; background: var(--at-neutral-0);
}

/* Project cards: screenshots are diagrams, so contain them on a tinted backdrop */
.aa-shot {
  aspect-ratio: 3 / 2; height: auto !important; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 85% 0%, #2a4cb8 0%, #121a33 45%, #0b0f1c 100%);
  padding: 44px 40px 0;
}
.aa-shot > a { display: block; width: 100%; height: 100%; position: relative; border-radius: 12px 12px 0 0; overflow: hidden;
  background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.45); padding-top: 26px; }
.aa-shot > a::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px; background: #eef0f4;
  border-bottom: 1px solid #dde0e6; z-index: 1; }
.aa-shot > a::after { content: ""; position: absolute; top: 9px; left: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f57; box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840; z-index: 2; }
.aa-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .8s ease; }
.aa-shot:hover img { transform: scale(1.04); }

/* Process steps */
.aa-step { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; }
.aa-step__num { font-size: 14px; color: var(--aa-accent); font-weight: 600; letter-spacing: .1em; }

/* Case study page */
.aa-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.aa-meta > div { background: var(--at-neutral-0); border-radius: 16px; padding: 20px; }
.aa-meta span { display: block; font-size: 13px; color: var(--at-neutral-500); text-transform: uppercase; letter-spacing: .08em; }
.aa-meta strong { font-size: 22px; color: var(--at-neutral-900); }
.aa-gallery img { width: 100%; height: auto; border-radius: 20px; background: #0e1220; display: block; }
.aa-checklist { list-style: none; padding: 0; margin: 0; }
.aa-checklist li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--at-neutral-100); color: var(--at-neutral-900); }
.aa-checklist li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--aa-accent-soft); box-shadow: inset 0 0 0 5px var(--aa-accent);
}

/* Blog */
.aa-cover { width: 100%; height: 100%; display: block; }
.aa-cover-wrap { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; }
.aa-prose { font-size: 19px; line-height: 1.75; color: var(--at-neutral-900); }
.aa-prose h2 { font-size: 34px; margin: 56px 0 16px; line-height: 1.2; }
.aa-prose h3 { font-size: 26px; margin: 40px 0 12px; }
.aa-prose p, .aa-prose ul, .aa-prose ol { margin: 0 0 22px; }
.aa-prose ul, .aa-prose ol { padding-left: 24px; }
.aa-prose li { margin-bottom: 8px; list-style: disc; }
.aa-prose ol li { list-style: decimal; }
.aa-prose a { color: var(--aa-accent); text-decoration: underline; }
.aa-prose blockquote { border-left: 3px solid var(--aa-accent); padding: 4px 0 4px 20px; color: var(--at-neutral-500); margin: 0 0 22px; }
.aa-prose code { background: var(--at-neutral-100); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.aa-prose pre { background: #0e1220; color: #e6e8ef; padding: 20px; border-radius: 14px; overflow-x: auto; margin: 0 0 22px; }
.aa-prose pre code { background: none; padding: 0; color: inherit; }
.aa-prose img { max-width: 100%; border-radius: 14px; }
.aa-filter button {
  border: 1px solid var(--at-neutral-100); background: transparent; border-radius: 999px; padding: 8px 18px;
  color: var(--at-neutral-900); margin: 0 6px 8px 0; transition: all .2s;
}
.aa-filter button.active { background: var(--at-neutral-900); color: var(--at-neutral-0); border-color: var(--at-neutral-900); }

/* CTA band */
.aa-cta { background: #0e1220; color: #fff; border-radius: 32px; position: relative; overflow: hidden; }
.aa-cta::after {
  content: ""; position: absolute; left: 50%; bottom: -260px; width: 700px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47,107,255,.5), transparent);
}
.aa-cta > * { position: relative; z-index: 1; }
.aa-cta a.aa-btn-light {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #0e1220; padding: 16px 28px;
  border-radius: 999px; font-weight: 600;
}
.aa-cta a.aa-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 16px 28px; border-radius: 999px; font-weight: 600;
}

/* Reviews */
.aa-stars .star { color: #f5b400; margin-right: 2px; }
.aa-avatar-initials {
  width: 65px; height: 65px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--aa-accent-soft); color: var(--aa-accent); font-weight: 700; font-size: 18px; letter-spacing: .02em; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
}
.aa-avatar-initials--upwork { background: #14a800; color: #fff; }
.aa-review { display: flex; flex-direction: column; background: var(--at-neutral-0); border-radius: 20px; padding: 32px;
  border: 1px solid transparent; transition: transform .35s ease, border-color .35s ease; }
.aa-review:hover { transform: translateY(-4px); border-color: var(--aa-accent-soft); }
@media (min-width: 992px) { .aa-review--offset { margin-top: 40px; height: calc(100% - 40px) !important; } }
.aa-review__via { font-size: 13px; color: var(--at-neutral-500); display: flex; align-items: center; gap: 6px; }
.aa-review__dot { width: 7px; height: 7px; border-radius: 50%; background: #14a800; }
.aa-review__project { margin: 24px 0 12px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--aa-accent); }
.aa-review-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
  background: var(--aa-accent-soft); color: var(--aa-accent); font-weight: 600; }
.aa-review-cta { background: radial-gradient(120% 120% at 100% 0%, #2a4cb8 0%, #121a33 50%, #0b0f1c 100%); min-height: 380px; }
.aa-review-cta__icon { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center;
  background: #14a800; color: #fff; }
.aa-review-cta .at-btn, .aa-review-cta .at-btn-circle { background: #fff; color: #0e1220; }
.home-5-section-7 figure blockquote { quotes: none; }
.aa-review__company { font-size: 13px; font-weight: 600; color: var(--at-neutral-900); opacity: .75; }

/* Hero: hover the portrait → photo sinks back, name pops forward */
.aa-hero-stage .aa-hero-portrait > img { transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease, opacity .7s ease; transform-origin: 50% 100%; }
.aa-hero-stage .aa-hero-portrait > div { transition: z-index 0s .35s; }
.aa-hero-name__ch { display: inline-block; transition: transform .6s cubic-bezier(.2,.9,.25,1.25), color .4s ease; }
@media (min-width: 1400px) and (hover: hover) {
  .aa-hero-stage .aa-hero-portrait { cursor: default; }
  .aa-hero-stage .aa-hero-portrait:hover > img { transform: scale(.9) translateY(4%); filter: grayscale(1) brightness(.55) blur(1.5px); opacity: .55; }
  .aa-hero-stage .aa-hero-portrait:hover > div { z-index: 2 !important; transition-delay: 0s; }
  .aa-hero-stage .aa-hero-portrait:hover .aa-hero-name__ch { transform: translateY(-14%) scale(1.04); color: var(--aa-accent); }
}
@media (prefers-reduced-motion: reduce) { .aa-hero-name__ch, .aa-hero-stage .aa-hero-portrait > img { transition: none; } }

/* Blog author avatar: true circle */
.aa-author-avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; overflow: hidden; display: block;
  box-shadow: 0 0 0 3px var(--at-neutral-0), 0 0 0 5px var(--aa-accent-soft); }
.aa-author-avatar img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 20%; display: block; }

/* Booking buttons */
.aa-header-book { align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--aa-accent); color: #fff !important;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .25s ease, box-shadow .25s ease; }
.aa-header-book:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--aa-accent-soft); }
.aa-header-book .dot, .aa-footer-book .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.aa-footer-book { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--aa-accent); }
