:root {
  color-scheme: dark;
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --charcoal: #0f172a;
  --neutral-dark: #1e293b;
  --panel: rgba(30, 41, 59, 0.78);
  --panel-solid: #172033;
  --text: #f8fafc;
  --muted: #a8b4c7;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 22px 80px rgba(2, 8, 23, 0.36);
  --radius: 8px;
  --max-width: 1240px;
  --header-height: 74px;
}

html[data-theme="light"] {
  color-scheme: light;
  --charcoal: #F5F0E6;
  --neutral-dark: #E8E1D3;
  --panel: rgba(255, 253, 248, 0.88);
  --panel-solid: #FAF7F0;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.14);
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 34rem),
    linear-gradient(135deg, var(--charcoal), #111827 54%, var(--charcoal));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(0, 117, 255, 0.08), transparent 34rem),
    linear-gradient(135deg, #F8F5EE, #F2ECE1 54%, #EBE4D5);
}

/* Arabic Global Typography Rule - Arial */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] input, html[lang="ar"] button, html[lang="ar"] textarea, html[lang="ar"] select,
html[lang="ar"] .btn, html[lang="ar"] .eyebrow, html[lang="ar"] .brand-text,
html[dir="rtl"], html[dir="rtl"] body, .loc-ar {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* Explicit Localization Visibility Rules */
html[dir="rtl"] .loc-en, html[lang="ar"] .loc-en {
  display: none !important;
}
html[dir="rtl"] .loc-ar, html[lang="ar"] .loc-ar {
  display: inline !important;
}
html[dir="ltr"] .loc-ar, html[lang="en"] .loc-ar {
  display: none !important;
}
html[dir="ltr"] .loc-en, html[lang="en"] .loc-en {
  display: inline !important;
}

/* English Global Typography Rule - Modern Sans-Serif */
html[lang="en"],
html[lang="en"] body,
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4, html[lang="en"] h5, html[lang="en"] h6,
html[lang="en"] input, html[lang="en"] button, html[lang="en"] textarea, html[lang="en"] select,
html[lang="en"] .btn, html[lang="en"] .eyebrow, html[lang="en"] .brand-text,
html[dir="ltr"], html[dir="ltr"] body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

/* Arabic Navigation Typography Rule */
html[lang="ar"] .site-header,
html[lang="ar"] .nav,
html[lang="ar"] .nav-panel,
html[lang="ar"] .nav-cta-btn {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 117, 255, 0.18);
  background: rgba(4, 7, 17, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.nav {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 250ms ease, opacity 250ms ease;
}

.brand:hover {
  opacity: 0.94;
  transform: scale(1.02);
}

.brand-logo-img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text, #FFFFFF);
}

.brand-accent {
  color: #0075FF;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.nav-panel a {
  position: relative;
  padding: 0.5rem 0.25rem;
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  transition: color 250ms ease;
}

.nav-panel a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0075FF, #00E5FF);
  border-radius: 2px;
  transition: width 250ms ease, inset-inline-start 250ms ease;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: #FFFFFF;
}

.nav-panel a:hover::after,
.nav-panel a.active::after {
  width: 100%;
  inset-inline-start: 0;
}

.nav-panel a.active {
  color: #00E5FF;
  font-weight: 700;
}

.utility-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle,
.language-switcher,
.menu-toggle {
  border: 1px solid rgba(0, 117, 255, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.theme-toggle {
  width: 3.4rem;
  height: 2rem;
  padding: 0.2rem;
  border-radius: 999px;
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.theme-toggle-dot {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #00E5FF, #0075FF);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
  transition: inset-inline-start 200ms ease;
}

html[data-theme="light"] .theme-toggle-dot {
  inset-inline-start: calc(100% - 1.45rem);
}

.language-switcher {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 117, 255, 0.25);
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  min-width: 2.2rem;
  padding: 0.32rem 0.6rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}

.language-switcher button.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0075FF, #00C6FF);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, #0075FF 0%, #00C6FF 100%);
  color: #FFFFFF !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0, 117, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.nav-cta-btn:hover,
.nav-cta-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 117, 255, 0.55), 0 0 12px rgba(0, 229, 255, 0.4);
}

.mobile-only-contact {
  display: none;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.node,
.circuit-line {
  position: absolute;
  display: block;
}

.node {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.75);
  animation: pulse 2.8s ease-in-out infinite;
}

.node-a { inset-block-start: 22%; inset-inline-start: 16%; }
.node-b { inset-block-start: 36%; inset-inline-end: 18%; animation-delay: 0.5s; }
.node-c { inset-block-end: 24%; inset-inline-start: 46%; animation-delay: 1s; }
.node-d { inset-block-end: 32%; inset-inline-end: 10%; animation-delay: 1.4s; }

.circuit-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform-origin: center;
  opacity: 0.4;
}

.line-a { width: 34%; inset-block-start: 28%; inset-inline-start: 12%; transform: rotate(16deg); }
.line-b { width: 28%; inset-block-start: 42%; inset-inline-end: 12%; transform: rotate(-22deg); }
.line-c { width: 42%; inset-block-end: 28%; inset-inline-start: 30%; transform: rotate(8deg); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--cyan, #00E5FF);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 4.8vw, 3.65rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h2 {
  max-width: 780px;
  margin-bottom: 0.95rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
}

.hero-lead,
.section-head p,
.section-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
}

.typing-line {
  min-height: 2rem;
  color: var(--text);
  font-weight: 800;
}

.typing-text {
  color: var(--cyan);
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-inline-start: 0.18rem;
  vertical-align: -0.18em;
  background: var(--cyan);
  animation: blink 0.85s steps(2, start) infinite;
}

.hero-actions,
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.78rem 1.08rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #052533;
  box-shadow: 0 16px 38px rgba(6, 182, 212, 0.26);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn.ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.core-orbit {
  width: min(82vw, 380px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 38%),
    conic-gradient(from 90deg, rgba(6, 182, 212, 0.18), transparent, rgba(6, 182, 212, 0.28), transparent);
  animation: rotateSlow 24s linear infinite;
}

.core-chip {
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.55);
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  box-shadow: inset 0 0 36px rgba(6, 182, 212, 0.14), var(--shadow);
  animation: rotateSlowReverse 24s linear infinite;
}

.core-chip span {
  color: var(--cyan);
  font-weight: 950;
}

.core-chip small {
  color: var(--muted);
  font-weight: 800;
}

.orbit-dot {
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--cyan);
}

.dot-1 { inset-block-start: 8%; inset-inline-start: 48%; }
.dot-2 { inset-block-end: 18%; inset-inline-start: 14%; }
.dot-3 { inset-block-end: 24%; inset-inline-end: 10%; }

.signal-card {
  position: absolute;
  width: min(12rem, 42vw);
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.signal-card strong {
  display: block;
  color: var(--cyan);
  font-size: 1.45rem;
}

.signal-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.signal-a { inset-block-start: 10%; inset-inline-start: 0; }
.signal-b { inset-block-end: 8%; inset-inline-end: 0; }

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 680px;
}

.values-grid {
  display: grid;
  gap: 1rem;
}

.values-grid article,
.stats article,
.service-card,
.project-card,
.team-card,
.tech-card,
.contact-cards article,
.contact-form,
.testimonial-card,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.values-grid article {
  padding: 1.2rem;
}

.values-grid p,
.service-card p,
.project-card p,
.team-card p,
.testimonial-card p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stats article {
  padding: 1.2rem;
}

.stats strong {
  display: block;
  color: var(--cyan);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 800;
}

.card-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.project-card,
.team-card,
.tech-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.project-card:hover,
.team-card:hover,
.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.58);
}

.service-icon,
.member-avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.13);
  color: var(--cyan);
  font-weight: 950;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.filter-bar button {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  font-weight: 850;
}

.filter-bar button.active,
.filter-bar button:hover,
.filter-bar button:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06202a;
}

.tech-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tech-card {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 8rem;
  text-align: center;
}

.tech-card strong {
  font-size: 1.05rem;
}

.tech-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.tech-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #38bdf8);
}

