/* Eximious Tech 2026 professional upgrade
   This layer deliberately preserves the original site structure and components. */

:root {
  --bg: #07111f;
  --bg-soft: #0b1a2d;
  --bg-elevated: #10243c;
  --card: #0e2138;
  --card-solid: #0e2138;
  --text: #f7fbff;
  --white: #ffffff;
  --muted: #b8c7d9;
  --muted-strong: #e4edf7;
  --blue: #64c7ff;
  --blue-dark: #1688d4;
  --blue-bright: #31aef5;
  --blue-deep: #083b6f;
  --blue-soft: rgba(49, 174, 245, 0.13);
  --line: rgba(163, 211, 246, 0.13);
  --border: rgba(163, 211, 246, 0.17);
  --focus: #8ed8ff;
  --success: #68d6a2;
  --danger: #ff9b9b;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.13);
  --radius: 14px;
  --radius-small: 10px;
  --max-width: 1220px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f7f6f1;
  --bg-soft: #eeece4;
  --bg-elevated: #ffffff;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --text: #17191d;
  --white: #111315;
  --muted: #5f6671;
  --muted-strong: #2f3339;
  --blue: #8132a8;
  --blue-dark: #735f25;
  --blue-bright: #32a844;
  --blue-deep: #5b491c;
  --blue-soft: rgba(168, 139, 50, 0.14);
  --line: rgba(17, 19, 21, 0.1);
  --border: rgba(17, 19, 21, 0.12);
  --focus: #80361f;
  --success: #247a50;
  --danger: #a92d2d;
  --shadow: 0 24px 70px rgba(46, 40, 24, 0.13);
  --shadow-soft: 0 12px 35px rgba(46, 40, 24, 0.1);
  color-scheme: light;
}

html {
  scroll-padding-top: 88px;
}

body {
  background:
    radial-gradient(circle at 85% 5%, rgba(49, 174, 245, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
}

body::before {
  background-image:
    linear-gradient(rgba(100, 199, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 199, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(8, 107, 179, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 107, 179, 0.025) 1px, transparent 1px);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10000;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--blue-bright);
  color: #03111d;
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.hero h1,
.page-banner h1,
.portfolio-hero__content h1,
.article-hero h1 {
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 1.04;
}

.section-heading h2,
.section-title,
.contact-info h2,
.cta-box h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
}

/* Header and navigation */
.site-header,
html[data-theme="light"] .site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled,
html[data-theme="light"] .site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nav-wrap {
  min-height: 76px;
}

.logo img {
  width: 60px !important;
  height: 49px;
  object-fit: contain;
  filter: none;
}

html[data-theme="light"] .site-header .site-nav ul {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);}

.site-nav ul,
html[data-theme="light"] .site-nav ul {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 2px;
  backdrop-filter: none;
}

.site-nav a {
  min-height: 44px;
  padding: 9px 11px;
  color: var(--muted-strong);
  font-size: 0.89rem;
  border-radius: 9px;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--blue-soft);
}

.btn-nav,
.site-nav .btn-nav {
  background: var(--blue-bright);
  color: #03111d !important;
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-nav:hover,
.site-nav .btn-nav:hover {
  background: #73cbfb;
  color: #03111d !important;
}

.theme-toggle,
.hamburger-toggle {
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: none;
}

.theme-toggle:hover,
.hamburger-toggle:hover {
  border-color: var(--blue-bright);
  background: var(--blue-soft);
}

/* Buttons: clean and shadow-free */
.btn-primary,
.btn-secondary,
.read-more-btn,
.filter-btn,
.pagination button,
.contact-form button,
.reference-footer__form button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: none !important;
  transform: none;
}

.btn-primary,
.read-more-btn,
.contact-form button,
.filter-btn.active,
.pagination button.active {
  background: var(--blue-bright);
  color: #03111d;
  border-color: var(--blue-bright);
}

.btn-primary:hover,
.read-more-btn:hover,
.contact-form button:hover {
  background: #79d2ff;
  color: #03111d;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-secondary {
  border-color: color-mix(in srgb, var(--blue-bright) 55%, var(--border));
  background: transparent;
  color: var(--blue);
}

.btn-secondary:hover {
  border-color: var(--blue-bright);
  background: var(--blue-soft);
  color: var(--text);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: clamp(72px, 9vw, 116px) 0 clamp(72px, 8vw, 104px);
}

.hero::before,
.page-banner::before {
  background:
    linear-gradient(120deg, rgba(49, 174, 245, 0.16), transparent 44%),
    linear-gradient(260deg, rgba(8, 107, 179, 0.11), transparent 40%);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(36px, 6vw, 72px);
}

.tag,
.section-tag,
.page-kicker,
.service-block__tag,
.footer-kicker,
.blog-meta {
  color: var(--blue);
}

.tag,
.section-tag,
.page-kicker {
  border: 1px solid color-mix(in srgb, var(--blue-bright) 35%, transparent);
  background: var(--blue-soft);
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-actions {
  align-items: center;
}

.hero-proof {
  margin-top: 26px;
}

.hero-proof span {
  border-color: var(--border);
  background: var(--card);
  color: var(--muted-strong);
}

.trust-note {
  margin-top: 16px;
  margin-bottom: 0 !important;
  font-size: 0.94rem !important;
}

.hero-image {
  min-height: 460px;
}

.hero-image::before {
  inset: 18px -12px -18px 18px;
  border-color: rgba(49, 174, 245, 0.26);
  background: linear-gradient(135deg, rgba(49, 174, 245, 0.14), transparent);
}

.hero-image img {
  min-height: 460px;
  border-color: var(--border);
  box-shadow: var(--shadow);
  animation: none;
}

.capability-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(4, 17, 31, 0.82);
  color: #fff;
  backdrop-filter: blur(14px);
}

.capability-panel span {
  color: #c9dded;
  font-size: 0.92rem;
}

/* Sections and cards */
.section,
.cta,
.blog-section {
  padding: clamp(66px, 8vw, 96px) 0;
}

.section-dark,
.blog-section {
  background:
    linear-gradient(180deg, rgba(49, 174, 245, 0.035), transparent),
    var(--bg-soft);
  border-block: 1px solid var(--border);
}

.card,
.info-box,
.cta-box,
.blog-card,
.process-card,
.legal-card,
.contact-detail-card,
.contact-form,
.article-body,
.service-block,
.faq-item,
.featured-project-card {
  border-color: var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.card:hover,
.process-card:hover,
.contact-detail-card:hover,
.blog-card:hover,
.featured-project-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue-bright) 40%, var(--border));
  box-shadow: var(--shadow-soft);
}

.cards-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card h3 {
  margin: 14px 0 8px;
}

.service-card p {
  margin-bottom: 18px;
}

.service-card > a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.icon-badge {
  min-width: 42px;
  width: auto;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue-bright) 30%, var(--border));
  font-size: 0.78rem;
}

.feature-list li::before {
  color: var(--blue-bright);
}

.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.featured-project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.featured-project-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.featured-project-card > div {
  padding: 24px;
}

.featured-project-card > div > span {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.82rem;
}

.featured-project-card h3 {
  margin: 8px 0;
}

