/* ======================================
   VARIABLES
====================================== */

.tekra-v2 {
  --tv-bg: #071725;
  --tv-bg2: #102b43;
  --tv-blue: #1689d7;
  --tv-light: #66c9ff;
  --tv-white: #ffffff;
  --tv-muted: #a6bacb;

  position: relative;
  z-index: 9990;

  width: 100%;
  direction: rtl;

  font-family: Arial, Helvetica, sans-serif;
}

.tekra-v2 *,
.tekra-v2 *::before,
.tekra-v2 *::after {
  box-sizing: border-box;
}

/* ======================================
   ANIMATED HEADER BACKGROUND
====================================== */

.tekra-v2 .tekra-v2-header {
  position: relative;
  isolation: isolate;

  width: 100%;
  overflow: hidden;

  background: linear-gradient(
    120deg,
    #061421,
    #102e48,
    #075487,
    #112b42,
    #061421
  );

  background-size: 400% 400%;

  animation: tekraHeaderGradient 14s ease-in-out infinite;

  border-bottom: 1px solid rgba(86,170,227,.20);

  box-shadow: 0 5px 25px rgba(0,0,0,.12);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition: box-shadow .35s ease;
}

/* MOVING BLUE LIGHT */

.tekra-v2 .tekra-v2-header::before {
  content: "";

  position: absolute;
  top: -170%;
  left: -20%;

  width: 45%;
  height: 440%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(51,174,255,.12),
    transparent
  );

  transform: rotate(25deg) translateX(-150%);

  pointer-events: none;
  z-index: 0;

  animation: tekraHeaderLight 11s linear infinite;
}

/* HEADER WHEN SCROLLING */

.tekra-v2.is-scrolled .tekra-v2-header {
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

/* ======================================
   HEADER CONTAINER
====================================== */

.tekra-v2-container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1380px;

  min-height: 94px;

  margin: 0 auto;
  padding: 10px 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  transition: min-height .3s ease;
}

.tekra-v2.is-scrolled .tekra-v2-container {
  min-height: 77px;
}

/* ======================================
   LOGO
====================================== */

.tekra-v2-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  text-decoration: none;

  animation: tvLogoEnter .8s ease both;
}

.tekra-v2-logo img {
  display: block;

  width: auto;
  height: auto;

  max-width: 185px;
  max-height: 70px;

  object-fit: contain;
  border-radius: 3px;

  transition:
    transform .35s ease,
    max-height .3s ease;
}

.tekra-v2-logo:hover img {
  transform: scale(1.04);
}

.tekra-v2.is-scrolled .tekra-v2-logo img {
  max-height: 58px;
}

/* ======================================
   DESKTOP NAVIGATION
====================================== */

.tekra-v2-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 1;

  gap: clamp(18px, 2.6vw, 42px);

  direction: ltr;
}

.tekra-v2-link {
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 50px;
  padding: 10px 1px;

  color: #d6e1eb !important;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;

  text-decoration: none !important;
  white-space: nowrap;

  transition:
    color .3s ease,
    transform .3s ease;

  animation: tvNavEnter .65s ease both;
}

.tekra-v2-link:nth-child(1) {
  animation-delay: .12s;
}

.tekra-v2-link:nth-child(2) {
  animation-delay: .20s;
}

.tekra-v2-link:nth-child(3) {
  animation-delay: .28s;
}

.tekra-v2-link:nth-child(4) {
  animation-delay: .36s;
}

/* NAVIGATION UNDERLINE */

.tekra-v2-link::before {
  content: "";

  position: absolute;

  bottom: 4px;
  left: 0;

  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    #1689d7,
    #79d7ff
  );

  transform: scaleX(0);
  transform-origin: left;

  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

/* GLOWING DOT */

.tekra-v2-link::after {
  content: "";

  position: absolute;
  bottom: 2px;
  right: 0;

  width: 5px;
  height: 5px;

  background: #66c9ff;

  border-radius: 50%;

  box-shadow: 0 0 12px #1689d7;

  opacity: 0;
  transform: scale(.3);

  transition: .3s ease;
}

.tekra-v2-link:hover,
.tekra-v2-link.active {
  color: #ffffff !important;
}

.tekra-v2-link:hover::before,
.tekra-v2-link.active::before {
  transform: scaleX(1);
}

.tekra-v2-link:hover::after,
.tekra-v2-link.active::after {
  opacity: 1;
  transform: scale(1);
}