.tech-card-icon svg {
  width: 100%;
  height: 100%;
  max-width: 2.5rem;
  max-height: 2.5rem;
}

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.project-thumb,
.modal-thumb {
  min-height: 11rem;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(15, 23, 42, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.18) 12px 13px);
  position: relative;
}

.project-thumb::after,
.modal-thumb::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)) 12% 24% / 56% 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) 12% 42% / 76% 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) 12% 60% / 44% 4px no-repeat;
}

.project-body {
  padding: 1.2rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card .btn {
  margin-top: auto;
  width: 100%;
  border: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.09);
  padding: 0.24rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.member-avatar {
  font-size: 1.05rem;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.social-links,
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.member-links a,
.social-links a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.member-links a:hover,
.social-links a:hover,
.footer-links a:hover {
  color: var(--cyan, #00E5FF);
}

/* Testimonials Grid & Glassmorphism Cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 117, 255, 0.3);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html[data-theme="light"] .testimonial-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 117, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 117, 255, 0.08);
}

.testimonial-card:hover {
  border-color: rgba(0, 117, 255, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 117, 255, 0.2);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.rating {
  color: #D4AF37 !important;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 117, 255, 0.25), rgba(212, 175, 55, 0.2));
  border: 1.5px solid rgba(0, 117, 255, 0.5);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 117, 255, 0.2);
}

html[data-theme="light"] .testimonial-avatar {
  color: #0F172A;
}

.quote-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary, #94A3B8);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

html[data-theme="light"] .testimonial-meta {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.client-name {
  color: var(--text, #FFFFFF);
  font-size: 1.05rem;
  font-weight: 700;
}

.client-company {
  color: #0075FF;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Empty State */
.testimonials-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(0, 117, 255, 0.35);
  border-radius: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

html[data-theme="light"] .testimonials-empty-state {
  background: rgba(255, 255, 255, 0.7);
}

.empty-icon-box {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 117, 255, 0.12);
  color: #0075FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.testimonials-empty-state h3 {
  font-size: 1.25rem;
  color: var(--text, #FFFFFF);
  margin-bottom: 0.5rem;
}

.testimonials-empty-state p {
  color: var(--muted, #94A3B8);
  font-size: 0.95rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .testimonial-card {
    padding: 1.35rem;
  }
}

.contact-cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-cards article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.contact-cards span {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  font-weight: 950;
}

.contact-cards h3,
.contact-cards p {
  margin-bottom: 0.15rem;
}

.contact-form {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 850;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
  color: var(--text);
  padding: 0.78rem 0.85rem;
  outline: 0;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.field-error {
  min-height: 1.25rem;
  display: block;
  color: #f87171;
  font-weight: 750;
}

.form-submit {
  width: 100%;
}

.form-status {
  margin: 1rem 0 0;
  color: var(--cyan);
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 1.4rem;
  background: color-mix(in srgb, var(--charcoal) 92%, #000 8%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-grid p {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.back-to-top {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(100%, 680px);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 1.2rem;
}

.modal-thumb {
  min-height: 14rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.modal-close {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 1;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-solid);
  color: var(--text);
  font-size: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  50% { transform: scale(1.55); opacity: 0.55; }
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

@keyframes rotateSlowReverse {
  to { transform: rotate(-360deg); }
}

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

@media (max-width: 1020px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 117, 255, 0.3);
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    order: 3;
    touch-action: manipulation;
  }

  .menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin: 0;
    background: var(--text, #FFFFFF);
    border-radius: 2px;
    transition: transform 250ms ease, opacity 250ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .utility-controls {
    margin-inline-start: auto;
    gap: 0.5rem;
  }

  .nav-panel {
    position: fixed;
    top: 4.5rem;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem 1.75rem;
    background: rgba(4, 7, 17, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 117, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease, visibility 300ms;
    z-index: 999;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }

  .nav-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-panel a {
    padding: 0.9rem 1.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    font-size: 1rem;
    font-weight: 700;
  }

  .nav-panel a::after {
    display: none;
  }

  .mobile-only-contact {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    background: linear-gradient(135deg, #0075FF, #00C6FF) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 117, 255, 0.35);
  }

  .nav-cta-btn {
    display: none;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: auto;
    margin: 1rem 0 1.5rem;
  }

  .hero-visual .device-3d-scene {
    max-width: 290px;
    margin: 0 auto;
  }

  .hero-visual .device-3d-card {
    padding: 0.75rem !important;
    border-radius: 12px !important;
  }

  .hero-visual .device-logo-only-body {
    min-height: 160px;
    padding: 1rem;
  }

  .hero-visual .device-3d-logo-large {
    max-width: 190px;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .shell {
    width: calc(100% - 1.5rem);
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero-grid {
    padding-top: 1rem;
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .hero-features-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-feature-item {
    padding: 0.75rem 1rem;
    min-height: 44px;
  }

  .device-3d-card {
    padding: 1rem !important;
    min-height: auto;
  }

  .device-logo-hero-showcase {
    padding: 1.5rem 1rem;
  }

  .device-3d-logo-large {
    max-width: 220px;
  }

  .stats,
  .card-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .bento-services .service-card {
    grid-column: span 12 !important;
  }

  .bento-card {
    padding: 1.5rem !important;
  }

  .contact-form-wrap {
    padding: 1.25rem !important;
  }

  .contact-form-grid,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px !important;
    min-height: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links a,
  .social-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .modal-panel {
    padding: 1.25rem;
    width: calc(100% - 1.5rem);
    margin: 1rem auto;
  }
}

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

  .hero-feature-item {
    font-size: 0.82rem;
  }

  .brand-text {
    font-size: 1rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow-spotlight {
    display: none !important;
  }
}

/* Multi-page portfolio */
[hidden] {
  display: none !important;
}

.page-hero,
.project-detail-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(6, 182, 212, 0.12), transparent 48%),
    linear-gradient(rgba(6, 182, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.045) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.page-hero {
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.page-hero h1,
.project-detail-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.page-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--cyan);
}

.page-hero-signal {
  min-height: 260px;
  display: grid;
  align-content: end;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-index {
  color: var(--cyan);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 950;
  line-height: 0.85;
}

.signal-label {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  align-items: end;
  height: 58px;
  margin-top: 1.25rem;
}

.signal-bars i {
  display: block;
  height: 35%;
  background: rgba(6, 182, 212, 0.3);
}

.signal-bars i:nth-child(2) { height: 72%; }
.signal-bars i:nth-child(3) { height: 50%; }
.signal-bars i:nth-child(4) { height: 100%; background: var(--cyan); }

.section-head-with-action,
.projects-gallery-head,
.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.text-link {
  flex: none;
  color: var(--cyan);
  font-weight: 900;
}

.text-link::after {
  content: " →";
}

html[dir="rtl"] .text-link::after {
  content: " ←";
}

.projects-gallery-section {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.projects-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.project-meta-line > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.results-count {
  flex: none;
  margin: 0;
  color: var(--muted);
  text-align: end;
}

.results-count strong {
  display: block;
  color: var(--cyan);
  font-size: 2rem;
  line-height: 1;
}

.filter-empty {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.filter-empty strong,
.filter-empty span {
  display: block;
}

.filter-empty strong {
  color: var(--text);
  font-size: 1.2rem;
}

.gallery-cta-section {
  padding-top: 0;
}

.gallery-cta,
.project-next {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(6, 182, 212, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(6, 182, 212, 0.16), transparent 62%),
    var(--panel);
  box-shadow: var(--shadow);
}

.gallery-cta h2,
.project-next h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.project-visual {
  overflow: hidden;
  isolation: isolate;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(135deg, rgba(6, 182, 212, 0.96), rgba(15, 23, 42, 0.96));
}

.project-visual::after {
  inset: 10%;
  z-index: -1;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) 8% 12% / 44% 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 8% 25% / 74% 4px no-repeat;
}

[class*="project-visual--pulse"]::before,
[class*="project-visual--meridian"]::before {
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.22), transparent 20%),
    linear-gradient(135deg, #7c3aed, #0891b2 58%, #0f172a);
}

[class*="project-visual--nexus"]::before,
[class*="project-visual--sentinel"]::before {
  background:
    radial-gradient(circle at 72% 28%, rgba(34, 211, 238, 0.38), transparent 20%),
    linear-gradient(135deg, #0f172a, #164e63 56%, #06b6d4);
}

[class*="project-visual--forge"]::before,
[class*="project-visual--horizon"]::before {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #0f766e, #06b6d4 52%, #172033);
}

[class*="project-visual--coreledger"]::before {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #172033, #334155 48%, #0891b2);
}

.preview-rail,
.preview-panel,
.preview-chart {
  position: absolute;
  z-index: 1;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

.preview-rail {
  inset-block: 14%;
  inset-inline-start: 10%;
  width: 10%;
  border-radius: 6px;
}

.preview-panel-main {
  inset-block-start: 18%;
  inset-inline-start: 24%;
  width: 42%;
  height: 30%;
  border-radius: 6px;
}

.preview-panel-side {
  inset-block-start: 18%;
  inset-inline-end: 10%;
  width: 20%;
  height: 62%;
  border-radius: 6px;
}

.preview-chart {
  inset-block-end: 20%;
  inset-inline-start: 24%;
  width: 42%;
  height: 25%;
  border-radius: 6px;
  background:
    linear-gradient(120deg, transparent 0 24%, rgba(34, 211, 238, 0.9) 25% 28%, transparent 29% 44%, rgba(255, 255, 255, 0.55) 45% 48%, transparent 49%),
    rgba(15, 23, 42, 0.32);
}

/* Project details */
.project-detail-hero {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.48fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.project-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-facts div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-facts dd {
  margin: 0;
  font-weight: 900;
  text-align: end;
}

.project-gallery-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.gallery-heading {
  margin-bottom: 2rem;
}

.gallery-counter {
  flex: none;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
}

.gallery-counter span:first-child {
  color: var(--cyan);
  font-size: 2rem;
}

.project-gallery {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.gallery-slide {
  margin: 0;
}

.gallery-art {
  position: relative;
  min-height: clamp(360px, 58vw, 650px);
  overflow: hidden;
  background: var(--panel-solid);
}

.gallery-art::after {
  display: none;
}

.gallery-art > span {
  position: absolute;
  display: block;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 12px 38px rgba(2, 8, 23, 0.18);
  backdrop-filter: blur(10px);
}

.mock-sidebar {
  inset-block: 9%;
  inset-inline-start: 6%;
  width: 13%;
}

.mock-topbar {
  inset-block-start: 9%;
  inset-inline: 22% 6%;
  height: 9%;
}

.mock-card-a {
  inset-block-start: 22%;
  inset-inline-start: 22%;
  width: 21%;
  height: 18%;
}

.mock-card-b {
  inset-block-start: 22%;
  inset-inline-start: 46%;
  width: 21%;
  height: 18%;
}

.mock-card-c {
  inset-block-start: 22%;
  inset-inline-end: 6%;
  width: 21%;
  height: 18%;
}

.mock-chart {
  inset-block: 44% 9%;
  inset-inline-start: 22%;
  width: 45%;
  background:
    linear-gradient(145deg, transparent 0 22%, rgba(34, 211, 238, 0.82) 23% 25%, transparent 26% 44%, rgba(255, 255, 255, 0.48) 45% 47%, transparent 48%),
    rgba(15, 23, 42, 0.4) !important;
}

.mock-table {
  inset-block: 44% 9%;
  inset-inline-end: 6%;
  width: 21%;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18%),
    rgba(15, 23, 42, 0.4) !important;
}

.gallery-slide figcaption {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 1.25rem;
  color: var(--muted);
}

.gallery-slide figcaption strong {
  color: var(--text);
}

.gallery-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.gallery-dots button {
  width: 2.3rem;
  height: 0.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--line);
}

.gallery-dots button.active {
  background: var(--cyan);
}

.case-study-section {
  border-block: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.035);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
}

.case-study-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.3rem;
}

.case-study-index {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
}

.case-study-block h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.case-study-block > div > p:last-child,
.feature-card p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 250px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card > span {
  display: block;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 950;
}

.project-tech-section {
  padding-top: 0;
}

.project-tech-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-tech-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.project-tech-list article {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.project-tech-list strong,
.project-tech-list span {
  display: block;
}

.project-tech-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.project-next-section {
  padding-top: 0;
}

@media (max-width: 1020px) {
  .page-hero-grid,
  .project-detail-grid,
  .project-tech-panel {
    grid-template-columns: 1fr;
  }

  .page-hero-signal {
    min-height: 220px;
  }

  .projects-page-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding-block: 4rem;
  }

  .page-hero h1,
  .project-detail-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .section-head-with-action,
  .projects-gallery-head,
  .gallery-heading,
  .gallery-cta,
  .project-next,
  .gallery-slide figcaption {
    display: grid;
    align-items: start;
  }

  .results-count {
    text-align: start;
  }

  .projects-page-grid,
  .feature-grid,
  .case-study-grid,
  .project-tech-list {
    grid-template-columns: 1fr;
  }

  .gallery-art {
    min-height: 330px;
  }

  .mock-sidebar {
    width: 16%;
  }

  .mock-topbar,
  .mock-card-a,
  .mock-chart {
    inset-inline-start: 25%;
  }

  .mock-card-a,
  .mock-card-b {
    width: 31%;
  }

  .mock-card-b {
    inset-inline-start: auto;
    inset-inline-end: 6%;
  }

  .mock-card-c,
  .mock-table {
    display: none !important;
  }

  .mock-chart {
    width: 69%;
  }

  .case-study-block {
    grid-template-columns: 1fr;
  }
}
/* تنسيق شعار الصورة */
.brand-logo-img {
    height: 40px; /* الارتفاع المناسب للشعار في الهيدر */
    width: auto; /* يضمن حفظ أبعاد الصورة الأصلية */
    object-fit: contain; /* يمنع تمطط الصورة */
    display: inline-block;
    vertical-align: middle;
    border-radius: 8px; /* تدوير ناعم للحواف */
    overflow: hidden;
}

/* ==========================================================================
   PREMIUM FUTURISTIC TECH HERO SECTION
   ========================================================================== */

:root {
  --electric-blue: #0075FF;
  --electric-cyan: #00E5FF;
  --deep-blue: #0040C8;
  --dark-navy: #070B19;
  --dark-slate: #0F172A;
  --gold-accent: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --electric-glow: rgba(0, 117, 255, 0.35);
}

.brand-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height, 70px));
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 117, 255, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #040711 0%, #080E1E 50%, #03050C 100%);
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 117, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 117, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  pointer-events: none;
}

/* Gradient Headings & Luxury Text */
.text-gradient-electric {
  background: linear-gradient(135deg, #FFFFFF 15%, #0075FF 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-dot-accent {
  color: var(--gold-accent);
  display: inline-block;
  margin-inline-start: 2px;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.gold-spark {
  color: var(--gold-accent);
  margin-inline-end: 0.4rem;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

.gold-spark-sm {
  color: var(--gold-accent);
  font-size: 0.8rem;
  margin-inline-end: 0.3rem;
}

/* Hero Brand Pill */
.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 117, 255, 0.08);
  border: 1px solid rgba(0, 117, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 117, 255, 0.15), inset 0 0 10px rgba(0, 117, 255, 0.1);
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Hero Buttons */
.btn-hero-primary {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--electric-blue) 100%) !important;
  border: 1px solid rgba(0, 229, 255, 0.4) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 30px rgba(0, 117, 255, 0.35), 0 0 18px rgba(0, 117, 255, 0.2) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 117, 255, 0.5), 0 0 24px rgba(212, 175, 55, 0.3) !important;
  border-color: var(--gold-accent) !important;
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(0, 117, 255, 0.3) !important;
  color: #F1F5F9 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-hero-ghost:hover {
  background: rgba(0, 117, 255, 0.12) !important;
  border-color: var(--electric-blue) !important;
  transform: translateY(-3px);
  color: #FFFFFF !important;
}

/* Feature Checklist Grid */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 2.2rem;
  max-width: 520px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  background: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(0, 117, 255, 0.15);
  color: #CBD5E1;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-feature-item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(0, 117, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 117, 255, 0.12);
  color: #FFFFFF;
}

.feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 117, 255, 0.14);
  color: var(--electric-cyan);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hero-feature-item:hover .feature-icon-box {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-accent);
}

.feature-icon-box svg {
  width: 18px;
  height: 18px;
}

/* 3D Visual Scene & Pedestal Base */
.hero-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.visual-glow-aura {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 117, 255, 0.28) 0%, rgba(0, 117, 255, 0.05) 55%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  animation: auraPulse 8s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.visual-orbits {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
}

.ring-outer {
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(0, 117, 255, 0.22);
  animation: rotateOrbit 30s linear infinite;
}

.ring-inner {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(0, 117, 255, 0.15);
  animation: rotateOrbit 20s linear infinite reverse;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tech-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 10px var(--electric-cyan);
}

.p1 { top: 15%; left: 20%; animation: particleFloat 4s ease-in-out infinite; }
.p2 { top: 75%; right: 18%; animation: particleFloat 5s ease-in-out infinite 1s; background: var(--gold-accent); box-shadow: 0 0 10px var(--gold-accent); }
.p3 { bottom: 20%; left: 15%; animation: particleFloat 4.5s ease-in-out infinite 2s; }
.p4 { top: 25%; right: 22%; animation: particleFloat 6s ease-in-out infinite 0.5s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-12px) scale(1.3); opacity: 1; }
}

/* 3D Tilted Device Container */
.device-3d-scene {
  position: relative;
  width: min(100%, 410px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  z-index: 2;
}

/* Pedestal Platform */
.pedestal-base {
  position: absolute;
  bottom: -35px;
  width: 320px;
  height: 90px;
  border-radius: 50%;
  transform: rotateX(72deg);
  background: radial-gradient(ellipse at center, rgba(0, 117, 255, 0.45) 0%, rgba(0, 117, 255, 0.08) 60%, transparent 80%);
  box-shadow: 0 0 60px rgba(0, 117, 255, 0.4), inset 0 0 25px rgba(0, 117, 255, 0.2);
  pointer-events: none;
}

.pedestal-gold-rim {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

/* Tilted 3D Matte Black Device */
.device-3d-card {
  width: 100%;
  background: #0A0F1D;
  border: 1px solid rgba(0, 117, 255, 0.4);
  border-radius: 16px;
  box-shadow:
    0 30px 70px -15px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(0, 117, 255, 0.25),
    0 0 0 1px rgba(0, 117, 255, 0.15) inset;
  transform: rotateX(20deg) rotateY(-14deg) rotateZ(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  overflow: hidden;
}

html[dir="rtl"] .device-3d-card {
  transform: rotateX(20deg) rotateY(14deg) rotateZ(-4deg);
}

.device-3d-card:hover {
  transform: rotateX(12deg) rotateY(-6deg) rotateZ(2deg) translateY(-10px);
  box-shadow:
    0 40px 85px -15px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(0, 117, 255, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.3) inset;
}

html[dir="rtl"] .device-3d-card:hover {
  transform: rotateX(12deg) rotateY(6deg) rotateZ(-2deg) translateY(-10px);
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(0, 117, 255, 0.2);
}

.window-controls {
  display: flex;
  gap: 0.45rem;
}

.control {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.device-brand-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 8px var(--electric-cyan);
  animation: pulse 2s infinite;
}

.device-body {
  padding: 1.1rem;
}

.dash-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dash-card {
  background: rgba(7, 12, 24, 0.75);
  border: 1px solid rgba(0, 117, 255, 0.18);
  border-radius: 10px;
  padding: 0.85rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chart-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
}

.chart-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.chart-svg {
  width: 100%;
  height: 80px;
}

.dash-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dash-mini-card {
  background: rgba(7, 12, 24, 0.75);
  border: 1px solid rgba(0, 117, 255, 0.15);
  border-radius: 8px;
  padding: 0.65rem;
}

.mini-label {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
}

.mini-value {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0.2rem 0;
}

.electric-text { color: var(--electric-cyan); }
.gold-text { color: var(--gold-accent); }

.mini-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #0075FF, #00E5FF);
}

.gold-fill {
  background: linear-gradient(90deg, #D4AF37, #F0C755);
}

.device-gold-reflection {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating Glassmorphism Cards */
.floating-glass-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 117, 255, 0.32);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 117, 255, 0.18);
  z-index: 3;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.floating-glass-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 117, 255, 0.3);
}

.glass-card-a {
  top: 8%;
  inset-inline-start: -12px;
  animation: floatCardA 6s ease-in-out infinite;
}

.glass-card-b {
  bottom: 8%;
  inset-inline-end: -12px;
  animation: floatCardB 6.5s ease-in-out infinite 1s;
}

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

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

.glass-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 117, 255, 0.14);
  color: var(--electric-cyan);
  border: 1px solid rgba(0, 117, 255, 0.25);
}