.project-services {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.card-actions > a:not(.btn-secondary) {
  color: var(--blue);
  font-weight: 800;
}

.technology-summary {
  border-top: 4px solid var(--blue-bright);
}

.process-grid--eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credibility-note .cta-box {
  max-width: 900px;
  margin-inline: auto;
}

.final-cta .cta-box {
  border-color: color-mix(in srgb, var(--blue-bright) 45%, var(--border));
  background:
    linear-gradient(135deg, rgba(49, 174, 245, 0.11), transparent 50%),
    var(--card);
}

/* Page banners */
.page-banner,
.portfolio-hero,
.article-hero {
  background:
    radial-gradient(circle at 78% 25%, rgba(49, 174, 245, 0.18), transparent 23rem),
    var(--bg-soft);
  color: var(--text);
}

.software-banner .container {
  max-width: 920px;
}

.software-banner .hero-actions {
  justify-content: center;
  margin-top: 24px;
}

/* Portfolio */
.portfolio-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(49, 174, 245, 0.2), transparent 25rem),
    var(--bg-soft);
}

.portfolio-card,
.portfolio-thumb-card,
.case-card {
  box-shadow: var(--shadow-soft);
}

.portfolio-card:hover,
.case-card:hover,
.case-card:focus-within {
  border-color: color-mix(in srgb, var(--blue-bright) 42%, var(--border));
  box-shadow: var(--shadow-soft);
}

.filter-btn {
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}

.filter-btn:hover {
  border-color: var(--blue-bright);
  background: var(--blue-soft);
}

.portfolio-empty-message {
  color: var(--muted);
}

.project-modal__panel {
  border-color: var(--border);
  background: var(--bg-elevated);
}

/* Forms */
.contact-grid {
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 105px;
}

.contact-detail-card {
  display: grid;
  gap: 3px;
}

.contact-detail-card a,
.contact-detail-card span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid > div {
  min-width: 0;
}

.contact-form label {
  color: var(--muted-strong);
  font-weight: 750;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  display: block;
  margin: -7px 0 10px;
  color: var(--danger);
  font-size: 0.86rem;
}

.consent-label {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 500 !important;
}

.consent-label input {
  min-height: 20px;
  width: 20px;
  margin-top: 3px;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
}

.map-box iframe {
  border-radius: var(--radius);
}


.contact-form .hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Blog */
.blog-card img,
.blog-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body a {
  color: var(--blue);
}

/* =========================================================
   EXIMIOUS TECH — REFERENCE-STYLE GLOBAL FOOTER
   Shared by every page. Kept dark in both color modes.
   ========================================================= */
.reference-footer.site-footer {
  --footer-accent: #ff910b;
  --footer-bg: #020202;
  --footer-text: #d8d8d8;
  --footer-muted: #a9a9a9;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 68px 0 0 !important;
  border: 0 !important;
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
}

html[data-theme="light"] .reference-footer.site-footer,
html[data-theme="dark"] .reference-footer.site-footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
}

.reference-footer,
.reference-footer * {
  box-sizing: border-box;
  box-shadow: none !important;
}

.reference-footer::before,
.reference-footer::after {
  content: none !important;
  display: none !important;
}

.reference-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(150px, 0.72fr) minmax(180px, 0.9fr) minmax(230px, 1fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: start;
  padding-bottom: 54px;
}

.reference-footer__brand,
.reference-footer__column,
.reference-footer__subscribe {
  min-width: 0;
}

.reference-footer__logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 4px;
}

.reference-footer__logo img {
  display: block;
  width: auto;
  max-width: 170px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
}

.reference-footer__tagline {
  margin: 0 0 25px !important;
  color: #9d9d9d !important;
  font-size: 0.78rem;
  line-height: 1.4;
}

.reference-footer h2,
html[data-theme="light"] .reference-footer h2,
html[data-theme="dark"] .reference-footer h2 {
  margin: 0 0 15px !important;
  color: var(--footer-accent) !important;
  font-size: 1.02rem !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.reference-footer__about,
.reference-footer__subscribe > p {
  margin: 0 !important;
  max-width: 34ch;
  color: var(--footer-text) !important;
  font-size: 0.88rem;
  line-height: 1.72;
}

.reference-footer__contact {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.reference-footer__contact a,
html[data-theme="light"] .reference-footer__contact a,
html[data-theme="dark"] .reference-footer__contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  color: var(--footer-muted) !important;
  text-decoration: none;
  font-size: 0.83rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.reference-footer__contact a:hover,
.reference-footer__contact a:focus-visible {
  color: #ffffff !important;
}

.reference-footer__contact svg,
.reference-footer__input-wrap > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 2px;
  fill: var(--footer-accent);
}

.reference-footer__column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-footer__column li {
  margin: 0;
}

.reference-footer__column a,
html[data-theme="light"] .reference-footer__column a,
html[data-theme="dark"] .reference-footer__column a {
  display: inline-flex;
  padding: 1px 0;
  color: var(--footer-text) !important;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.55;
  transition: color 0.2s ease, transform 0.2s ease;
}

.reference-footer__column a:hover,
.reference-footer__column a:focus-visible {
  color: var(--footer-accent) !important;
  transform: translateX(3px);
}

.reference-footer__subscribe > p {
  margin-bottom: 15px !important;
  color: var(--footer-muted) !important;
}

.reference-footer__form {
  display: grid;
  justify-items: start;
  gap: 11px;
  width: 100%;
  max-width: 320px;
}

.reference-footer__input-wrap {
  position: relative;
  width: 100%;
}

.reference-footer__input-wrap > svg {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  margin: 0;
  transform: translateY(-50%);
  fill: #222222;
  pointer-events: none;
}

.reference-footer__input-wrap input,
html[data-theme="light"] .reference-footer__input-wrap input,
html[data-theme="dark"] .reference-footer__input-wrap input {
  display: block;
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 10px 13px 10px 39px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  outline: none;
  background: #ffffff !important;
  color: #171717 !important;
  font: inherit;
  font-size: 0.82rem;
}

.reference-footer__input-wrap input::placeholder {
  color: #777777;
  opacity: 1;
}

.reference-footer__input-wrap input:focus {
  border-color: var(--footer-accent);
  outline: 3px solid rgba(255, 151, 24, 0.2);
}

.reference-footer__form button,
html[data-theme="light"] .reference-footer__form button,
html[data-theme="dark"] .reference-footer__form button {
  min-height: 38px;
  margin: 0;
  padding: 9px 22px;
  border: 1px solid var(--footer-accent);
  border-radius: 3px;
  background: var(--footer-accent) !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.reference-footer__form button:hover,
.reference-footer__form button:focus-visible {
  background: transparent !important;
  color: var(--footer-accent) !important;
}

.reference-footer__divider {
  height: 1px;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
}

.reference-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.reference-footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reference-footer__socials a,
html[data-theme="light"] .reference-footer__socials a,
html[data-theme="dark"] .reference-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--footer-accent);
  border-radius: 50%;
  background: var(--footer-accent) !important;
  color: #ffffff !important;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.reference-footer__socials a:hover,
.reference-footer__socials a:focus-visible {
  background: transparent !important;
  color: var(--footer-accent) !important;
  transform: translateY(-2px);
}

.reference-footer__socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.reference-footer__socials a:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.reference-footer__socials a:nth-child(2) .fill-dot {
  fill: currentColor;
  stroke: none;
}

.reference-footer__copyright,
html[data-theme="light"] .reference-footer__copyright,
html[data-theme="dark"] .reference-footer__copyright {
  justify-self: end;
  margin: 0 !important;
  color: #8f8f8f !important;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
}

.reference-footer #backToTop.reference-footer__top,
html[data-theme="light"] .reference-footer #backToTop.reference-footer__top,
html[data-theme="dark"] .reference-footer #backToTop.reference-footer__top {
  position: absolute !important;
  right: max(20px, calc((100vw - min(1180px, 92vw)) / 2));
  bottom: 105px !important;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--footer-accent);
  border-radius: 2px;
  background: var(--footer-accent) !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  opacity: 1;
  visibility: visible;
  transform: none;
  cursor: pointer;
}