/* ======================================
   CONTACT BUTTON
====================================== */

.tekra-v2-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 15px;
  flex-shrink: 0;

  min-height: 48px;
  padding: 13px 22px;

  background: linear-gradient(
    125deg,
    #1689d7,
    #0965a8
  );

  border: 1px solid rgba(125,209,255,.35);
  border-radius: 5px;

  color: #ffffff !important;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;

  text-decoration: none !important;

  box-shadow: 0 5px 18px rgba(22,137,215,.16);

  transition:
    box-shadow .3s,
    transform .3s;

  animation: tvNavEnter .7s .45s ease both;
}

/* BUTTON LIGHT SWEEP */

.tekra-v2-cta::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,255,.25) 48%,
    transparent 75%
  );

  transform: translateX(-150%);
  transition: transform .65s ease;
}

.tekra-v2-cta:hover::before {
  transform: translateX(150%);
}

.tekra-v2-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(22,137,215,.35);
}

.tekra-v2-cta svg {
  width: 17px;
  height: 17px;
  transition: transform .3s ease;
}

.tekra-v2-cta:hover svg {
  transform: translateX(4px);
}

/* ======================================
   ANIMATED BOTTOM LINE
====================================== */

.tekra-v2-bottom-line {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  overflow: hidden;
  pointer-events: none;
}

.tekra-v2-bottom-line::after {
  content: "";

  display: block;

  height: 100%;
  width: 28%;

  background: linear-gradient(
    90deg,
    transparent,
    #49bcff,
    transparent
  );

  transform: translateX(-110%);

  animation: tvBottomSweep 7s linear infinite;
}

/* ======================================
   HAMBURGER BUTTON
====================================== */

.tekra-v2-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;

  width: 44px;
  height: 44px;

  padding: 9px;

  border: 1px solid rgba(115,195,246,.28);
  border-radius: 5px;

  background: rgba(22,137,215,.10);

  cursor: pointer;
  color: #ffffff;
}

.tekra-v2-toggle span {
  width: 23px;
  height: 2px;

  background: #ffffff;
  border-radius: 4px;

  transition:
    transform .3s,
    opacity .3s;
}

.tekra-v2-toggle:hover {
  background: rgba(22,137,215,.24);
}

/* ======================================
   MOBILE OVERLAY
====================================== */

.tekra-v2-overlay {
  position: fixed;
  inset: 0;

  z-index: 9998;

  background: rgba(0,8,16,.78);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .4s,
    visibility .4s;
}

.tekra-v2.menu-open .tekra-v2-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ======================================
   MOBILE SIDEBAR
====================================== */

.tekra-v2-sidebar {
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;

  z-index: 9999;

  width: min(375px, 90vw);
  height: 100dvh;

  overflow-y: auto;

  display: flex;
  flex-direction: column;

  background: linear-gradient(
    160deg,
    #102b43 0%,
    #061522 75%
  );

  border-left: 1px solid rgba(62,172,244,.25);

  color: #ffffff;

  box-shadow: -20px 0 60px rgba(0,0,0,.3);

  transform: translateX(105%);
  visibility: hidden;

  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    visibility .45s;
}

.tekra-v2.menu-open .tekra-v2-sidebar {
  transform: translateX(0);
  visibility: visible;
}

/* ======================================
   SIDEBAR TOP
====================================== */

.tekra-v2-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 25px;

  border-bottom: 1px solid rgba(255,255,255,.1);

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.tekra-v2-side-top em {
  font-style: normal;
  color: #65c7ff;
  font-size: 10px;
}

.tekra-v2-close {
  width: 39px;
  height: 39px;

  background: rgba(255,255,255,.07);

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;

  color: #ffffff;
  font-size: 27px;

  cursor: pointer;
}

/* ======================================
   SIDEBAR BRAND
====================================== */

.tekra-v2-side-brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 17px;

  padding: 30px 25px;
}

.tekra-v2-side-brand img {
  max-width: 175px;
  max-height: 90px;
  object-fit: contain;
  border-radius: 3px;
}

.tekra-v2-side-brand small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #72caff;
}

/* ======================================
   SIDEBAR LINKS
====================================== */

.tekra-v2-side-nav {
  display: flex;
  flex-direction: column;

  padding: 10px 25px 30px;
}