.glass-icon {
  width: 20px;
  height: 20px;
}

.gold-accent-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-accent);
  box-shadow: 0 0 6px var(--gold-accent);
}

.glass-card-content {
  display: flex;
  flex-direction: column;
}

.glass-number {
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.glass-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-features-grid {
    max-width: 100%;
  }
  .glass-card-a {
    top: -10px;
    inset-inline-start: 10px;
  }
  .glass-card-b {
    bottom: -10px;
    inset-inline-end: 10px;
  }
}

/* ==========================================================================
   GLOBAL SITE-WIDE PREMIUM FUTURISTIC TECH STYLES
   ========================================================================== */

/* Universal Glassmorphic Tech Cards */
.glass-card-tech,
.service-card,
.project-card,
.team-card,
.tech-card,
.values-grid article,
.stats article,
.testimonial-card,
.contact-cards article,
.feature-card,
.case-study-block,
.project-facts,
.project-tech-panel,
.project-next,
.gallery-cta {
  background: rgba(10, 16, 32, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 117, 255, 0.25);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 0 15px rgba(0, 117, 255, 0.06);
  border-radius: 16px;
  transition: all 0.35s ease;
}

.glass-card-tech:hover,
.service-card:hover,
.project-card:hover,
.team-card:hover,
.tech-card:hover,
.values-grid article:hover,
.stats article:hover,
.testimonial-card:hover,
.contact-cards article:hover,
.feature-card:hover,
.case-study-block:hover {
  border-color: rgba(0, 117, 255, 0.48);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 117, 255, 0.25);
}

