/* ============================================
   B86 Solutions — Blue Brand Theme
   Navy #0F172A · Blue #2563EB · Accent #60A5FA
   ============================================ */

:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --navy-mid: #172033;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #60A5FA;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --green: #10B981;
  --green-dark: #059669;
  --green-glow: rgba(16, 185, 129, 0.35);
  --teal: var(--blue);
  --teal-deep: var(--blue-dark);
  --teal-glow: var(--blue-glow);
  --light: #F1F5F9;
  --slate: #94A3B8;
  --white: #FFFFFF;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 100px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --container-pad: clamp(16px, 4vw, 32px);
  --section-pad: clamp(64px, 10vw, 120px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(37, 99, 235, 0.25);
  color: var(--navy);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.text-accent { color: var(--blue-light); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--blue-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 40px;
  padding: 10px 22px;
  font-size: 11px;
}

.btn--lg {
  min-height: 52px;
  padding: 16px 36px;
  font-size: 13px;
}

.btn--full { width: 100%; }

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.logo__img {
  display: block;
  height: clamp(56px, 10vw, 88px);
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.logo--compact .logo__img {
  height: 54px;
}

.logo--footer .logo__img {
  height: clamp(96px, 16vw, 140px);
  border-radius: 8px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  isolation: isolate;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: clamp(12px, 3vw, 24px);
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.nav__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active { color: var(--white); }

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__cta { flex-shrink: 0; }

.lang-switcher {
  position: relative;
}

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

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.45);
}

.lang-switcher__chevron {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(10, 22, 40, 0.98);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.lang-switcher__option {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: var(--transition);
}

.lang-switcher__option:hover,
.lang-switcher__option.is-active {
  color: var(--white);
  background: var(--blue);
}

.lang-switcher--mobile {
  padding: 0 24px 16px;
}

.lang-switcher--mobile .lang-switcher__toggle {
  width: 100%;
  justify-content: space-between;
}

.lang-switcher--mobile .lang-switcher__menu {
  position: static;
  width: 100%;
  margin-top: 8px;
  box-shadow: none;
}

html[dir="rtl"] .lang-switcher__menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', var(--font);
}

html[dir="rtl"] .nav__link::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .services__link svg,
html[dir="rtl"] .about__link svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .hero__content,
html[dir="rtl"] .section__header,
html[dir="rtl"] .about__content,
html[dir="rtl"] .contact__info,
html[dir="rtl"] .footer__brand,
html[dir="rtl"] .cta-banner__text {
  text-align: right;
}

html[dir="rtl"] .contact__details li {
  flex-direction: row-reverse;
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  margin-left: auto;
  z-index: 5;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.35);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
  pointer-events: none;
}

.menu-toggle.active .menu-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active .menu-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active .menu-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s, visibility 0.35s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100%;
  background: var(--navy);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0)) var(--container-pad) calc(32px + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.open .mobile-menu__panel {
  transform: translateX(0);
}

body.menu-open .header {
  z-index: 1201;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-menu__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.mobile-menu__close:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--teal);
}