.reference-footer #backToTop.reference-footer__top:hover,
.reference-footer #backToTop.reference-footer__top:focus-visible {
  background: transparent !important;
  color: var(--footer-accent) !important;
}

.reference-footer a:focus-visible,
.reference-footer button:focus-visible,
.reference-footer input:focus-visible {
  outline: 3px solid rgba(255, 151, 24, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .reference-footer__main {
    grid-template-columns: minmax(250px, 1.2fr) repeat(2, minmax(150px, 0.8fr));
    gap: 42px 34px;
  }

  .reference-footer__subscribe {
    grid-column: 1 / -1;
  }

  .reference-footer__form {
    grid-template-columns: minmax(210px, 360px) auto;
    max-width: 500px;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .reference-footer.site-footer {
    padding-top: 52px !important;
  }

  .reference-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
    padding-bottom: 45px;
  }

  .reference-footer__brand,
  .reference-footer__subscribe {
    grid-column: 1 / -1;
  }

  .reference-footer__about {
    max-width: 52ch;
  }

  .reference-footer__form {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 520px;
  }

  .reference-footer__bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 132px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .reference-footer__bottom-spacer {
    display: none;
  }

  .reference-footer__socials {
    order: 1;
  }

  .reference-footer__copyright {
    order: 2;
    justify-self: center;
    text-align: center;
  }

  .reference-footer #backToTop.reference-footer__top {
    bottom: 154px !important;
  }
}

@media (max-width: 520px) {
  .reference-footer.site-footer {
    padding-top: 46px !important;
  }

  .reference-footer__main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 38px;
  }

  .reference-footer__brand,
  .reference-footer__subscribe {
    grid-column: auto;
  }

  .reference-footer__column {
    padding-top: 2px;
  }

  .reference-footer__logo img {
    max-width: 150px;
    height: 48px;
  }

  .reference-footer__form {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  .reference-footer__form button {
    width: 100%;
  }

  .reference-footer__socials {
    flex-wrap: wrap;
    gap: 9px;
  }

  .reference-footer__socials a {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .reference-footer #backToTop.reference-footer__top {
    right: 16px;
    bottom: 156px !important;
  }
}


.reference-footer .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.whatsapp-float {
  background: #049409;
  color: #fff;
}

/* Responsive */
@media (max-width: 1120px) {
  .hamburger-toggle {
    display: inline-flex;
    order: 3;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
  }

  .logo {
    order: 1;
  }

  .site-nav {
    display: block;
    position: fixed;
    inset: 76px 0 auto;
    z-index: 999;
    order: 4;
    width: 100%;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 18px 20px 28px;
    background: color-mix(in srgb, var(--bg-elevated) 98%, transparent);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul,
  html[data-theme="light"] .site-nav ul {
    width: min(100%, 720px);
    margin-inline: auto;
    display: grid;
    gap: 7px;
  }

  .site-nav a {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a.active,
  .site-nav a[aria-current="page"] {
    border-color: var(--border);
  }

  .site-nav .btn-nav {
    margin-top: 5px;
    justify-content: center;
  }

  .service-card-grid,
  .cards-grid.four,
  .process-grid--eight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


}

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    max-width: 760px;
  }

  .hero-image {
    min-height: 380px;
  }

  .hero-image img {
    min-height: 380px;
  }

  .contact-info {
    position: static;
  }

  .featured-project-grid,
  .blog-cards {
    grid-template-columns: 1fr 1fr;
  }

  .featured-project-card:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    justify-self: center;
  }
}


/* Branded page banners and contact-panel contrast */
.page-banner h1,
.page-banner p,
.page-banner .page-kicker {
  color: #fff;
}

.page-banner .btn-secondary,
.software-banner .btn-secondary,
.contact-page .contact-info .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.page-banner .btn-secondary:hover,
.software-banner .btn-secondary:hover,
.contact-page .contact-info .btn-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
}

.contact-page .contact-info,
.contact-page .contact-info h2,
.contact-page .contact-info p,
.contact-page .contact-info .section-tag,
.contact-page .contact-detail-card strong {
  color: #fff;
}