.tekra-v2-side-nav a {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 19px 0;

  border-bottom: 1px solid rgba(255,255,255,.12);

  color: #ecf4fa !important;

  font-size: 19px;
  font-weight: 600;

  text-decoration: none !important;

  transform: translateX(20px);
  opacity: 0;

  transition:
    color .3s,
    padding .3s,
    background .3s;
}

.tekra-v2.menu-open .tekra-v2-side-nav a {
  animation: tvSideItem .5s ease forwards;
}

.tekra-v2.menu-open .tekra-v2-side-nav a:nth-child(1) {
  animation-delay: .10s;
}

.tekra-v2.menu-open .tekra-v2-side-nav a:nth-child(2) {
  animation-delay: .16s;
}

.tekra-v2.menu-open .tekra-v2-side-nav a:nth-child(3) {
  animation-delay: .22s;
}

.tekra-v2.menu-open .tekra-v2-side-nav a:nth-child(4) {
  animation-delay: .28s;
}

.tekra-v2.menu-open .tekra-v2-side-nav a:nth-child(5) {
  animation-delay: .34s;
}

.tekra-v2-index {
  font-family: monospace;
  font-size: 11px;
  color: #52b6f2;
}

.tekra-v2-arrow {
  margin-left: auto;
  font-size: 19px;
  color: #52b6f2;

  transition: transform .3s;
}

.tekra-v2-side-nav a:hover,
.tekra-v2-side-nav a.active {
  color: #66c9ff !important;
  padding-left: 9px;
}

.tekra-v2-side-nav a:hover .tekra-v2-arrow {
  transform: translate(3px,-3px);
}

/* ======================================
   SIDEBAR FOOTER
====================================== */

.tekra-v2-side-bottom {
  margin-top: auto;

  padding: 25px;

  border-top: 1px solid rgba(255,255,255,.12);

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tekra-v2-side-bottom a {
  color: #71caff !important;
  font-size: 13px;
  text-decoration: none !important;
}

.tekra-v2-side-bottom small {
  color: #8da5b7;
  font-size: 11px;
}

/* ======================================
   ANIMATED GRADIENT
====================================== */

@keyframes tekraHeaderGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ======================================
   MOVING BLUE LIGHT
====================================== */

@keyframes tekraHeaderLight {
  0% {
    transform: rotate(25deg) translateX(-200%);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  65% {
    opacity: 1;
  }

  100% {
    transform: rotate(25deg) translateX(550%);
    opacity: 0;
  }
}

/* ======================================
   ENTRANCE ANIMATIONS
====================================== */

@keyframes tvLogoEnter {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tvNavEnter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tvBottomSweep {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(460%);
  }
}

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

/* ======================================
   TABLET & MOBILE
====================================== */

@media (max-width: 991px) {

  .tekra-v2-container {
    min-height: 78px;
    padding: 10px 20px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    gap: 10px;
  }

  .tekra-v2.is-scrolled .tekra-v2-container {
    min-height: 68px;
  }

  .tekra-v2-toggle {
    display: flex;

    grid-column: 1;
    grid-row: 1;

    justify-self: start;
  }

  .tekra-v2-logo {
    grid-column: 2;
    grid-row: 1;

    justify-self: center;
  }

  .tekra-v2-logo img {
    max-width: 150px;
    max-height: 60px;
  }

  .tekra-v2-nav,
  .tekra-v2-cta {
    display: none;
  }

  .tekra-v2 .tekra-v2-header {
    animation-duration: 18s;
  }
}

/* ======================================
   SMALL MOBILE
====================================== */

@media (max-width: 480px) {

  .tekra-v2-container {
    min-height: 72px;
    padding: 9px 15px;
  }

  .tekra-v2-logo img {
    max-width: 130px;
    max-height: 52px;
  }

  .tekra-v2-toggle {
    width: 42px;
    height: 42px;
  }
}

/* ======================================
   REDUCED MOTION
====================================== */

@media (prefers-reduced-motion: reduce) {

  .tekra-v2 *,
  .tekra-v2 *::before,
  .tekra-v2 *::after {
    animation: none !important;
    transition: none !important;
  }

  .tekra-v2-side-nav a {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Keep header fixed at top while scrolling in themes with wp_body_open. */
.tekra-v2 { position:sticky; top:0; }
body.admin-bar .tekra-v2 { top:32px; }
@media(max-width:782px){body.admin-bar .tekra-v2 {top:46px;}}

