/* "Aurora" look for every page: dark navy page with soft colour glows, frosted-glass menu, vivid gradient tiles.
   Loaded after client-frontend63d3.css, so it only overrides the old rules. */

:root {
  --sky-orange: #FE9F1A;
  --sky-navy: #0f1a33;
  --sky-text: #c4d0ea;
  --sky-heading: #eef3ff;
  --sky-radius: 16px;
  --sky-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  --sky-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.5);
  --sky-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.15) 100%);
}

/* Page */
html {
  background-color: var(--sky-navy);
}

body {
  background-color: var(--sky-navy);
  background-image:
    radial-gradient(900px 420px at 85% -10%, rgba(122, 60, 255, 0.33), transparent),
    radial-gradient(700px 420px at 0% 20%, rgba(27, 161, 226, 0.33), transparent);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--sky-text);
}

h1,
h2 {
  color: var(--sky-heading);
}

h3 {
  color: var(--sky-text);
}

.page-title {
  background: linear-gradient(90deg, #ffffff, #9fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a {
  color: #7cc4ff;
}

a:hover {
  color: #ffffff;
}

hr {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.credits a {
  color: #9fb0d6;
}

/* Menu: frosted glass. The doubled class keeps this winning over old .navbar-inverse rules in stylesheets that load later. */
.navbar.navbar-inverse {
  background-color: rgba(18, 30, 60, 0.72);
  background-image: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.navbar-inverse .navbar-nav > li {
  transition: background-color 0.2s ease;
}

.navbar-inverse .navbar-nav > li:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Replace the old solid red hover and current-page colours */
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  background-color: transparent;
}

.navbar-inverse .navbar-nav > li.active > a,
.navbar-inverse .navbar-nav > li.active > a:hover,
.navbar-inverse .navbar-nav > li.active > a:focus {
  background-color: transparent;
  box-shadow: inset 0 -3px 0 var(--sky-orange);
}

/* The coloured logo stays unchanged; a white chip keeps its black parts visible on the dark bar */
.navbar-inverse .navbar-nav:not(.language-switch) > li:first-child > a img {
  background: #fff;
  border-radius: 8px;
  padding: 3px 6px;
  height: 38px !important;
  margin-top: -6px !important;
  margin-right: 6px;
}

/* Language switch (EN | PL) at the right end of the menu */
.navbar-inverse .navbar-nav.language-switch > li > a {
  font-size: 16px;
  letter-spacing: 0.06em;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  opacity: 0.75;
}

.navbar-inverse .navbar-nav.language-switch > li > a:hover,
.navbar-inverse .navbar-nav.language-switch > li.current > a {
  opacity: 1;
}

.navbar-inverse .navbar-nav.language-switch > li.current > a {
  box-shadow: inset 0 -3px 0 var(--sky-orange);
}

/* Medium windows: smaller menu items so the main menu and EN | PL stay on one row */
@media (max-width: 1199px) {
  .navbar-inverse .navbar-nav:not(.language-switch) > li > a {
    font-size: 20px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Tiles: every colour class carries its own gradient through --tile-gradient.
   The old rules keep the flat colour underneath as a fallback. */
.metro-blue { --tile-gradient: linear-gradient(135deg, #1ba1e2, #5b5bd6); }
.metro-orange { --tile-gradient: linear-gradient(135deg, #FE9F1A, #e8412c); }
.metro-green { --tile-gradient: linear-gradient(135deg, #6cbe1b, #1ba1a8); }
.metro-purple { --tile-gradient: linear-gradient(135deg, #a64bff, #5b5bd6); }
.metro-lime { --tile-gradient: linear-gradient(135deg, #8fb300, #3fa54a); }
.metro-yellow-lime { --tile-gradient: linear-gradient(135deg, #9bc400, #4aa832); }
.metro-red1 { --tile-gradient: linear-gradient(135deg, #ff6a5c, #de1c5c); }
.metro-gray { --tile-gradient: linear-gradient(135deg, #6b7a99, #3d4966); }
.metro-red { --tile-gradient: linear-gradient(135deg, #d22a5c, #7a3cff); }

/* The old sheet put a white 3px bottom border under first-row tiles; it shows as a white edge on rounded tiles */
.metro-first-line .metro-button {
  border-bottom: 0;
}

/* Only coloured tiles are styled; the empty spacer tiles (no colour class) stay invisible. */
.metro-grid-line > div:is(.metro-blue, .metro-orange, .metro-green, .metro-purple, .metro-lime, .metro-yellow-lime, .metro-red1, .metro-gray, .metro-red),
.metro-grid-line:is(.metro-blue, .metro-orange, .metro-green, .metro-purple, .metro-lime, .metro-yellow-lime, .metro-red1, .metro-gray, .metro-red) > div {
  background-image: var(--tile-gradient);
  border-radius: var(--sky-radius);
  box-shadow: var(--sky-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.metro-grid-line > div:is(.metro-blue, .metro-orange, .metro-green, .metro-purple, .metro-lime, .metro-yellow-lime, .metro-red1, .metro-gray, .metro-red):hover,
.metro-grid-line:is(.metro-blue, .metro-orange, .metro-green, .metro-purple, .metro-lime, .metro-yellow-lime, .metro-red1, .metro-gray, .metro-red) > div:hover {
  background-image: var(--tile-gradient);
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow: var(--sky-shadow-hover);
}

/* Client logo rows have no colour class; white cards keep their logos and black text readable */
.metro-grid-line:has(.technology-description) > div {
  background-color: #fff;
  border-radius: var(--sky-radius);
  box-shadow: var(--sky-shadow);
}

/* Section labels: glass chip by default; labels with their own inline colour keep it and get the sheen */
.metro-header {
  background-color: rgba(255, 255, 255, 0.1);
  background-image: var(--sky-sheen);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--sky-heading);
  box-shadow: var(--sky-shadow);
}

/* Tighter vertical rhythm: the old sheet used 90px above section headings and 50px under tile rows */
.csc-header-n1 {
  margin: 36px 0 12px;
}

.metro-grid {
  margin-bottom: 24px;
}

/* The footer row sits outside a .container, so Bootstrap's -15px side margins made the page scroll sideways */
.page > .row {
  margin-left: 0;
  margin-right: 0;
}

/* Footer */
.footer a {
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* The phone number is a picture (not selectable text) to limit spam; it follows the surrounding font size */
.phoneImg {
  height: 0.9em;
  width: auto;
  vertical-align: -0.12em;
}