.contact-page .contact-detail-card a,
.contact-page .contact-detail-card span {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .site-nav {
    inset-block-start: 68px;
    max-height: calc(100dvh - 68px);
  }

  .theme-toggle,
  .hamburger-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .hero {
    padding-top: 66px;
  }

  .hero h1,
  .page-banner h1,
  .portfolio-hero__content h1,
  .article-hero h1 {
    font-size: clamp(2rem, 8.7vw, 2.55rem);
  }

  .section-heading h2,
  .section-title,
  .contact-info h2,
  .cta-box h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hero-actions,
  .portfolio-hero__actions,
  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions > *,
  .portfolio-hero__actions > *,
  .card-actions > * {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-image,
  .hero-image img {
    min-height: 320px;
  }

  .capability-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px 14px;
  }

  .service-card-grid,
  .cards-grid.three,
  .cards-grid.four,
  .cards-grid.five,
  .process-grid,
  .process-grid--eight,
  .featured-project-grid,
  .blog-cards,
  .form-grid,
  .reference-footer__main,
  .portfolio-cta__info {
    grid-template-columns: 1fr;
  }

  .featured-project-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .card,
  .process-card,
  .legal-card,
  .contact-detail-card,
  .info-box,
  .cta-box,
  .contact-form,
  .article-body {
    padding: 21px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  .whatsapp-float span {
    font-size: 0;
  }

  .whatsapp-float span::after {
  content: none;
  display: none;
}
}
.whatsapp-icon {
  width: 25px;
  height: 25px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float span::after {
    content: none;
    display: none;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 380px) {
  .container {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .logo img {
    width: 52px !important;
    height: 43px;
  }

  .nav-wrap {
    gap: 8px;
  }

  .theme-toggle,
  .hamburger-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero h1,
  .page-banner h1,
  .portfolio-hero__content h1,
  .article-hero h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Final mobile heading specificity override for the original home-page selector. */
@media (max-width: 640px) {
  .home-page .hero h1 {
    font-size: clamp(2rem, 8.7vw, 2.55rem);
  }
}

@media (max-width: 380px) {
  .home-page .hero h1 {
    font-size: 2rem;
  }
}


/* Reference-inspired refinement: original Eximious Tech implementation */
.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 36px;
  align-items: end;
  text-align: left;
}
.section-heading--split > p { margin: 0; max-width: 590px; justify-self: end; }
.service-division-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-division-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
.service-division-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--blue-dark), var(--blue-bright), var(--blue)); }
.service-division-card__number { position: absolute; top: 18px; right: 24px; color: color-mix(in srgb, var(--blue) 22%, transparent); font-size: 4.2rem; font-weight: 900; line-height: 1; }
.service-division-card h3 { margin: 24px 0 12px; font-size: clamp(1.55rem, 2.2vw, 2.15rem); }
.service-division-card p { color: var(--muted); }
.service-division-card ul { display: grid; gap: 10px; margin: 18px 0 28px; padding: 0; list-style: none; }
.service-division-card li { position: relative; padding-left: 24px; color: var(--muted-strong); }
.service-division-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-bright); font-weight: 900; }
.service-division-card__actions { display: grid; gap: 12px; margin-top: auto; }
.service-division-card__actions > a:not(.btn-primary) { color: var(--blue); font-weight: 800; }
.concise-message-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); }
.concise-message-strip strong { padding: 18px 20px; background: var(--bg-elevated); color: var(--muted-strong); font-size: .94rem; }
.featured-project-grid--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-project-grid--editorial .featured-project-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); min-height: 410px; }
.featured-project-grid--editorial .featured-project-card > img { height: 100%; aspect-ratio: auto; min-height: 350px; }
.featured-project-grid--editorial .featured-project-card > div { display: flex; flex-direction: column; justify-content: center; }
.featured-project-grid--editorial .featured-project-card--large { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); }
.business-benefits { overflow: hidden; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--border); gap: 1px; }
.benefit-grid article { min-height: 240px; padding: 28px; background: var(--card); }
.benefit-grid span { color: var(--blue); font-size: .84rem; font-weight: 900; letter-spacing: .08em; }
.benefit-grid h3 { margin: 28px 0 10px; }
.benefit-grid p { margin: 0; color: var(--muted); }
.software-capabilities__grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr); gap: 52px; align-items: center; }
.capability-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.capability-chips span { padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted-strong); font-size: .86rem; }
.dashboard-demo { overflow: hidden; border: 1px solid color-mix(in srgb, var(--blue-bright) 35%, var(--border)); border-radius: 22px; background: #f7fbff; box-shadow: var(--shadow); color: #0a1a2d; }
.dashboard-demo__top { display: flex; justify-content: space-between; padding: 18px 22px; background: #07111f; color: #fff; font-size: .85rem; font-weight: 800; }
.dashboard-demo__body { display: grid; grid-template-columns: 150px 1fr; min-height: 390px; }
.dashboard-demo__sidebar { display: grid; align-content: start; gap: 20px; padding: 26px 18px; background: #0b1a2d; color: #d4e2f2; font-size: .82rem; }
.dashboard-demo__sidebar strong { padding: 10px; border-radius: 8px; background: #e6dc15; color: #fff; }
.dashboard-demo__main { padding: 24px; }
.dashboard-demo__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dashboard-demo__metrics div { padding: 16px; border-radius: 12px; background: #574fc6; }
.dashboard-demo__metrics small { display: block; color: #f00000; }
.dashboard-demo__metrics strong { display: block; margin-top: 5px; color: #063633; }
.dashboard-demo__chart { display: flex; align-items: end; gap: 12px; height: 150px; margin: 22px 0; padding: 18px; border: 1px solid #d9e9f5; border-radius: 14px; }
.dashboard-demo__chart span { flex: 1; min-height: 30px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #f5b951 0%, #c87916 50%, #843f03 100%); }
    .dashboard-demo__chart span:nth-child(1) { height: 35%; }.dashboard-demo__chart span:nth-child(2) { height: 52%; }.dashboard-demo__chart span:nth-child(3) { height: 30%; }.dashboard-demo__chart span:nth-child(4) { height: 70%; }.dashboard-demo__chart span:nth-child(5) { height: 88%; }
.dashboard-demo__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dashboard-demo__steps span { padding: 10px 6px; border-radius: 999px; background: #d9effc; color: #086bb3; text-align: center; font-size: .75rem; font-weight: 800; }
.case-study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.case-study-card { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.case-study-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.case-study-card > div { padding: 24px; }
.case-study-card span { color: var(--blue); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.case-study-card h3 { margin: 8px 0 10px; }
.case-study-card p { color: var(--muted); }
.case-study-card a { color: var(--blue); font-weight: 900; }
.case-study-hero { padding: clamp(105px, 12vw, 160px) 0 clamp(66px, 8vw, 96px); background: radial-gradient(circle at 80% 20%, rgba(49,174,245,.2), transparent 28rem), var(--bg-soft); border-bottom: 1px solid var(--border); }
.case-study-hero h1 { max-width: 920px; margin: 18px 0; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.03; }
.case-study-hero p { max-width: 760px; font-size: 1.13rem; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--blue); }
.case-study-overview__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 46px; align-items: center; }
.case-study-visual { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
.case-study-visual img { width: 100%; height: auto; max-height: 720px; object-fit: contain; border-radius: 0; }
.case-study-summary dl { display: grid; gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); }
.case-study-summary dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 15px 17px; background: var(--card); }
.case-study-summary dt { color: var(--muted); font-weight: 700; }.case-study-summary dd { margin: 0; color: var(--muted-strong); }
.case-study-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-study-story article { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.case-study-story article > span { color: var(--blue); font-weight: 900; }
.case-study-story h2 { margin: 24px 0 12px; font-size: 1.55rem; }
.local-service-positioning .info-box { border-top: 4px solid var(--blue-bright); }
.project-modal__actions { flex-wrap: wrap; }
@media (max-width: 1120px) {
  .service-division-grid, .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .software-capabilities__grid { grid-template-columns: 1fr; }
  .dashboard-demo { max-width: 850px; }
}
@media (max-width: 860px) {
  .section-heading--split, .case-study-overview__grid { grid-template-columns: 1fr; }
  .section-heading--split > p { justify-self: start; }
  .featured-project-grid--editorial { grid-template-columns: 1fr; }
  .featured-project-grid--editorial .featured-project-card,
  .featured-project-grid--editorial .featured-project-card--large { grid-column: auto; grid-template-columns: 1fr; }
  .featured-project-grid--editorial .featured-project-card > img { min-height: 280px; max-height: 480px; }
  .case-study-grid, .case-study-story { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-division-grid, .benefit-grid, .concise-message-strip { grid-template-columns: 1fr; }
  .service-division-card { min-height: 0; padding: 25px; }
  .service-division-card__number { font-size: 3.3rem; }
  .benefit-grid article { min-height: 0; }
  .dashboard-demo__body { grid-template-columns: 1fr; }
  .dashboard-demo__sidebar { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .dashboard-demo__sidebar span:nth-of-type(n+3) { display: none; }
  .dashboard-demo__metrics { grid-template-columns: 1fr; }
  .dashboard-demo__steps { grid-template-columns: repeat(2, 1fr); }
  .case-study-summary dl div { grid-template-columns: 1fr; gap: 4px; }
}


/* Reference-upgrade hero clarity and resilient first-paint visibility */
.home-page .hero .hero-proof span {
  background: rgba(7, 17, 31, 0.78);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.home-page .hero-image.reveal-on-scroll {
  opacity: 1;
  transform: rotate(1.5deg);
}

.home-page .hero-image img {
  opacity: 1 !important;
  visibility: visible !important;
  background: #f6f9ff;
}

@media (max-width: 768px) {
  .home-page .hero-image.reveal-on-scroll {
    transform: none;
  }
  .home-page .hero .hero-proof span {
    text-align: center;
  }
}

/* V3 hosted-design restoration patch */
html[data-theme="light"] body {
  background:
    linear-gradient(130deg, rgba(17, 19, 17, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.05), transparent 30%),
    var(--bg);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(17, 19, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 21, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}

html[data-theme="light"] .site-header {
  background: rgba(85, 71, 232, 0.68);
}

html[data-theme="light"] .site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 14px 34px rgba(46, 40, 24, 0.11);
}

html[data-theme="light"] .site-nav ul {
  background: rgba(83, 89, 248, 0.78);
  border: 1px solid var(--border);
}

.home-page .hero {
  padding: 104px 0 92px;
}

.home-page .hero::before {
  background:
    linear-gradient(115deg, rgba(199, 170, 74, 0.16), transparent 42%),
    linear-gradient(260deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

.home-page .hero h1 {
  max-width: 720px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.03;
}

.home-page .hero-image {
  min-height: 420px;
}

.home-page .hero-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

html[data-theme="light"] .section-dark,
html[data-theme="light"] .blog-section {
  background:
    linear-gradient(180deg, rgba(17, 19, 21, 0.025), transparent),
    var(--bg-soft);
}

html[data-theme="light"] :is(.card, .service-division-card, .featured-project-card, .benefit-grid article, .process-card, .case-study-card, .faq-item, .contact-form, .contact-detail-card, .article-body, .legal-card) {
  background: var(--card-solid);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

html[data-theme="light"] :is(.card, .service-division-card, .featured-project-card, .benefit-grid article, .process-card, .case-study-card, .faq-item, .contact-form, .contact-detail-card, .article-body, .legal-card) :is(h2, h3, h4, strong) {
  color: var(--text);
}

html[data-theme="light"] :is(.card, .service-division-card, .featured-project-card, .benefit-grid article, .process-card, .case-study-card, .faq-item, .contact-form, .contact-detail-card, .article-body, .legal-card) :is(p, li, small) {
  color: var(--muted);
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .read-more-btn,
html[data-theme="light"] .contact-form button,
html[data-theme="light"] .filter-btn.active,
html[data-theme="light"] .pagination button.active {
  background: #2b7ae2;
  border-color: #2b7ae2;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .read-more-btn:hover,
html[data-theme="light"] .contact-form button:hover {
  background: #1d62bd;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="light"] .btn-secondary {
  border-color: rgba(115, 95, 37, 0.44);
  background: rgba(255, 255, 255, 0.42);
  color: var(--blue-dark);
  box-shadow: none;
}

html[data-theme="light"] .btn-secondary:hover {
  background: var(--blue-soft);
  color: var(--text);
}

html[data-theme="light"] :is(input, textarea, select, .blog-search) {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="light"] :is(input, textarea, select, .blog-search)::placeholder {
  color: #737983;
}

html[data-theme="light"] .reference-footer {
  background: #e7e3d6;
  color: var(--text);
}

html[data-theme="light"] .reference-footer__socials a {
  background: rgba(255, 255, 255, 0.58);
  color: var(--text) !important;
  border-color: rgba(17, 19, 21, 0.15);
}

.reference-footer__socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.reference-footer__socials svg rect,
.reference-footer__socials svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.reference-footer__socials svg .fill-dot {
  fill: currentColor;
  stroke: none;
}

.service-division-card {
  padding-top: 24px;
}

.service-division-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.service-division-card--creative .service-division-card__image {
  object-position: center;
}

.service-division-card__number {
  z-index: 2;
  top: 34px;
  right: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.82);
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.service-division-card h3 {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .home-page .hero {
    padding: 72px 0 66px;
  }

  .home-page .hero-image,
  .home-page .hero-image img {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .home-page .hero h1 {
    font-size: clamp(2rem, 8.7vw, 2.55rem);
  }

  .home-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .service-division-card__number {
    top: 31px;
    right: 31px;
  }
}


/* Light-header contrast correction */
html[data-theme="light"] .site-nav a:not(.btn-nav) {
  color: var(--text) !important;
}

html[data-theme="light"] .site-nav a:not(.btn-nav):hover,
html[data-theme="light"] .site-nav a:not(.btn-nav).active,
html[data-theme="light"] .site-nav a:not(.btn-nav)[aria-current="page"] {
  color: var(--text) !important;
  background: var(--blue-soft);
}

html[data-theme="light"] .site-nav .btn-nav {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #111315 !important;
}

/* Keep service-division images in a consistent landscape ratio. */
.service-division-card__image {
  height: auto !important;
  max-height: 250px;
}

/* Explicit canvas colours prevent legacy background shorthands from leaking
   the dark canvas into light mode. */
html[data-theme="light"],
html[data-theme="light"] body {
  background-color: #f7f6f1 !important;
}

html[data-theme="light"] body {
  background-image:
    linear-gradient(130deg, rgba(17, 19, 17, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.05), transparent 30%) !important;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background-color: #07111f;
}


/* --- Ghostwriter v4 fixes start --- */
html[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-soft: #eef3f7;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --text: #122033;
  --white: #0e2239;
  --muted: #5d6b7c;
  --muted-strong: #27435f;
  --blue: #0f88c8;
  --blue-dark: #0b6ca0;
  --blue-bright: #57b8ed;
  --blue-deep: #124978;
  --blue-soft: rgba(87, 184, 237, 0.15);
  --line: rgba(18, 32, 51, 0.08);
  --border: rgba(18, 32, 51, 0.12);
  --focus: #57b8ed;
  --shadow: 0 16px 40px rgba(23, 49, 84, 0.08);
  --shadow-soft: 0 8px 20px rgba(23, 49, 84, 0.06);
}
html[data-theme="light"] body {
  background: var(--bg);
}
html[data-theme="light"] body::before {
  display: none;
}
html[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: rgba(18, 32, 51, 0.08);
}


html[data-theme="light"] .site-nav a.active,
html[data-theme="light"] .site-nav a:hover {
  color: var(--blue);
}
html[data-theme="light"] .btn-nav {
  color: #111315 !important;
}
html[data-theme="light"] .page-banner,
html[data-theme="light"] .portfolio-hero {
  background: linear-gradient(180deg, rgba(87,184,237,0.08), transparent 68%);
}


/* Contact and software enquiry blocks smaller */
.contact-grid.enhanced-contact {
  align-items: start;
  gap: 26px;
}
.contact-page .contact-detail-card,
#software-enquiry .contact-detail-card {
  padding: 18px 22px;
  min-height: auto;
  border-radius: 22px;
  margin-bottom: 14px;
}
.contact-page .contact-info,
#software-enquiry .contact-info {
  display: grid;
  gap: 10px;
}
.contact-page .contact-form,
#software-enquiry .contact-form {
  padding: 24px;
  border-radius: 22px;
}
.contact-page .contact-form textarea,
#software-enquiry .contact-form textarea {
  min-height: 170px;
}
.contact-form label {
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select,
.blog-search {
  border-radius: 16px;
  min-height: 52px;
}
.contact-page .faq-question {
  cursor: pointer;
}
html[data-theme="light"] .contact-page .contact-detail-card,
html[data-theme="light"] #software-enquiry .contact-detail-card {
  background: #ffffff;
  border-color: rgba(18, 32, 51, 0.10);
}
html[data-theme="light"] .contact-page .contact-detail-card a,
html[data-theme="light"] .contact-page .contact-detail-card span,
html[data-theme="light"] #software-enquiry .contact-detail-card a,
html[data-theme="light"] #software-enquiry .contact-detail-card span {
  color: #27435f;
}

/* Service cards with neat image boxes */
.service-card {
  overflow: hidden;
}
.service-card__media {
  margin: -22px -22px 16px;
  background: color-mix(in srgb, var(--bg-elevated) 84%, var(--blue-soft));
  border-bottom: 1px solid var(--border);
  aspect-ratio: 4 / 2.5;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.service-card__media--compact {
  aspect-ratio: 16 / 9;
}
#software-enquiry .service-card,
.software-page .service-card {
  padding-top: 22px;
}
.software-page .cards-grid.four .service-card h3,
.services-page .cards-grid.four .service-card h3 {
  margin-top: 0;
}

/* Portfolio: cleaner Kimp-like outer presentation */

.portfolio-controls {
  margin-bottom: 22px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
   gap: 5px;
  position:static !important;
  top: auto !important;
  max-height: none;
  overflow: visible;
}

.portfolio-filters .filter-btn {
  border-radius: 888px;
   padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: none;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20 px;
}
.portfolio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
}
.portfolio-card:hover,
.portfolio-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 32, 60, 0.10);
}
.portfolio-image-shell {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, rgba(87,184,237,0.06), rgba(87,184,237,0.01));
  padding: 14px;
}
.portfolio-card .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}
.portfolio-card .portfolio-overlay {
  font-size: 0.92rem;
}
.portfolio-content {
  padding: 18px 20px 20px;
}
.portfolio-content h3 {
  font-size: 1.08rem;
}
.portfolio-content p {
  font-size: 0.95rem;
}
.portfolio-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

/* Case study image placement */
.case-study-visual,
.project-modal__media {
  background: color-mix(in srgb, var(--bg-elevated) 92%, var(--blue-soft));
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.case-study-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.project-modal__media img {
  object-fit: contain;
  background: #fff;
}

/* Blog search smaller */
.blog-page .blog-tools {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-search {
  width: min(280px, 100%);
  flex: 0 1 280px;
  padding-inline: 16px;
}

/* Floating WhatsApp button restored */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 999px;

  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;

  box-shadow: 0 12px 24px rgba(16, 169, 81, 0.28);

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.whatsapp-float:hover {
  background-color: #0cb12b;
  transform: translateY(-2px);
}

.whatsapp-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float span::after {
    content: none;
    display: none;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}
/* Mobile view: show only the real WhatsApp icon */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .reference-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .contact-page .contact-detail-card,
  #software-enquiry .contact-detail-card,
  .contact-page .contact-form,
  #software-enquiry .contact-form {
    padding: 18px;
    border-radius: 18px;
  }
  .blog-search {
    width: 100%;
    flex-basis: 100%;
  }
 
}
/* --- Ghostwriter v4 fixes end --- */


/* --- Eximious Tech v5 definitive light-mode contrast repair --- */
html[data-theme="light"] body,
html[data-theme="light"] main,
html[data-theme="light"] .page-main {
  color: #14263a !important;
  background-color: #f5f7fa;
}

html[data-theme="light"] :is(h1, h2, h3, h4, h5, h6) {
  color: #10243a;
}

html[data-theme="light"] :is(p, li, dd, dt, label, small, .section-subtitle) {
  color: #52657a;
}

html[data-theme="light"] :is(.section, .section-dark, .blog-section) {
  color: #14263a;
}

html[data-theme="light"] .section-dark,
html[data-theme="light"] .about-page .section-dark,
html[data-theme="light"] .contact-page .section-dark,
html[data-theme="light"] .software-page .section-dark {
  background: #eaf1f6 !important;
  color: #14263a !important;
  border-color: rgba(18, 32, 51, 0.09) !important;
}

html[data-theme="light"] .section-dark :is(h1, h2, h3, h4, h5, h6, strong),
html[data-theme="light"] .about-page .section-dark .card :is(h2, h3, h4, strong),
html[data-theme="light"] .contact-page .section-dark :is(h2, h3, strong),
html[data-theme="light"] .software-page .section-dark :is(h2, h3, strong) {
  color: #10243a !important;
}

html[data-theme="light"] .section-dark :is(p, li, span, a:not(.btn-primary):not(.btn-secondary)),
html[data-theme="light"] .about-page .section-dark .card p,
html[data-theme="light"] .contact-page .section-dark p,
html[data-theme="light"] .software-page .section-dark p {
  color: #52657a !important;
}

html[data-theme="light"] :is(
  .card,
  .trust-card,
  .mini-card,
  .service-card,
  .process-card,
  .benefit-grid article,
  .faq-item,
  .info-box,
  .cta-box,
  .case-study-card,
  .case-study-story article,
  .case-study-summary dl div,
  .portfolio-card,
  .blog-card,
  .article-body,
  .legal-card
) {
  background: #ffffff !important;
  color: #14263a !important;
  border-color: rgba(18, 32, 51, 0.11) !important;
  box-shadow: none !important;
}

html[data-theme="light"] :is(
  .card,
  .trust-card,
  .mini-card,
  .service-card,
  .process-card,
  .benefit-grid article,
  .faq-item,
  .info-box,
  .cta-box,
  .case-study-card,
  .case-study-story article,
  .case-study-summary dl div,
  .portfolio-card,
  .blog-card,
  .article-body,
  .legal-card
) :is(h1, h2, h3, h4, strong, dt) {
  color: #10243a !important;
}

html[data-theme="light"] :is(
  .card,
  .trust-card,
  .mini-card,
  .service-card,
  .process-card,
  .benefit-grid article,
  .faq-item,
  .info-box,
  .cta-box,
  .case-study-card,
  .case-study-story article,
  .case-study-summary dl div,
  .portfolio-card,
  .blog-card,
  .article-body,
  .legal-card
) :is(p, li, small, dd) {
  color: #52657a !important;
}

/* The pale portfolio hero must use dark text in light mode. */
html[data-theme="light"] .portfolio-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(87, 184, 237, 0.16), transparent 25rem),
    linear-gradient(135deg, #e8f1f6 0%, #f7f8f6 72%, #f4f2ec 100%) !important;
  color: #10243a !important;
}

html[data-theme="light"] .portfolio-hero::after {
  color: rgba(15, 136, 200, 0.055) !important;
}

html[data-theme="light"] .portfolio-hero__content :is(h1, h2, h3) {
  color: #10243a !important;
}

html[data-theme="light"] .portfolio-hero__content > p,
html[data-theme="light"] .portfolio-hero__note {
  color: #52657a !important;
}

html[data-theme="light"] .portfolio-hero .section-tag {
  color: #0f78b2 !important;
  border-color: rgba(15, 136, 200, 0.22) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="light"] .portfolio-hero__actions .btn-secondary {
  color: #0b6ca0 !important;
  border-color: rgba(15, 136, 200, 0.32) !important;
  background: #ffffff !important;
}

html[data-theme="light"] .portfolio-hero__actions .btn-secondary:hover {
  color: #ffffff !important;
  border-color: #0f88c8 !important;
  background: #0f88c8 !important;
}

/* Contact left panel follows the published pale light-mode treatment. */
html[data-theme="light"] .contact-page .contact-info,
html[data-theme="light"] #software-enquiry .contact-info {
  background: linear-gradient(150deg, #e6f0f7, #dce9f3) !important;
  color: #14263a !important;
}

html[data-theme="light"] .contact-page .contact-info :is(h2, h3, p, strong, .section-tag),
html[data-theme="light"] #software-enquiry .contact-info :is(h2, h3, p, strong, .section-tag) {
  color: #10243a !important;
}

html[data-theme="light"] .contact-page .contact-detail-card,
html[data-theme="light"] #software-enquiry .contact-detail-card {
  background: #ffffff !important;
  color: #27435f !important;
  border-color: rgba(18, 32, 51, 0.10) !important;
}

html[data-theme="light"] .contact-page .contact-detail-card :is(a, span),
html[data-theme="light"] #software-enquiry .contact-detail-card :is(a, span) {
  color: #27435f !important;
}

html[data-theme="light"] .contact-form,
html[data-theme="light"] #software-enquiry .contact-form {
  background: #ffffff !important;
  color: #14263a !important;
}

html[data-theme="light"] .contact-form label,
html[data-theme="light"] #software-enquiry .contact-form label {
  color: #10243a !important;
}

html[data-theme="light"] :is(input, textarea, select, .blog-search) {
  background: #f3f7fb !important;
  color: #14263a !important;
  border-color: rgba(18, 32, 51, 0.16) !important;
}

html[data-theme="light"] :is(input, textarea, select, .blog-search)::placeholder {
  color: #6d7f92 !important;
  opacity: 1;
}

html[data-theme="light"] .faq-question {
  color: #10243a !important;
}

html[data-theme="light"] .faq-answer p {
  color: #52657a !important;
}

/* Keep action contrast explicit. */
html[data-theme="light"] :is(.btn-primary, .read-more-btn, .contact-form button, .filter-btn.active, .pagination button.active, .btn-nav) {
  color: #ffffff !important;
}

html[data-theme="light"] .btn-secondary:not(.whatsapp-float) {
  color: #0b6ca0;
}

html[data-theme="light"] .whatsapp-float,
html[data-theme="light"] .whatsapp-float * {
  color: #ffffff !important;
}

/* --- end Eximious Tech v5 definitive light-mode contrast repair --- */

/* All page banners remain readable in the light theme. */
html[data-theme="light"] .page-banner,
html[data-theme="light"] .contact-page .contact-banner,
html[data-theme="light"] .software-page .software-banner {
  background:
    radial-gradient(circle at 82% 16%, rgba(87, 184, 237, 0.16), transparent 24rem),
    linear-gradient(135deg, #e7f0f6 0%, #f7f9fb 72%, #eef3f7 100%) !important;
  color: #10243a !important;
}

html[data-theme="light"] .page-banner :is(h1, h2, h3, .page-kicker, .section-tag),
html[data-theme="light"] .contact-page .contact-banner :is(h1, h2, h3, .page-kicker, .section-tag),
html[data-theme="light"] .software-page .software-banner :is(h1, h2, h3, .page-kicker, .section-tag) {
  color: #10243a !important;
}

html[data-theme="light"] .page-banner p,
html[data-theme="light"] .contact-page .contact-banner p,
html[data-theme="light"] .software-page .software-banner p {
  color: #52657a !important;
}


/* --- Creative Solutions section v6 start --- */
#creative-services.creative-services-section {
  position: relative;
  overflow: hidden;
}

#creative-services .creative-services-heading {
  max-width: 780px;
}

#creative-services .creative-services-heading p {
  max-width: 720px;
  margin-inline: auto;
}

#creative-services .creative-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

#creative-services .creative-service-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-solid);
  color: var(--text);
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#creative-services .creative-service-card:hover,
#creative-services .creative-service-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue-bright) 62%, var(--border));
  box-shadow: 0 14px 30px rgba(4, 24, 48, 0.10);
}

#creative-services .creative-service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

#creative-services .creative-service-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  transition: transform 240ms ease;
}