/* Glass Inputs & Form Elements */
.contact-form input,
.contact-form textarea,
.contact-form select,
.filter-bar button {
  background: rgba(7, 12, 24, 0.75);
  border: 1px solid rgba(0, 117, 255, 0.28);
  color: #F1F5F9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

/* Light Theme Comprehensive System Overrides */
html[data-theme="light"] .site-header {
  background: rgba(248, 245, 238, 0.92) !important;
  border-bottom: 1px solid rgba(0, 117, 255, 0.16) !important;
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .nav-panel a {
  color: #334155 !important;
}

html[data-theme="light"] .nav-panel a:hover,
html[data-theme="light"] .nav-panel a.active {
  color: #0075FF !important;
}

html[data-theme="light"] .nav-panel a::after {
  background: #0075FF !important;
  box-shadow: 0 0 10px rgba(0, 117, 255, 0.6) !important;
}

html[data-theme="light"] .brand-text {
  color: #0F172A !important;
}

html[data-theme="light"] .brand-accent {
  color: #0075FF !important;
}

html[data-theme="light"] .glass-card-tech,
html[data-theme="light"] .service-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .tech-card,
html[data-theme="light"] .values-grid article,
html[data-theme="light"] .stats article,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .contact-cards article,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .case-study-block,
html[data-theme="light"] .project-facts,
html[data-theme="light"] .project-tech-panel,
html[data-theme="light"] .project-next,
html[data-theme="light"] .gallery-cta,
html[data-theme="light"] .contact-form-wrap,
html[data-theme="light"] .device-3d-card,
html[data-theme="light"] .about-card,
html[data-theme="light"] .modal-content {
  background: rgba(255, 253, 248, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08), inset 0 0 15px rgba(0, 117, 255, 0.03) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .glass-card-tech:hover,
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .team-card:hover,
html[data-theme="light"] .tech-card:hover,
html[data-theme="light"] .values-grid article:hover,
html[data-theme="light"] .stats article:hover,
html[data-theme="light"] .testimonial-card:hover,
html[data-theme="light"] .contact-cards article:hover,
html[data-theme="light"] .feature-card:hover,
html[data-theme="light"] .case-study-block:hover {
  border-color: rgba(0, 117, 255, 0.45) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 50px rgba(0, 117, 255, 0.16), 0 0 25px rgba(0, 117, 255, 0.1) !important;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] .service-card h3,
html[data-theme="light"] .team-card h3,
html[data-theme="light"] .project-card h3,
html[data-theme="light"] .tech-card strong,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .contact-cards h3 {
  color: #0F172A !important;
}

html[data-theme="light"] p,
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .section-copy p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .team-card p,
html[data-theme="light"] .testimonial-card p,
html[data-theme="light"] .project-card p {
  color: #334155 !important;
}

html[data-theme="light"] .gradient-heading,
html[data-theme="light"] h2.gradient-heading,
html[data-theme="light"] h1.gradient-heading,
html[data-bs-theme="light"] .gradient-heading,
html.light-theme .gradient-heading,
html.light-theme h2.gradient-heading,
html.light-theme h1.gradient-heading {
  background: linear-gradient(135deg, #001A4D 0%, #0052CC 55%, #0075FF 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.85) !important;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea,
html[data-theme="light"] .contact-form select,
html[data-theme="light"] .filter-bar button {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid rgba(0, 117, 255, 0.22) !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder {
  color: #64748B !important;
}

html[data-theme="light"] .site-footer {
  background: #F1F5F9 !important;
  border-top: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer .footer-bottom p {
  color: #475569 !important;
}

html[data-theme="light"] .footer-links a,
html[data-theme="light"] .social-links a {
  color: #334155 !important;
}

html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .social-links a:hover {
  color: #0075FF !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--electric-blue) !important;
  box-shadow: 0 0 20px rgba(0, 117, 255, 0.4), 0 0 0 2px rgba(0, 117, 255, 0.2) !important;
  outline: none !important;
}

.filter-bar button:hover,
.filter-bar button.active {
  background: linear-gradient(135deg, var(--deep-blue), var(--electric-blue)) !important;
  border-color: var(--electric-cyan) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(0, 117, 255, 0.35) !important;
}

/* Badges & Highlights */
.gold-year-badge {
  color: var(--gold-accent) !important;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(212, 175, 55, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.tech-badge-electric {
  background: rgba(0, 117, 255, 0.12) !important;
  border: 1px solid rgba(0, 117, 255, 0.3) !important;
  color: var(--electric-cyan) !important;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

/* Footer Tech Styling */
html[data-theme="dark"] .site-footer,
html[data-bs-theme="dark"] .site-footer,
html.dark-theme .site-footer {
  background: rgba(3, 6, 14, 0.95) !important;
  border-top: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
}

.site-footer .brand span span,
.site-footer .brand-accent {
  color: #0075FF !important;
}

.social-links a:hover {
  color: var(--cyan, #00E5FF) !important;
  text-shadow: 0 0 10px rgba(0, 117, 255, 0.6);
}

/* ==========================================================================
   EXCLUSIVE HIGH-TECH ANIMATIONS & INTERACTIVE PHYSICS
   ========================================================================== */

/* Cursor Dynamic Spotlight Glow */
.cursor-glow-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 117, 255, 0.15) 0%, rgba(212, 175, 55, 0.04) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  opacity: 0.85;
}

/* Revolving Conic Glow Border Trace on Hover */
.glass-card-tech,
.device-logo-hero-showcase,
.service-card,
.project-card {
  position: relative;
}

.glass-card-tech::before,
.device-logo-hero-showcase::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(0, 117, 255, 0.8) 25%, rgba(212, 175, 55, 0.8) 50%, rgba(0, 229, 255, 0.8) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  animation: spinBorder 8s linear infinite;
}

.glass-card-tech:hover::before,
.device-logo-hero-showcase:hover::before {
  opacity: 1;
}

@keyframes spinBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Staggered Reveal Upward Entrance */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Magnetic Pulse Effect on CTA Buttons */
.btn-hero-primary {
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.btn-hero-primary:hover::after {
  transform: scale(1);
  opacity: 1;
}

/* 3D Device Logo Showcase */
.device-logo-only-body {
  padding: 2.5rem 1.5rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-logo-hero-showcase {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.5rem;
  background: rgba(4, 8, 18, 0.92) !important;
  border: 1px solid rgba(0, 117, 255, 0.35) !important;
  border-radius: 14px;
  box-shadow: inset 0 0 30px rgba(0, 117, 255, 0.12);
  overflow: hidden;
}

.device-logo-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 8, 18, 0.85) !important;
  border: 1px solid rgba(0, 117, 255, 0.3) !important;
  border-radius: 12px;
  overflow: hidden;
}

.logo-glow-backdrop {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 117, 255, 0.5) 0%, rgba(212, 175, 55, 0.22) 50%, transparent 80%);
  filter: blur(24px);
  pointer-events: none;
}

.device-3d-logo-large {
  width: 88%;
  max-width: 290px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(0, 117, 255, 0.75)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 2;
}

.device-3d-card:hover .device-3d-logo-large {
  transform: scale(1.08);
  filter: drop-shadow(0 0 36px rgba(0, 117, 255, 0.95)) drop-shadow(0 0 16px rgba(212, 175, 55, 0.85));
}

.device-3d-logo-img {
  max-width: 170px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 117, 255, 0.6)) drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 1;
}

.device-3d-card:hover .device-3d-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 26px rgba(0, 117, 255, 0.85)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.75));
}

/* Brand Logo Image in Header & Footer */
.brand-logo-img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 117, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 117, 255, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.brand:hover .brand-logo-img {
  border-color: #00E5FF;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
  transform: scale(1.05);
}

/* ==========================================================================
   ULTRA-PROFESSIONAL MODERN BENTO GRID LAYOUT SYSTEM
   ========================================================================== */

.bento-grid {
  display: grid;
  gap: 1.5rem;
}

.bento-services {
  grid-template-columns: repeat(12, 1fr);
}

.bento-services .service-card:nth-child(1) {
  grid-column: span 8;
}

.bento-services .service-card:nth-child(2) {
  grid-column: span 4;
}

.bento-services .service-card:nth-child(3) {
  grid-column: span 4;
}

.bento-services .service-card:nth-child(4) {
  grid-column: span 4;
}

.bento-services .service-card:nth-child(5) {
  grid-column: span 4;
}

@media (max-width: 991px) {
  .bento-services .service-card {
    grid-column: span 12 !important;
  }
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem !important;
  position: relative;
  overflow: hidden;
}

.bento-card .service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 117, 255, 0.14);
  color: var(--electric-cyan);
  border: 1px solid rgba(0, 117, 255, 0.3);
  font-size: 1.4rem;
  margin-block-end: 1.2rem;
  box-shadow: 0 0 16px rgba(0, 117, 255, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.bento-card:hover .service-icon {
  transform: scale(1.1);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-block-end: 0.6rem;
}

.bento-card p {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   MASTER LIGHT THEME UNIVERSAL OVERRIDES (PLACED AT END OF STYLESHEET)
   ========================================================================== */

html[data-theme="light"],
html[data-bs-theme="light"],
html.light-theme {
  --text: #0F172A !important;
  --muted: #475569 !important;
  --charcoal: #F8FAFC !important;
  --neutral-dark: #F1F5F9 !important;
  --panel: rgba(255, 255, 255, 0.92) !important;
  --panel-solid: #FFFFFF !important;
  --line: rgba(0, 117, 255, 0.18) !important;
}

/* 1. Global Container & Section Backgrounds in Light Mode */
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 10% 4%, rgba(0, 117, 255, 0.1), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(0, 198, 255, 0.08), transparent 30rem),
    #F8FAFC !important;
  color: #0F172A !important;
}

