/* Visual refresh layered over the Tailwind utilities: rounded cards, softer
   shadows, hero badges and the service strip. Loaded after each page's own
   <style> blocks so these rules win on equal specificity. */

:root {
  --ui-ink: #191c1e;
  --ui-orange: #f46600;
  --ui-green: #276c00;
  --ui-card-shadow: 0 1px 2px rgba(25, 28, 30, 0.04),
    0 8px 24px -12px rgba(25, 28, 30, 0.12);
  --ui-card-shadow-hover: 0 2px 4px rgba(25, 28, 30, 0.04),
    0 24px 48px -20px rgba(25, 28, 30, 0.25);
}

::selection {
  background: rgba(244, 102, 0, 0.18);
}

/* ---------- Hero ---------- */
.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 14px 8px 12px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(244, 102, 0, 0.18);
  box-shadow: 0 6px 20px -12px rgba(244, 102, 0, 0.5);
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ui-pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--ui-orange);
}
.ui-pill-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ui-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ui-ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
.m-js .ui-pill {
  animation: m-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ui-btn-ghost {
  background: #fff;
  border: 1.5px solid rgba(25, 28, 30, 0.12);
  transition:
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.ui-btn-ghost:hover {
  border-color: var(--ui-orange);
  color: var(--ui-orange);
  box-shadow: 0 10px 24px -14px rgba(244, 102, 0, 0.6);
}
.ui-btn-ghost .material-symbols-outlined {
  transition: translate 0.3s ease;
}
.ui-btn-ghost:hover .material-symbols-outlined {
  translate: 4px 0;
}

#home .lg\:col-span-5 > .z-10 {
  border-radius: 20px;
}
#home .lg\:col-span-5 > .z-10 img {
  border-radius: 14px;
}
.ui-float-card {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(25, 28, 30, 0.35);
  animation: m-float 5s ease-in-out infinite;
}
.ui-float-a {
  left: 8px;
  bottom: 32px;
}
.ui-float-b {
  right: 8px;
  top: 28px;
  animation-delay: -2.5s;
}
@media (min-width: 1024px) {
  .ui-float-a {
    left: -36px;
    bottom: 56px;
  }
  .ui-float-b {
    right: -12px;
    top: 48px;
  }
}
.ui-float-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(244, 102, 0, 0.12);
  color: var(--ui-orange);
  font-size: 22px;
}
.ui-float-icon-green {
  background: rgba(39, 108, 0, 0.12);
  color: var(--ui-green);
}
.ui-float-value {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  color: var(--ui-ink);
}
.ui-float-label {
  font-size: 11px;
  font-weight: 600;
  color: #5b5f63;
}

/* ---------- Service strip ---------- */
.ui-marquee {
  overflow: hidden;
  padding: 18px 0;
  background: var(--ui-ink);
  color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ui-marquee-track {
  display: flex;
  width: max-content;
  animation: ui-marquee 32s linear infinite;
}
.ui-marquee:hover .ui-marquee-track {
  animation-play-state: paused;
}
.ui-marquee-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ui-marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--ui-orange);
}
.ui-marquee-dot:nth-of-type(4n) {
  background: #5fbf2a;
}
@keyframes ui-marquee {
  to {
    translate: -50% 0;
  }
}

/* ---------- Cards ---------- */
.intent-bar {
  position: relative;
  border: 1px solid rgba(25, 28, 30, 0.06);
  border-image: none;
  border-radius: 18px;
  box-shadow: var(--ui-card-shadow);
  overflow: hidden;
}
.intent-bar:hover {
  box-shadow: var(--ui-card-shadow-hover);
}
#services .intent-bar > .text-primary {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(244, 102, 0, 0.1);
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}
#services .intent-bar:hover > .text-primary {
  background: var(--ui-orange);
  color: #fff;
}

/* Portfolio: a real card around image + text */
.portfolio-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(25, 28, 30, 0.06);
  border-radius: 22px;
  padding: 12px 12px 26px;
  box-shadow: var(--ui-card-shadow);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ui-card-shadow-hover);
}
.portfolio-card > :not(:first-child) {
  padding-inline: 14px;
}
.portfolio-card > div:first-child {
  position: relative;
  margin-bottom: 22px;
  border-radius: 16px;
  isolation: isolate;
}
.portfolio-card img {
  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.6s ease;
}
/* Dark wash + centered call to action on hover */
.portfolio-card > div:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(25, 28, 30, 0.7),
    rgba(25, 28, 30, 0.15) 60%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.portfolio-card > div:first-child::after {
  content: "View project  \2192";
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  padding: 11px 22px;
  border-radius: 9999px;
  background: #fff;
  color: var(--ui-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: pre;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  translate: -50% 16px;
  transition:
    opacity 0.4s ease,
    translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.portfolio-card:hover > div:first-child::before {
  opacity: 1;
}
.portfolio-card:hover > div:first-child::after {
  opacity: 1;
  translate: -50% 0;
}
.portfolio-card .flex.gap-3 > span {
  border-radius: 9999px;
  padding: 5px 12px;
}
.portfolio-card h3 {
  transition: color 0.3s ease;
}
.portfolio-card:hover h3 {
  color: var(--ui-orange);
}

/* About */
#about img {
  border-radius: 20px;
}

/* Journey milestones become cards */
#journey .m-timeline > * > div:first-child {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--ui-card-shadow);
  transition:
    box-shadow 0.4s ease,
    translate 0.4s ease;
}
#journey .m-timeline > *:hover > div:first-child {
  box-shadow: var(--ui-card-shadow-hover);
  translate: 0 -4px;
}

/* Testimonials */
#testimonials .grid > * {
  position: relative;
  border-radius: 18px;
  box-shadow: var(--ui-card-shadow);
}
#testimonials .grid > *::after {
  content: "\201C";
  position: absolute;
  top: 8px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: rgba(244, 102, 0, 0.12);
  pointer-events: none;
}
#testimonials .grid > *:hover {
  box-shadow: var(--ui-card-shadow-hover);
}
#testimonials .text-secondary {
  color: #f5a524;
}
#testimonials img {
  border-radius: 9999px;
}

/* Contact */
#contact form {
  position: relative;
}
#contact > div > div:last-child {
  border-radius: 20px;
  box-shadow: var(--ui-card-shadow);
}
#contact input,
#contact textarea {
  border-radius: 12px;
}
#contact button[type="submit"],
#contact form button {
  border-radius: 12px;
}

/* Policy pages: content cards */
main section:not(:first-child) .grid.gap-8 > .intent-bar {
  border-radius: 18px;
}

/* Footer social icons */
footer .rounded-full {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    translate 0.3s ease;
}
footer a.rounded-full:hover {
  translate: 0 -3px;
}

@media (prefers-reduced-motion: reduce) {
  .ui-marquee-track,
  .ui-float-card,
  .ui-pill-dot::after {
    animation: none;
  }
}

/* Menu link for the section currently in view (set by motion.js) */
.nav-link.is-active {
  color: var(--ui-orange);
}
.nav-link.is-active::after {
  width: 100%;
}
.mobile-link.is-active {
  color: var(--ui-orange);
}