#creative-services .creative-service-card:hover .creative-service-card__media img,
#creative-services .creative-service-card:focus-within .creative-service-card__media img {
  transform: scale(1.035);
}

#creative-services .creative-service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

#creative-services .creative-service-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

#creative-services .creative-service-card__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  border: 1px solid color-mix(in srgb, var(--blue-bright) 42%, var(--border));
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}

#creative-services .creative-service-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#creative-services .creative-service-card__number {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
}

#creative-services .creative-service-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.22;
}

#creative-services .creative-service-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
}

#creative-services .creative-service-card__deliverables {
  display: grid;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

#creative-services .creative-service-card__deliverables li {
  position: relative;
  padding-left: 20px;
  color: var(--muted-strong);
  font-size: .9rem;
  line-height: 1.45;
}

#creative-services .creative-service-card__deliverables li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
}

#creative-services .creative-service-card__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

#creative-services .creative-service-card__learn,
#creative-services .creative-service-card__whatsapp {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

#creative-services .creative-service-card__learn {
  border: 1px solid var(--blue-bright);
  background: var(--blue-bright);
  color: #061422;
}

#creative-services .creative-service-card__learn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #061422;
}

#creative-services .creative-service-card__whatsapp {
  border: 1px solid color-mix(in srgb, #16a765 62%, var(--border));
  background: transparent;
  color: #18a866;
}

