/* Shared by the React and Angular apps. Replaces the jQuery plugins (owl carousel, flexslider,
   sticky, collapse, inview) of the original site. The original theme is main.css. */

html { scroll-behavior: smooth; }
#root { min-height: 100%; }

/* ---------- Hero background carousel ---------- */
/* The navbar is fixed at every width, so the hero starts below it. */
header.hero { overflow: hidden; margin-top: 66px; height: calc(100vh - 66px); min-height: 480px; }
header.hero.owl-bg-carousel-yes .owl-bg-carousel { z-index: 0; }
.hero-track {
  display: flex;
  height: 100%;
  transition: transform 1s ease-in-out;
}
.hero-track > .owl-bg-image {
  flex: 0 0 100%;
  height: 100%;
}
header.hero.owl-bg-carousel-yes .owl-theme .owl-controls { pointer-events: none; }
header.hero.owl-bg-carousel-yes .owl-theme .owl-controls button { pointer-events: auto; }
.owl-pagination { text-align: center; }
.owl-page {
  display: inline-block;
  padding: 10px 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.owl-page span { display: block; }
.owl-buttons button { border: 0; color: #fff; cursor: pointer; line-height: 1; }
.owl-buttons button:hover { opacity: 1 !important; }

#fadingProverbs {
  min-height: 50px;
  opacity: 0;
  transition: opacity .6s ease;
}
#fadingProverbs.is-visible { opacity: 1; }

/* ---------- Navbar: pinned to the top of the window at every width ---------- */
/* Bootstrap fixes .navbar-fixed-top on phones; main.css makes it static from 992px up,
   which left the menu off screen while the hero filled the viewport. Keep it fixed instead. */
.navbar.navbar-fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}
@media (min-width: 992px) {
  .navbar.navbar-fixed-top { position: fixed; }
}
@media (max-width: 991px) {
  .navbar-collapse.collapse.in { display: block; background-color: #171717; }
}

/* ---------- Equal-height columns (replaces jquery.matchHeight) ---------- */
@media (min-width: 768px) {
  .row-eq { display: flex; flex-wrap: wrap; }
  .row-eq > [class*='col-'] { display: flex; flex-direction: column; }
  .row-eq > [class*='col-'] > .inner-content { flex: 1; }
  .row-eq::before, .row-eq::after { display: none; }
}

/* ---------- Scroll reveal (replaces jquery.inview + animate.css hooks) ---------- */
.reveal-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal-hidden { opacity: 1; }
  .animated { animation: none !important; }
  .hero-track, .column-chart .item-progress, .circle-chart .item-progress,
  .bar-chart .item-progress, .bar-chart .percent { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Charts ---------- */
.column-chart > .chart > .item > .bar > .item-progress { transition: height 1.5s cubic-bezier(.19, 1, .22, 1); }
.circle-chart .item { position: relative; }
.circle-chart .item > .circle > .item-progress { transition: height 1.5s ease-in-out; }
.bar-chart > .item > .bar > .item-progress { transition: width 1.5s ease-in-out; }
.bar-chart > .item > .bar > .percent { transition: left 1.5s ease-in-out; }

/* ---------- Resume accordion ---------- */
.collapse-anim {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.collapse-anim.is-open { grid-template-rows: 1fr; }
.collapse-anim > .collapse-inner { overflow: hidden; }

/* ---------- Clients slider (replaces flexslider) ---------- */
#clients .flexslider.clients { position: relative; }
#clients .flexslider.clients > .slides { position: relative; display: grid; }
#clients .flexslider.clients > .slides > .client-slide {
  grid-area: 1 / 1;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
#clients .flexslider.clients > .slides > .client-slide.is-active { opacity: 1; visibility: visible; }
#clients .flexslider.clients > .slides > .client-slide > div { position: relative; }
#clients .flexslider.clients .flexslider-controls { grid-area: 2 / 1; margin-top: 40px; }
#clients .flexslider.clients .flexslider-controls > .flex-control-nav {
  position: static;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
#clients .flexslider.clients .flexslider-controls > .flex-control-nav > li {
  display: inline-block;
  margin: 3px;
}
.thumb-btn { padding: 0; border: 0; background: none; display: block; cursor: pointer; }
.thumb-btn img { width: 40px; height: 40px; border-radius: 3px; }
#clients .flex-direction-nav-custom { grid-area: 1 / 1; justify-self: end; align-self: start; }
#clients .flexslider.clients > .slides > .client-slide .content p.detail { white-space: pre-line; }

/* ---------- Contact ---------- */
.sayHello { padding: 0; cursor: pointer; }
.sayHello img { width: 125px; height: 125px; }
#contact .contact-form .form-group label.error { display: block; color: #e57373; }
#contact .contact-form .form-group button:disabled { opacity: .7; cursor: wait; }
#contact .form-status { margin: 10px 0 0; color: #e57373; text-align: center; min-height: 1px; }
#contact .contact-form .form-group .link-btn {
  height: auto;
  line-height: 1.5;
  margin-top: 10px;
  background: none;
  font-size: 14px;
  letter-spacing: 1px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Map ---------- */
#map .map-embed {
  display: block;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) grayscale(60%);
}