.mobile-menu__close svg { width: 22px; height: 22px; }

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.mobile-menu__link {
  display: block;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  border-radius: 10px;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu.open .mobile-menu__link {
  animation: slideInLink 0.4s ease forwards;
}

.mobile-menu.open .mobile-menu__list li:nth-child(1) .mobile-menu__link { animation-delay: 0.05s; }
.mobile-menu.open .mobile-menu__list li:nth-child(2) .mobile-menu__link { animation-delay: 0.1s; }
.mobile-menu.open .mobile-menu__list li:nth-child(3) .mobile-menu__link { animation-delay: 0.15s; }
.mobile-menu.open .mobile-menu__list li:nth-child(4) .mobile-menu__link { animation-delay: 0.2s; }
.mobile-menu.open .mobile-menu__list li:nth-child(5) .mobile-menu__link { animation-delay: 0.25s; }

.mobile-menu.open .mobile-menu__cta {
  animation: slideInLink 0.4s ease 0.3s forwards;
  opacity: 0;
  transform: translateX(20px);
}

@keyframes slideInLink {
  to { opacity: 1; transform: translateX(0); }
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--teal);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: clamp(40px, 8vw, 60px) clamp(40px, 8vw, 60px);
  mask-image: radial-gradient(ellipse 90% 80% at 65% 45%, black 15%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.hero__glow--1 {
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: rgba(37, 99, 235, 0.18);
  top: 5%;
  right: 5%;
  animation: pulse 6s ease-in-out infinite;
}

.hero__glow--2 {
  width: min(300px, 50vw);
  height: min(300px, 50vw);
  background: rgba(37, 99, 235, 0.12);
  bottom: 15%;
  right: 25%;
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) var(--container-pad);
}

.hero__tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.hero__tagline span {
  font-size: clamp(10px, 2.2vw, 12px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 7px 14px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 100px;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.15);
}

.hero__tagline span:not(:last-child)::after {
  content: none;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: clamp(16px, 3vw, 28px);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--slate);
  max-width: 520px;
  margin-bottom: clamp(28px, 5vw, 44px);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Solutions Hub (86 cubes animation) ---- */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(340px, 48vw, 520px);
  width: 100%;
  perspective: 900px;
}

.solutions-hub {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 100%;
  background: transparent;
}

#solutionsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  z-index: 0;
}

.solutions-hub__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.cube-link {
  fill: none;
  stroke: url(#linkGrad);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
  filter: url(#linkGlow);
  opacity: 0.55;
  animation: linkFlow 1.8s linear infinite;
}

.cube-link--active {
  stroke-width: 2;
  opacity: 0.85;
  animation-duration: 1.2s;
}

.cube-link__pulse {
  opacity: 0.9;
  filter: drop-shadow(0 0 4px #2563EB);
}

.solutions-hub.is-paused .cube-link,
.solutions-hub.is-paused .cube-link__pulse {
  animation-play-state: paused;
}

@keyframes linkFlow {
  to { stroke-dashoffset: -40; }
}

.solutions-hub__cubes {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(-22deg);
  z-index: 2;
}

.hero-cube {
  position: absolute;
  width: 72px;
  height: 72px;
  transform-style: preserve-3d;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.9;
  animation: heroCubeFloat 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 0.4s ease,
    opacity 0.35s ease;
  outline: none;
}

.hero-cube--1 { top: 10%; left: 18%; --s: 36px; --float-delay: 0s; --tilt-delay: 0s; --cube-hue: 220; }
.hero-cube--2 { top: 4%; left: 58%; width: 60px; height: 60px; --s: 30px; --float-delay: 0.9s; --tilt-delay: -2s; --cube-hue: 215; }
.hero-cube--3 { top: 30%; left: 8%; width: 96px; height: 96px; --s: 48px; z-index: 5; --float-delay: 1.8s; --tilt-delay: -4s; --cube-hue: 225; }
.hero-cube--4 { top: 22%; left: 50%; width: 66px; height: 66px; --s: 33px; --float-delay: 2.7s; --tilt-delay: -1s; --cube-hue: 218; }
.hero-cube--5 { top: 54%; left: 28%; width: 58px; height: 58px; --s: 29px; --float-delay: 3.6s; --tilt-delay: -3s; --cube-hue: 212; }
.hero-cube--6 { top: 12%; left: 76%; width: 62px; height: 62px; --s: 31px; --float-delay: 4.5s; --tilt-delay: -5s; --cube-hue: 222; }

.hero-cube__body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cubeIdleTilt 14s ease-in-out infinite;
  animation-delay: var(--tilt-delay, 0s);
}

.solutions-hub.is-paused .hero-cube,
.solutions-hub.is-paused .hero-cube__body {
  animation-play-state: paused;
}

.solutions-hub.is-paused .hero-cube:not(.is-hovered) {
  opacity: 0.45;
}

.hero-cube.is-hovered {
  opacity: 1;
  z-index: 12 !important;
  transform: scale(1.18) translateY(-8px);
  filter: drop-shadow(0 0 40px hsla(var(--cube-hue), 70%, 55%, 0.8));
  animation-play-state: paused;
}

.hero-cube.is-hovered .hero-cube__body {
  animation-play-state: paused;
}

.hero-cube.is-hovered .hero-cube__face {
  border-color: hsla(var(--cube-hue), 70%, 55%, 0.95);
}

.hero-cube--active {
  opacity: 1;
  z-index: 8;
  filter: drop-shadow(0 0 32px hsla(var(--cube-hue), 75%, 52%, 0.75));
}

.hero-cube--active .hero-cube__body {
  animation-duration: 5s;
}

.hero-cube--active .hero-cube__face {
  border-color: hsla(var(--cube-hue), 75%, 55%, 0.85);
  box-shadow: inset 0 0 24px hsla(var(--cube-hue), 70%, 50%, 0.2);
}

.hero-cube--active .hero-cube__face--front {
  background: linear-gradient(
    145deg,
    hsla(var(--cube-hue), 65%, 48%, 0.35) 0%,
    hsla(var(--cube-hue), 55%, 28%, 0.22) 100%
  );
}

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

@keyframes cubeIdleTilt {
  0%, 100% { transform: rotateY(-12deg) rotateX(8deg); }
  33% { transform: rotateY(10deg) rotateX(-6deg); }
  66% { transform: rotateY(-6deg) rotateX(10deg); }
}

.hero-cube.is-flipping .hero-cube__body {
  animation: cubeFlip 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cubeFlip {
  0% { transform: rotateY(0deg) scale(1); }
  40% { transform: rotateY(88deg) scale(1.05); }
  100% { transform: rotateY(0deg) scale(1); }
}

.hero-cube__face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid hsla(var(--cube-hue), 60%, 50%, 0.4);
  backface-visibility: hidden;
}

.hero-cube__face--front {
  transform: translateZ(var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    hsla(var(--cube-hue), 60%, 50%, 0.28) 0%,
    hsla(var(--cube-hue), 45%, 22%, 0.4) 100%
  );
  box-shadow: inset 0 0 20px hsla(var(--cube-hue), 70%, 55%, 0.15);
}

.hero-cube__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  width: 100%;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-cube__content.is-fading {
  opacity: 0;
  transform: scale(0.9);
}

.hero-cube__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  line-height: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.55));
}