#creative-services .creative-service-card__whatsapp:hover {
  border-color: #16a765;
  background: rgba(22, 167, 101, .12);
  color: #13a15f;
}

#creative-services .creative-service-card__whatsapp svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

html[data-theme="light"] #creative-services .creative-service-card {
  background: #ffffff;
  color: #122033;
  border-color: rgba(18, 32, 51, .12);
}

html[data-theme="light"] #creative-services .creative-service-card h3 {
  color: #122033;
}

html[data-theme="light"] #creative-services .creative-service-card p {
  color: #5d6b7c;
}

html[data-theme="light"] #creative-services .creative-service-card__deliverables li {
  color: #344b63;
}

html[data-theme="light"] #creative-services .creative-service-card__icon {
  color: #0f88c8;
  background: rgba(87, 184, 237, .14);
  border-color: rgba(15, 136, 200, .26);
}

html[data-theme="light"] #creative-services .creative-service-card__learn {
  background: #2b7ae2;
  border-color: #2b7ae2;
  color: #ffffff;
}

html[data-theme="light"] #creative-services .creative-service-card__learn:hover {
  background: #1d62bd;
  border-color: #1d62bd;
  color: #ffffff;
}

@media (min-width: 640px) {
  #creative-services .creative-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  #creative-services .creative-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  #creative-services .creative-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  #creative-services .creative-service-card__body {
    padding: 19px;
  }

  #creative-services .creative-service-card__actions {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #creative-services .creative-service-card,
  #creative-services .creative-service-card__media img {
    transition: none;
  }

  #creative-services .creative-service-card:hover,
  #creative-services .creative-service-card:focus-within,
  #creative-services .creative-service-card:hover .creative-service-card__media img,
  #creative-services .creative-service-card:focus-within .creative-service-card__media img {
    transform: none;
  }
}
/* --- Creative Solutions section v6 end --- */