/* ---------- Blog page ---------- */
.blog-page { display: flex; flex-direction: column; height: 100vh; }
.blog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  background: #171717;
  border-bottom: 1px solid #282428;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.blog-bar a { color: #a1a1a1; white-space: nowrap; }
.blog-bar a:hover { color: #fff; }
.blog-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- 404 ---------- */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.not-found .divider { width: 200px; }

/* ---------- SDLC bands: flowing connectors ---------- */
/* The theme draws the connectors as plain borders. Replaced here with repeating
   gradients so the dashes can march along the path, and the arrows pulse with them. */

#ai-process { background-color: #0d0c0d; }
#ai-process .divider { margin-bottom: 60px; }
@media (max-width: 767px) { #ai-process .divider { margin-right: auto; margin-left: auto; } }

.process-section .work-process .item .inner-content:before {
  border-top: none;
  height: 1px;
  background-image: repeating-linear-gradient(to right, #6e6e6e 0 8px, transparent 8px 16px);
  background-size: 16px 1px;
  animation: sdlc-flow-right 1.2s linear infinite;
}

.process-section .work-process .item .inner-content:after {
  border-left: none;
  width: 1px;
  background-image: repeating-linear-gradient(to bottom, #6e6e6e 0 6px, transparent 6px 12px);
  background-size: 1px 12px;
  animation: sdlc-flow-down 1s linear infinite;
}
/* Steps with an upward arrow carry the flow back up. */
.process-section .work-process .item:not(.no-margin) .inner-content:after {
  animation-name: sdlc-flow-up;
}

/* The vertical connector between stacked steps on phones. */
@media (max-width: 767px) {
  .process-section .work-process .item:before {
    border-left: none;
    width: 1px;
    background-image: repeating-linear-gradient(to bottom, #6e6e6e 0 6px, transparent 6px 12px);
    background-size: 1px 12px;
    animation: sdlc-flow-down 1s linear infinite;
  }
}

@keyframes sdlc-flow-right { to { background-position: 16px 0; } }
@keyframes sdlc-flow-down { to { background-position: 0 12px; } }
@keyframes sdlc-flow-up { to { background-position: 0 -12px; } }

/* Arrows drift along the direction of travel. On phones the up arrow is rotated
   by the theme, so only its opacity is animated to avoid fighting that transform. */
@media (min-width: 768px) {
  .process-section .work-process .item > i.icon-Arrow.icon-Down-3 { animation: sdlc-arrow-down 1.6s ease-in-out infinite; }
  .process-section .work-process .item > i.icon-Arrow.icon-Up-3 { animation: sdlc-arrow-up 1.6s ease-in-out infinite; }
}
@media (max-width: 767px) {
  .process-section .work-process .item > i.icon-Arrow { animation: sdlc-arrow-pulse 1.6s ease-in-out infinite; }
}

@keyframes sdlc-arrow-down {
  0%, 100% { transform: translateY(-4px); opacity: .55; }
  50% { transform: translateY(4px); opacity: 1; }
}
@keyframes sdlc-arrow-up {
  0%, 100% { transform: translateY(4px); opacity: .55; }
  50% { transform: translateY(-4px); opacity: 1; }
}
@keyframes sdlc-arrow-pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* The endpoint dots mark where each band starts and finishes. */
.process-section .work-process .item .inner-content > span.dot { animation: sdlc-dot 1.6s ease-in-out infinite; }
@keyframes sdlc-dot {
  0%, 100% { background-color: #6e6e6e; }
  50% { background-color: #006ca3; }
}

@media (prefers-reduced-motion: reduce) {
  .process-section .work-process .item:before,
  .process-section .work-process .item .inner-content:before,
  .process-section .work-process .item .inner-content:after,
  .process-section .work-process .item > i.icon-Arrow,
  .process-section .work-process .item .inner-content > span.dot { animation: none; }
}