.hero-cube__icon svg {
  width: 20px;
  height: 20px;
}

.hero-cube--active .hero-cube__icon svg {
  width: 30px;
  height: 30px;
}

.hero-cube:not(.hero-cube--active) .hero-cube__icon svg {
  width: 18px;
  height: 18px;
}

.hero-cube__label {
  display: block;
  font-size: 7px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 96%;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  word-break: break-word;
}

.hero-cube--active .hero-cube__label {
  font-size: 9px;
}

.hero-cube--3.hero-cube--active .hero-cube__label {
  font-size: 10px;
}

.hero-cube.is-hovered .hero-cube__icon svg {
  width: 26px !important;
  height: 26px !important;
}

.hero-cube--3.is-hovered .hero-cube__icon svg {
  width: 34px !important;
  height: 34px !important;
}

.hero-cube.is-hovered .hero-cube__label {
  font-size: 8px;
}

.hero-cube--3.is-hovered .hero-cube__label {
  font-size: 10px;
}

.hero-cube__face--back {
  transform: rotateY(180deg) translateZ(var(--s));
  background: hsla(var(--cube-hue), 40%, 12%, 0.55);
}

.hero-cube__face--right {
  transform: rotateY(90deg) translateZ(var(--s));
  background: hsla(var(--cube-hue), 50%, 35%, 0.28);
}

.hero-cube__face--left {
  transform: rotateY(-90deg) translateZ(var(--s));
  background: hsla(var(--cube-hue), 45%, 28%, 0.32);
}