/* Portfolio image-only cards: details remain available in the existing tap/click modal. */
.portfolio-card--image-only {
  background: transparent;
}

.portfolio-card--image-only .portfolio-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.portfolio-card--image-only .portfolio-image-shell {
  display: block;
  width: 100%;
}

.portfolio-card--image-only .portfolio-item:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -5px;
  border-radius: 20px;
}

.portfolio-card--image-only .portfolio-content,
.portfolio-card--image-only .portfolio-overlay {
  display: none !important;
}
/* =========================================================
   KEEP MOBILE NAVIGATION DARK IN LIGHT MODE
   ========================================================= */

html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.is-scrolled {
  background: #0d1730 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* Theme and menu buttons */
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .hamburger-toggle,
html[data-theme="light"] .menu-toggle {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .hamburger-toggle:hover,
html[data-theme="light"] .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Ensure menu icon lines remain white */
html[data-theme="light"] .hamburger-toggle span {
  background: #ffffff !important;
}

html[data-theme="light"] .theme-toggle svg {
  color: #ffffff !important;
  stroke: currentColor !important;
}

/* Mobile navigation */
@media (max-width: 1120px) {
  html[data-theme="light"] .site-nav {
    background: #0d1730 !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 8px 12px !important;
    box-shadow: 0 14px 30px rgba(4, 10, 24, 0.22) !important;
  }

  /* Rounded outlined menu container */
  html[data-theme="light"] .site-nav ul {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 12px !important;

    display: grid !important;
    gap: 5px !important;

    background: #101a34 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
  }

  /* Normal navigation links */
  html[data-theme="light"] .site-nav a {
    width: 100% !important;
    min-height: 43px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 10px 16px !important;
    border: 0 !important;
    border-radius: 999px !important;

    background: transparent !important;
    color: rgba(255, 255, 255, 0.83) !important;

    font-weight: 700 !important;
    text-align: center !important;
  }

  /* Hover effect */
  html[data-theme="light"] .site-nav a:hover {
    background: rgba(75, 111, 184, 0.18) !important;
    color: #ffffff !important;
  }

  /* Active page */
  html[data-theme="light"] .site-nav a.active,
  html[data-theme="light"] .site-nav a[aria-current="page"] {
    background: #293d70 !important;
    color: #ffffff !important;
  }

  /* Contact button */
  html[data-theme="light"] .site-nav .btn-nav {
    margin-top: 5px !important;
    background: linear-gradient(
      90deg,
      #326cff 0%,
      #29b8d4 100%
    ) !important;

    color: #ffffff !important;
    border: 0 !important;
  }

  html[data-theme="light"] .site-nav .btn-nav:hover {
    background: linear-gradient(
      90deg,
      #245ce3 0%,
      #21a5bf 100%
    ) !important;

    color: #ffffff !important;
  }
}/* =========================================================
   FINAL MOBILE MENU TEXT VISIBILITY FIX
   Keep this at the absolute bottom of upgrade.css
   ========================================================= */

@media (max-width: 1120px) {
  html[data-theme="light"] body .site-header .site-nav ul li,
  html[data-theme="light"] body .site-header .site-nav ul li a,
  html[data-theme="light"] body .site-header .site-nav ul li a:link,
  html[data-theme="light"] body .site-header .site-nav ul li a:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Normal menu links */
  html[data-theme="light"] body .site-header .site-nav ul li a {
    background: transparent !important;
  }

  /* Hover and keyboard focus */
  html[data-theme="light"] body .site-header .site-nav ul li a:hover,
  html[data-theme="light"] body .site-header .site-nav ul li a:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(70, 105, 180, 0.22) !important;
  }

  /* Current page */
  html[data-theme="light"] body .site-header .site-nav ul li a.active,
  html[data-theme="light"] body .site-header .site-nav ul li a[aria-current="page"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #2b4279 !important;
  }

  /* Contact button */
  html[data-theme="light"] body .site-header .site-nav ul li a.btn-nav {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(
      90deg,
      #326cff 0%,
      #29b8d4 100%
    ) !important;
  }
}
/* =========================================================
   FINAL DARK HEADER TEXT FIX — DESKTOP AND MOBILE
   Keep this at the absolute bottom of upgrade.css
   ========================================================= */

/* Keep header dark in light mode */
html[data-theme="light"] body .site-header,
html[data-theme="light"] body .site-header.is-scrolled {
  background: #0d1730 !important;
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* Desktop navigation container */
html[data-theme="light"] body .site-header .site-nav ul {
  background: #14203b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
}

/* All navigation links */
html[data-theme="light"] body .site-header .site-nav ul li a,
html[data-theme="light"] body .site-header .site-nav ul li a:link,
html[data-theme="light"] body .site-header .site-nav ul li a:visited {
  color: rgba(255, 255, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88) !important;
  background: transparent !important;
  opacity: 1 !important;
}

/* Hover and keyboard focus */
html[data-theme="light"] body .site-header .site-nav ul li a:hover,
html[data-theme="light"] body .site-header .site-nav ul li a:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(66, 105, 183, 0.25) !important;
}

/* Active page */
html[data-theme="light"] body .site-header .site-nav ul li a.active,
html[data-theme="light"] body .site-header .site-nav ul li a[aria-current="page"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #294675 !important;
}

/* Contact Us button */
html[data-theme="light"] body .site-header .site-nav ul li a.btn-nav {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #168fc9 !important;
  border-color: #168fc9 !important;
}

html[data-theme="light"] body .site-header .site-nav ul li a.btn-nav:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #20a6df !important;
}