/* 2. Glassmorphic Cards & Bento Grid in Light Mode */
html[data-theme="light"] .glass-card-tech,
html[data-theme="light"] .service-card,
html[data-theme="light"] .bento-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .tech-card,
html[data-theme="light"] .values-grid article,
html[data-theme="light"] .stats article,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .contact-cards article,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .case-study-block,
html[data-theme="light"] .project-facts,
html[data-theme="light"] .project-tech-panel,
html[data-theme="light"] .project-next,
html[data-theme="light"] .gallery-cta,
html[data-theme="light"] .contact-form-wrap,
html[data-theme="light"] .device-3d-card,
html[data-theme="light"] .device-logo-hero-showcase,
html[data-theme="light"] .device-logo-showcase,
html[data-theme="light"] .about-card,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .hero-feature-item {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08), inset 0 0 15px rgba(0, 117, 255, 0.03) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .glass-card-tech:hover,
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .bento-card:hover,
html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .team-card:hover,
html[data-theme="light"] .tech-card:hover,
html[data-theme="light"] .values-grid article:hover,
html[data-theme="light"] .stats article:hover,
html[data-theme="light"] .testimonial-card:hover,
html[data-theme="light"] .contact-cards article:hover,
html[data-theme="light"] .hero-feature-item:hover {
  border-color: rgba(0, 117, 255, 0.45) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 50px rgba(0, 117, 255, 0.16), 0 0 25px rgba(0, 117, 255, 0.1) !important;
}