.hero-cube__face--top {
  transform: rotateX(90deg) translateZ(var(--s));
  background: hsla(var(--cube-hue), 65%, 58%, 0.25);
  border-color: hsla(var(--cube-hue), 70%, 60%, 0.5);
}

.hero-cube__face--bottom {
  transform: rotateX(-90deg) translateZ(var(--s));
  background: hsla(var(--cube-hue), 35%, 10%, 0.6);
}

.solutions-hub__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.75);
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.solutions-hub__badge-num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--teal);
  text-transform: none;
}

.solutions-hub__solution {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0 12px;
  max-width: calc(100% - 24px);
  font-size: clamp(12px, 2.2vw, 14px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.solutions-hub__solution.is-changing {
  animation: spotlightFade 0.4s ease;
}

@keyframes spotlightFade {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-cube:focus-visible {
  transform: scale(1.15);
  filter: drop-shadow(0 0 24px rgba(37, 99, 235, 0.7));
}

@media (hover: none) {
  .hero-cube {
    cursor: default;
    pointer-events: none;
  }

  .solutions-hub {
    pointer-events: none;
  }
}

@media (max-width: 1024px) {
  .hero-cube {
    pointer-events: none;
  }

  .solutions-hub {
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .hero-cube--3 { width: 84px; height: 84px; --s: 42px; top: 28%; }
  .hero-cube--1 { width: 58px; height: 58px; --s: 29px; }
  .hero-cube--6 { left: 68%; width: 54px; height: 54px; --s: 27px; }

  .solutions-hub__solution {
    font-size: 11px;
    bottom: 4px;
  }

  .solutions-hub__badge {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
  }

  .solutions-hub__badge-num {
    font-size: 13px;
  }

  .hero-cube--active .hero-cube__face--front {
    box-shadow: inset 0 0 20px hsla(var(--cube-hue), 70%, 50%, 0.25);
  }
}

@media (max-width: 380px) {
  .solutions-hub__solution {
    max-width: 100%;
    font-size: 11px;
  }

  .solutions-hub__cubes {
    transform: rotateX(-12deg) rotateY(-16deg) scale(0.92);
  }
}

/* ---- Sections ---- */
.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--light { background: var(--light); }

.section__header {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--slate);
  max-width: 560px;
  line-height: 1.7;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Services ---- */
.services {
  position: relative;
  background: var(--light);
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(37, 99, 235, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 100%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}

.services__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.services .container {
  position: relative;
  z-index: 1;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 26px);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 36px) clamp(22px, 3vw, 28px);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-card:hover .service-card__icon {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.service-card__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(15, 23, 42, 0.04);
  pointer-events: none;
  user-select: none;
}

.service-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 5px 10px;
  border-radius: 100px;
}

.service-card--featured {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
}

.service-card--featured::before { transform: scaleX(1); }

.service-card--featured::after {
  background: radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  opacity: 1;
}

.service-card--featured .service-card__num {
  color: rgba(255, 255, 255, 0.06);
}

.service-card--featured .service-card__desc {
  color: rgba(255, 255, 255, 0.68);
}

.service-card--featured .service-card__icon {
  background: rgba(37, 99, 235, 0.15);
  color: var(--teal);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.service-card--featured .service-card__tags li {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  color: var(--teal-deep);
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card__icon svg { width: 28px; height: 28px; }

.service-card__title {
  font-size: clamp(17px, 2.5vw, 19px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: clamp(14px, 2vw, 15px);
  color: var(--slate);
  line-height: 1.7;
  flex: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.service-card__tags li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 5px 11px;
  border-radius: 100px;
}

.services__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.services__note {
  font-size: clamp(14px, 2.2vw, 16px);
  color: var(--slate);
  max-width: 480px;
  line-height: 1.6;
}

.services__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
  transition: var(--transition);
}

.services__link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.services__link:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.services__link:hover svg {
  transform: translateX(3px);
}

/* ---- Values ---- */
.values {
  position: relative;
  overflow: hidden;
}

.values__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.values__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.values__glow--1 {
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  background: rgba(37, 99, 235, 0.1);
  top: -10%;
  left: -8%;
}

.values__glow--2 {
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: rgba(37, 99, 235, 0.08);
  bottom: -15%;
  right: -5%;
}

.values__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: clamp(40px, 8vw, 56px) clamp(40px, 8vw, 56px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
}

.values .container {
  position: relative;
  z-index: 1;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 24px);
}

.value-card {
  text-align: center;
  padding: clamp(24px, 4vw, 32px) clamp(16px, 3vw, 20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.value-card:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.28);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.value-card:hover::before { opacity: 1; }

.value-card:hover .value-card__icon {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12), 0 8px 28px rgba(37, 99, 235, 0.2);
}

.value-card--highlight {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
}

.value-card--highlight::before { opacity: 0.6; }

.value-card__icon {
  width: clamp(56px, 10vw, 64px);
  height: clamp(56px, 10vw, 64px);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--teal);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card__icon svg { width: 28px; height: 28px; }

.value-card__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--white);
}

.value-card__desc {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* ---- About ---- */
.about {
  position: relative;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
}

.about__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.about .container {
  position: relative;
  z-index: 1;
}

.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.about__text {
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--slate);
  margin-bottom: 22px;
  line-height: 1.75;
  max-width: 520px;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 36px);
  padding: 0;
  list-style: none;
}

.about__tags li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 12px;
  border-radius: 100px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(28px, 4vw, 36px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(16px, 3vw, 22px);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.stat:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.stat__number,
.stat__suffix {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1;
}

.stat__suffix {
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
}

.stat__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  margin-top: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
  transition: var(--transition);
}

.about__link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.about__link:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.about__link:hover svg {
  transform: translateX(3px);
}

.about__card {
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark), var(--navy));
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.2);
}