/* Theme toggle */
html[data-theme="light"] body .site-header .theme-toggle {
  color: #ffffff !important;
  background: #17233d !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="light"] body .site-header .theme-toggle svg {
  color: #ffffff !important;
  stroke: currentColor !important;
}
@media (max-width: 1120px) {
  html[data-theme="light"] body .site-header .site-nav ul {
    border-radius: 24px !important;
    padding: 12px !important;
  }

  html[data-theme="light"] body .site-header .site-nav ul li a {
    justify-content: center !important;
    border-radius: 999px !important;
  }
}
.design-link {
  color: #ff8c00 !important; /* Orange */
  font-weight: 700;
}

.design-link:hover {
  color: #ff6600 !important; /* Darker orange on hover */
}
/* Portfolio CTA - Light Mode Visibility Fix */
html[data-theme="light"] .portfolio-cta .section-tag {
    color: #fe4901 !important;
}

html[data-theme="light"] .portfolio-cta h2 {
    color: #0b2a4a !important;
}

html[data-theme="light"] .portfolio-cta > .container > p,
html[data-theme="light"] .portfolio-cta .cta-box > p {
    color: #3f5f85 !important;
}

html[data-theme="light"] .portfolio-cta strong {
    color: #111827 !important;
}

html[data-theme="light"] .portfolio-cta .portfolio-cta__info p {
    color: #023573 !important;
}

html[data-theme="light"] .portfolio-cta .portfolio-cta__info a {
    color: #012847 !important;
}

html[data-theme="light"] .portfolio-cta .portfolio-cta__info a:hover {
    color: #712203 !important;
}