/* 3. All Headings & Titles in Light Mode */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .typing-line,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .card-title,
html[data-theme="light"] .service-card h3,
html[data-theme="light"] .bento-card h3,
html[data-theme="light"] .team-card h3,
html[data-theme="light"] .project-card h3,
html[data-theme="light"] .tech-card strong,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .stat-number,
html[data-theme="light"] .modal-title,
html[data-theme="light"] .brand-text {
  color: #0F172A !important;
}

/* 4. All Paragraphs & Body Copy in Light Mode */
html[data-theme="light"] p,
html[data-theme="light"] span:not(.btn *):not(.nav-cta-btn *):not(.badge *):not(.active *):not(.theme-toggle-sun),
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .section-copy p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .bento-card p,
html[data-theme="light"] .team-card p,
html[data-theme="light"] .testimonial-card p,
html[data-theme="light"] .project-card p,
html[data-theme="light"] .tech-card p,
html[data-theme="light"] .about-card p,
html[data-theme="light"] .values-grid p,
html[data-theme="light"] .hero-feature-item,
html[data-theme="light"] .sub-text,
html[data-theme="light"] .text-muted,
html[data-theme="light"] small {
  color: #334155 !important;
}

/* 5. Section Eyebrows & Gradient Headings in Light Mode */
html[data-theme="light"] .eyebrow,
html[data-bs-theme="light"] .eyebrow,
html.light-theme .eyebrow {
  color: #0075FF !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .gradient-heading,
html[data-theme="light"] h2.gradient-heading,
html[data-theme="light"] h1.gradient-heading,
html[data-bs-theme="light"] .gradient-heading,
html.light-theme .gradient-heading,
html.light-theme h2.gradient-heading,
html.light-theme h1.gradient-heading {
  background: linear-gradient(135deg, #001A4D 0%, #0052CC 55%, #0075FF 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.85) !important;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.25)) !important;
}

html[data-theme="light"] .text-gradient-electric,
html[data-bs-theme="light"] .text-gradient-electric,
html.light-theme .text-gradient-electric {
  background: linear-gradient(135deg, #003399 0%, #0066FF 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.85) !important;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .typing-line,
html[data-bs-theme="light"] .hero-title,
html[data-bs-theme="light"] .hero-lead,
html.light-theme .hero-title,
html.light-theme .hero-lead {
  color: #0F172A !important;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.75) !important;
}

/* Light Mode Floating Cards & 3D Showcase Elements */
html[data-theme="light"] .floating-glass-card,
html[data-bs-theme="light"] .floating-glass-card,
html.light-theme .floating-glass-card {
  background: rgba(255, 253, 248, 0.95) !important;
  border: 1px solid rgba(0, 117, 255, 0.3) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15), 0 0 20px rgba(0, 117, 255, 0.1) !important;
}

html[data-theme="light"] .glass-number,
html[data-bs-theme="light"] .glass-number,
html.light-theme .glass-number {
  color: #0F172A !important;
  -webkit-text-stroke: 0.4px #000000 !important;
}

html[data-theme="light"] .glass-label,
html[data-bs-theme="light"] .glass-label,
html.light-theme .glass-label {
  color: #1E293B !important;
  font-weight: 700 !important;
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="light"] .device-3d-card,
html[data-bs-theme="light"] .device-3d-card,
html.light-theme .device-3d-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 117, 255, 0.22) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .device-header,
html[data-bs-theme="light"] .device-header,
html.light-theme .device-header {
  background: #F2ECE1 !important;
  border-bottom: 1px solid rgba(0, 117, 255, 0.16) !important;
}

html[data-theme="light"] .device-brand-tag strong,
html[data-bs-theme="light"] .device-brand-tag strong,
html.light-theme .device-brand-tag strong {
  color: #0F172A !important;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="light"] .hero-feature-item,
html[data-bs-theme="light"] .hero-feature-item,
html.light-theme .hero-feature-item {
  background: #FAF7F0 !important;
  border: 1px solid rgba(0, 117, 255, 0.2) !important;
  color: #0F172A !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .hero-feature-item span,
html[data-bs-theme="light"] .hero-feature-item span,
html.light-theme .hero-feature-item span {
  color: #0F172A !important;
  font-weight: 700 !important;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="light"] .hero-brand-pill,
html[data-bs-theme="light"] .hero-brand-pill,
html.light-theme .hero-brand-pill {
  background: #FAF7F0 !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  color: #0075FF !important;
  font-weight: 800 !important;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.7) !important;
}

/* 6. Buttons & Interactive Controls in Light Mode */
html[data-theme="light"] .btn-hero-ghost {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .btn-hero-ghost:hover {
  background: rgba(0, 117, 255, 0.08) !important;
  border-color: #0075FF !important;
  color: #0075FF !important;
}

html[data-theme="light"] .filter-bar button {
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid rgba(0, 117, 255, 0.22) !important;
}

html[data-theme="light"] .filter-bar button.active,
html[data-theme="light"] .filter-bar button:hover {
  background: linear-gradient(135deg, #0075FF, #00C6FF) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}

/* 7. Header & Footer in Light Mode */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(0, 117, 255, 0.16) !important;
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .nav-panel a {
  color: #334155 !important;
}

html[data-theme="light"] .nav-panel a:hover,
html[data-theme="light"] .nav-panel a.active {
  color: #0075FF !important;
}

html[data-theme="light"] .site-footer {
  background: #F1F5F9 !important;
  border-top: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer .footer-bottom p {
  color: #475569 !important;
}

html[data-theme="light"] .footer-links a,
html[data-theme="light"] .social-links a {
  color: #334155 !important;
}

html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .social-links a:hover {
  color: #0075FF !important;
}

/* 8. Form Controls in Light Mode */
html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea,
html[data-theme="light"] .contact-form select {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid rgba(0, 117, 255, 0.22) !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder {
  color: #64748B !important;
}

/* ==================================================
   CONTACT FORM SUCCESS & FEEDBACK CARDS (LOGICORE)
   ================================================== */

.form-status {
  margin-top: 1rem;
  width: 100%;
}

/* 1. Sending State */
.contact-sending-state {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(0, 117, 255, 0.12);
  border: 1px solid rgba(0, 117, 255, 0.3);
  color: #60A5FA;
  font-size: 0.925rem;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

html[data-theme="light"] .contact-sending-state {
  background: #EFF6FF;
  border-color: rgba(0, 117, 255, 0.35);
  color: #1D4ED8;
}

.sending-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: contactSpinner 0.75s linear infinite;
  display: inline-block;
  flex: 0 0 1.15rem;
}

@keyframes contactSpinner {
  to { transform: rotate(360deg); }
}

/* 2. Success Confirmation Card */
#contact-success-message,
.contact-success-message,
.contact-success-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  animation: successCardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
}

html[dir="ltr"] #contact-success-message,
html[dir="ltr"] .contact-success-message,
html[dir="ltr"] .contact-success-card {
  text-align: left;
}

html[data-theme="light"] #contact-success-message,
html[data-theme="light"] .contact-success-message,
html[data-theme="light"] .contact-success-card {
  background: #ECFDF5;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}

.success-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 2.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.success-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.success-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #34D399;
  line-height: 1.3;
}

html[data-theme="light"] .success-heading {
  color: #047857;
}

.success-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #E2E8F0;
}

html[data-theme="light"] .success-message {
  color: #065F46;
}

/* 3. Error State Card */
.contact-error-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  margin-top: 0.5rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 0.925rem;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

html[data-theme="light"] .contact-error-card {
  background: #FEF2F2;
  border-color: rgba(239, 68, 68, 0.4);
  color: #991B1B;
}

.error-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

/* Animation */
@keyframes successCardEntrance {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 0.999;
    transform: translateY(0) scale(1);
  }
}

/* Arabic typography enforcement for success card */
.contact-success-card .loc-ar,
.contact-sending-state .loc-ar,
.contact-error-card .loc-ar,
html[lang="ar"] .contact-success-card,
html[dir="rtl"] .contact-success-card {
  font-family: Arial, sans-serif !important;
}

/* ==========================================================
   Floating WhatsApp Button (Bottom-Left)
   ========================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 250ms ease, background 250ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp-btn .whatsapp-icon {
  width: 32px;
  height: 32px;
  transition: transform 250ms ease;
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus-visible {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65), 0 0 20px rgba(37, 211, 102, 0.4);
  color: #FFFFFF !important;
  outline: none;
}

.floating-whatsapp-btn:hover .whatsapp-icon {
  transform: scale(1.08);
}

.floating-whatsapp-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Radar pulse animation */
.whatsapp-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  z-index: -1;
  animation: whatsapp-pulse 2.5s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.94);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[lang="ar"] .whatsapp-tooltip {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* Tooltip notch */
.whatsapp-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(15, 23, 42, 0.94) transparent transparent;
}

html[data-theme="light"] .whatsapp-tooltip {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .whatsapp-tooltip::before {
  border-color: transparent rgba(255, 255, 255, 0.96) transparent transparent;
}

.floating-whatsapp-btn:hover .whatsapp-tooltip,
.floating-whatsapp-btn:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Responsive adjustment for mobile */
@media (max-width: 640px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-btn .whatsapp-icon {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================================================
   PROJECT DETAILS & PROJECTS PAGES THEME HARMONIZATION (DARK & LIGHT)
   ========================================================================== */

/* --- Dark Theme Rules --- */
html[data-theme="dark"] .project-detail-hero,
html[data-bs-theme="dark"] .project-detail-hero,
html.dark-theme .project-detail-hero,
html[data-theme="dark"] .page-hero,
html[data-bs-theme="dark"] .page-hero,
html.dark-theme .page-hero {
  border-bottom: 1px solid rgba(0, 117, 255, 0.22) !important;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 117, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(4, 7, 17, 0.75) 0%, rgba(8, 14, 30, 0.5) 100%) !important;
}

html[data-theme="dark"] .breadcrumbs,
html[data-bs-theme="dark"] .breadcrumbs,
html.dark-theme .breadcrumbs {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .breadcrumbs a,
html[data-bs-theme="dark"] .breadcrumbs a,
html.dark-theme .breadcrumbs a {
  color: var(--accent-cyan, #00F0FF) !important;
}

html[data-theme="dark"] .project-facts,
html[data-bs-theme="dark"] .project-facts,
html.dark-theme .project-facts {
  background: rgba(10, 16, 32, 0.78) !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 0 15px rgba(0, 117, 255, 0.06) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem !important;
}

html[data-theme="dark"] .project-facts div,
html[data-bs-theme="dark"] .project-facts div,
html.dark-theme .project-facts div {
  border-bottom: 1px solid rgba(0, 117, 255, 0.18) !important;
}

html[data-theme="dark"] .project-facts div:last-child,
html[data-bs-theme="dark"] .project-facts div:last-child,
html.dark-theme .project-facts div:last-child {
  border-bottom: none !important;
}

html[data-theme="dark"] .project-facts dt,
html[data-bs-theme="dark"] .project-facts dt,
html.dark-theme .project-facts dt {
  color: var(--gold-accent, #D4AF37) !important;
}

html[data-theme="dark"] .project-facts dd,
html[data-bs-theme="dark"] .project-facts dd,
html.dark-theme .project-facts dd {
  color: #FFFFFF !important;
}

html[data-theme="dark"] .case-study-block,
html[data-bs-theme="dark"] .case-study-block,
html.dark-theme .case-study-block {
  background: rgba(10, 16, 32, 0.78) !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 0 15px rgba(0, 117, 255, 0.06) !important;
  border-radius: 16px !important;
  padding: 1.75rem !important;
}

html[data-theme="dark"] .case-study-block p,
html[data-bs-theme="dark"] .case-study-block p,
html.dark-theme .case-study-block p {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .feature-card,
html[data-bs-theme="dark"] .feature-card,
html.dark-theme .feature-card {
  background: rgba(10, 16, 32, 0.78) !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 0 12px rgba(0, 117, 255, 0.05) !important;
  border-radius: 16px !important;
}

html[data-theme="dark"] .feature-card h3,
html[data-bs-theme="dark"] .feature-card h3,
html.dark-theme .feature-card h3 {
  color: #FFFFFF !important;
}

html[data-theme="dark"] .feature-card p,
html[data-bs-theme="dark"] .feature-card p,
html.dark-theme .feature-card p {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .project-tech-panel,
html[data-bs-theme="dark"] .project-tech-panel,
html.dark-theme .project-tech-panel {
  background: rgba(10, 16, 32, 0.78) !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65) !important;
  border-radius: 16px !important;
}

html[data-theme="dark"] .project-tech-list article,
html[data-bs-theme="dark"] .project-tech-list article,
html.dark-theme .project-tech-list article {
  border-bottom: 1px solid rgba(0, 117, 255, 0.18) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .project-tech-list strong,
html[data-bs-theme="dark"] .project-tech-list strong,
html.dark-theme .project-tech-list strong {
  color: var(--gold-accent, #D4AF37) !important;
}

html[data-theme="dark"] .project-tech-list span,
html[data-bs-theme="dark"] .project-tech-list span,
html.dark-theme .project-tech-list span {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .project-next,
html[data-bs-theme="dark"] .project-next,
html.dark-theme .project-next {
  background: rgba(10, 16, 32, 0.78) !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65) !important;
  border-radius: 16px !important;
}

html[data-theme="dark"] .gallery-viewport,
html[data-bs-theme="dark"] .gallery-viewport,
html.dark-theme .gallery-viewport {
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  background: rgba(10, 16, 32, 0.78) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65) !important;
  border-radius: 16px !important;
}

html[data-theme="dark"] .gallery-art,
html[data-bs-theme="dark"] .gallery-art,
html.dark-theme .gallery-art {
  background: #070B19 !important;
}

html[data-theme="dark"] .gallery-slide figcaption,
html[data-bs-theme="dark"] .gallery-slide figcaption,
html.dark-theme .gallery-slide figcaption {
  background: rgba(10, 16, 32, 0.9) !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .gallery-counter,
html[data-bs-theme="dark"] .gallery-counter,
html.dark-theme .gallery-counter {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .gallery-counter span:first-child,
html[data-bs-theme="dark"] .gallery-counter span:first-child,
html.dark-theme .gallery-counter span:first-child {
  color: var(--accent-cyan, #00F0FF) !important;
}

html[data-theme="dark"] .page-hero-signal,
html[data-bs-theme="dark"] .page-hero-signal,
html.dark-theme .page-hero-signal {
  background: rgba(10, 16, 32, 0.78) !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65) !important;
  border-radius: 16px !important;
}

/* --- Light Theme Rules --- */
html[data-theme="light"] .project-detail-hero,
html[data-bs-theme="light"] .project-detail-hero,
html.light-theme .project-detail-hero,
html[data-theme="light"] .page-hero,
html[data-bs-theme="light"] .page-hero,
html.light-theme .page-hero {
  border-bottom: 1px solid rgba(0, 117, 255, 0.16) !important;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 117, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(0, 198, 255, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 245, 238, 0.9) 100%) !important;
}

html[data-theme="light"] .breadcrumbs,
html[data-bs-theme="light"] .breadcrumbs,
html.light-theme .breadcrumbs {
  color: #64748B !important;
}

html[data-theme="light"] .breadcrumbs a,
html[data-bs-theme="light"] .breadcrumbs a,
html.light-theme .breadcrumbs a {
  color: #0075FF !important;
}

html[data-theme="light"] .breadcrumbs span,
html[data-bs-theme="light"] .breadcrumbs span,
html.light-theme .breadcrumbs span {
  color: #1E293B !important;
}

html[data-theme="light"] .page-lead,
html[data-bs-theme="light"] .page-lead,
html.light-theme .page-lead {
  color: #334155 !important;
}

html[data-theme="light"] .project-facts,
html[data-bs-theme="light"] .project-facts,
html.light-theme .project-facts {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08), inset 0 0 15px rgba(0, 117, 255, 0.02) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem !important;
}

html[data-theme="light"] .project-facts div,
html[data-bs-theme="light"] .project-facts div,
html.light-theme .project-facts div {
  border-bottom: 1px solid rgba(0, 117, 255, 0.12) !important;
}

html[data-theme="light"] .project-facts div:last-child,
html[data-bs-theme="light"] .project-facts div:last-child,
html.light-theme .project-facts div:last-child {
  border-bottom: none !important;
}

html[data-theme="light"] .project-facts dt,
html[data-bs-theme="light"] .project-facts dt,
html.light-theme .project-facts dt {
  color: #B45309 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .project-facts dd,
html[data-bs-theme="light"] .project-facts dd,
html.light-theme .project-facts dd {
  color: #0F172A !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .project-facts dd.electric-text,
html[data-bs-theme="light"] .project-facts dd.electric-text,
html.light-theme .project-facts dd.electric-text {
  color: #0052CC !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .case-study-block,
html[data-bs-theme="light"] .case-study-block,
html.light-theme .case-study-block {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08), inset 0 0 15px rgba(0, 117, 255, 0.02) !important;
  border-radius: 16px !important;
  padding: 1.75rem !important;
}

html[data-theme="light"] .case-study-block:hover,
html[data-bs-theme="light"] .case-study-block:hover,
html.light-theme .case-study-block:hover {
  border-color: rgba(0, 117, 255, 0.38) !important;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 117, 255, 0.12) !important;
}

html[data-theme="light"] .case-study-index.gold-text,
html[data-bs-theme="light"] .case-study-index.gold-text,
html.light-theme .case-study-index.gold-text {
  color: #B45309 !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .case-study-index.electric-text,
html[data-bs-theme="light"] .case-study-index.electric-text,
html.light-theme .case-study-index.electric-text {
  color: #0052CC !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .case-study-block p,
html[data-bs-theme="light"] .case-study-block p,
html.light-theme .case-study-block p {
  color: #334155 !important;
  line-height: 1.7 !important;
}

html[data-theme="light"] .feature-card,
html[data-bs-theme="light"] .feature-card,
html.light-theme .feature-card {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
}

html[data-theme="light"] .feature-card:hover,
html[data-bs-theme="light"] .feature-card:hover,
html.light-theme .feature-card:hover {
  border-color: rgba(0, 117, 255, 0.38) !important;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 117, 255, 0.12) !important;
}

html[data-theme="light"] .feature-card .electric-text,
html[data-bs-theme="light"] .feature-card .electric-text,
html.light-theme .feature-card .electric-text {
  color: #0052CC !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
}

html[data-theme="light"] .feature-card h3,
html[data-bs-theme="light"] .feature-card h3,
html.light-theme .feature-card h3 {
  color: #0F172A !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .feature-card p,
html[data-bs-theme="light"] .feature-card p,
html.light-theme .feature-card p {
  color: #334155 !important;
}

html[data-theme="light"] .project-tech-panel,
html[data-bs-theme="light"] .project-tech-panel,
html.light-theme .project-tech-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
}

html[data-theme="light"] .project-tech-list article,
html[data-bs-theme="light"] .project-tech-list article,
html.light-theme .project-tech-list article {
  border-bottom: 1px solid rgba(0, 117, 255, 0.12) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .project-tech-list strong,
html[data-bs-theme="light"] .project-tech-list strong,
html.light-theme .project-tech-list strong,
html[data-theme="light"] .project-tech-list strong.gold-text,
html[data-bs-theme="light"] .project-tech-list strong.gold-text,
html.light-theme .project-tech-list strong.gold-text {
  color: #B45309 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .project-tech-list span,
html[data-bs-theme="light"] .project-tech-list span,
html.light-theme .project-tech-list span {
  color: #475569 !important;
}

html[data-theme="light"] .project-next,
html[data-bs-theme="light"] .project-next,
html.light-theme .project-next {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
}

html[data-theme="light"] .gallery-viewport,
html[data-bs-theme="light"] .gallery-viewport,
html.light-theme .gallery-viewport {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
}

html[data-theme="light"] .gallery-art,
html[data-bs-theme="light"] .gallery-art,
html.light-theme .gallery-art {
  background: #F1F5F9 !important;
}

html[data-theme="light"] .gallery-art > span,
html[data-bs-theme="light"] .gallery-art > span,
html.light-theme .gallery-art > span {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(0, 117, 255, 0.22) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .gallery-slide figcaption,
html[data-bs-theme="light"] .gallery-slide figcaption,
html.light-theme .gallery-slide figcaption {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid rgba(0, 117, 255, 0.14) !important;
}

html[data-theme="light"] .gallery-slide figcaption strong,
html[data-bs-theme="light"] .gallery-slide figcaption strong,
html.light-theme .gallery-slide figcaption strong,
html[data-theme="light"] .gallery-slide figcaption strong.gold-text,
html[data-bs-theme="light"] .gallery-slide figcaption strong.gold-text,
html.light-theme .gallery-slide figcaption strong.gold-text {
  color: #B45309 !important;
}

html[data-theme="light"] .gallery-slide figcaption span,
html[data-bs-theme="light"] .gallery-slide figcaption span,
html.light-theme .gallery-slide figcaption span {
  color: #475569 !important;
}

html[data-theme="light"] .gallery-counter,
html[data-bs-theme="light"] .gallery-counter,
html.light-theme .gallery-counter {
  color: #64748B !important;
}

html[data-theme="light"] .gallery-counter span:first-child,
html[data-bs-theme="light"] .gallery-counter span:first-child,
html.light-theme .gallery-counter span:first-child {
  color: #0052CC !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .carousel-btn,
html[data-bs-theme="light"] .carousel-btn,
html.light-theme .carousel-btn {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid rgba(0, 117, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .carousel-btn:hover,
html[data-bs-theme="light"] .carousel-btn:hover,
html.light-theme .carousel-btn:hover {
  background: #0075FF !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] .page-hero-signal,
html[data-bs-theme="light"] .page-hero-signal,
html.light-theme .page-hero-signal {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(0, 117, 255, 0.18) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
}

/* Light Mode Global Accent Tokens */
html[data-theme="light"] .gold-text,
html[data-bs-theme="light"] .gold-text,
html.light-theme .gold-text {
  color: #B45309 !important;
}

html[data-theme="light"] .electric-text,
html[data-bs-theme="light"] .electric-text,
html.light-theme .electric-text {
  color: #0052CC !important;
}