.about__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.5vw, 28px);
  min-height: clamp(260px, 38vw, 320px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: clamp(36px, 6vw, 52px) clamp(28px, 5vw, 40px);
  text-align: center;
}

.about__card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(12px, 2.5vw, 20px);
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  border-radius: var(--radius);
}

.about__card-logo-img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.about__card-divider {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.7;
}

.about__card-tagline {
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 500;
  color: var(--navy);
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 260px;
  margin: 0;
}

/* ---- Portfolio ---- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card__image {
  height: clamp(160px, 25vw, 220px);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  flex-shrink: 0;
}

.portfolio-card__image--1 {
  background: linear-gradient(135deg, var(--navy) 0%, #1E293B 50%, var(--teal-deep) 100%);
}
.portfolio-card__image--2 {
  background: linear-gradient(135deg, #1E293B 0%, var(--teal-deep) 60%, var(--teal) 100%);
}
.portfolio-card__image--3 {
  background: linear-gradient(135deg, var(--navy) 20%, #172033 70%, var(--teal) 100%);
}

.portfolio-card__tag {
  background: rgba(37, 99, 235, 0.92);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.portfolio-card__body {
  padding: clamp(20px, 3vw, 28px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card__title {
  font-size: clamp(16px, 2.5vw, 17px);
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-card__desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

/* ---- Contact ---- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact__text {
  font-size: clamp(15px, 2.2vw, 16px);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  line-height: 1.75;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.contact__details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(14px, 2vw, 15px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.contact__details svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__details a {
  word-break: break-word;
}

.contact__details a:hover { color: var(--teal); }

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-link svg { width: 20px; height: 20px; }

.social-link:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Form ---- */
.contact__form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: clamp(48px, 8vw, 72px) 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
}

.cta-banner__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cta-banner__desc {
  font-size: clamp(14px, 2.5vw, 16px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
}

.cta-banner .btn--primary {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.cta-banner .btn--primary:hover {
  background: var(--light);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1100;
  padding: 14px 24px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .toast {
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    font-size: 13px;
    padding: 12px 20px;
  }
}

/* ---- Scroll to top ---- */
.scroll-top {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0));
  right: calc(24px + env(safe-area-inset-right, 0));
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--blue-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

.scroll-top svg { width: 22px; height: 22px; }

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: clamp(40px, 6vw, 72px);
  padding: clamp(56px, 9vw, 88px) var(--container-pad);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.logo--footer {
  display: inline-flex;
  padding: clamp(16px, 3vw, 24px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.logo--footer:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
}

.footer__tagline {
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 20px;
  line-height: 1.6;
  max-width: 280px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a,
.footer__col li {
  font-size: 14px;
  color: var(--slate);
  transition: var(--transition);
  line-height: 1.5;
}

.footer__col a:hover { color: var(--teal); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px var(--container-pad);
}

.footer__bottom p {
  font-size: 13px;
  color: var(--slate);
  text-align: center;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-cube { animation: none; }
  .hero-cube.is-flipping .hero-cube__body { animation: none; }
  .hero__glow { animation: none; }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large tablets / small laptops */
@media (max-width: 1100px) {
  .nav__list { gap: 20px; }
  .nav__link { font-size: 11px; }
  .header__cta { padding: 10px 18px; font-size: 10px; }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --header-h: 84px; }

  .nav,
  .header__actions {
    display: none !important;
    pointer-events: none;
  }

  .header__inner {
    position: relative;
    z-index: 2;
  }

  .logo {
    max-width: calc(100% - 60px);
  }

  .menu-toggle {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: clamp(32px, 6vw, 56px);
    padding-bottom: clamp(48px, 8vw, 72px);
  }

  .hero__content { order: 2; }

  .hero__visual {
    order: 1;
    height: clamp(200px, 35vw, 280px);
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
  }

  .hero__tagline { justify-content: center; }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions { justify-content: center; }

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

  .service-card--featured {
    grid-column: span 2;
  }

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

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

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

  .portfolio__grid .portfolio-card:last-child {
    grid-column: span 2;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__tagline {
    margin-left: auto;
    margin-right: auto;
  }

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

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__desc { margin: 0 auto; }
  .cta-banner .btn { width: 100%; max-width: 320px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-h: 80px;
    --section-pad: clamp(56px, 12vw, 80px);
  }

  .logo__img {
    height: 58px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 8px;
  }

  .hero__visual {
    height: clamp(260px, 55vw, 340px);
    max-width: 100%;
  }

  .solutions-hub {
    max-width: 100%;
  }

  .hero__tagline span {
    font-size: 9px;
    padding: 5px 10px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .services__grid,
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .service-card--featured {
    grid-column: span 1;
  }

  .portfolio__grid .portfolio-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .value-card {
    padding: 20px 12px;
  }

  .value-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .value-card__icon svg { width: 22px; height: 22px; }

  .value-card__title { font-size: 11px; }
  .value-card__desc { font-size: 12px; }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat {
    align-items: center;
    text-align: center;
    padding: 14px 10px;
  }

  .about__link {
    width: 100%;
    justify-content: center;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .logo--footer .logo__img {
    height: clamp(72px, 22vw, 100px);
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__tagline {
    text-align: center;
    max-width: 100%;
  }

  .footer__links .footer__col:last-child {
    grid-column: span 2;
  }

  .scroll-top {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }

  .mobile-menu__panel {
    width: 100%;
    border-left: none;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__tagline {
    gap: 6px;
  }

  .hero__tagline span {
    font-size: 8px;
    letter-spacing: 0.08em;
    padding: 4px 8px;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: 1fr;
  }

  .footer__links .footer__col:last-child {
    grid-column: span 1;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 24px) 0 32px;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    padding: 24px var(--container-pad);
  }

  .hero__content { order: 1; }
  .hero__visual { order: 2; height: 180px; }
  .hero__tagline { justify-content: flex-start; }
  .hero__actions { justify-content: flex-start; }
  .hero__subtitle { margin-left: 0; margin-right: 0; }
}

/* Hover only on devices that support it */
@media (hover: none) {
  .service-card:hover,
  .portfolio-card:hover,
  .value-card:hover {
    transform: none;
  }

  .btn--primary:hover,
  .btn--outline:hover {
    transform: none;
  }
}
