/* ------------------------------------------------------------------
   LAYOUT STYLES
   - Owl carousel theming
   - Preloader
   - Custom cursor
   - Navigation (desktop + mobile)
   - Header
   - Homepage hero
   - Animations & keyframes
   - Page header banner
------------------------------------------------------------------- */

/* ======= Owl-Theme custom style ======= */
.owl-theme .owl-nav.disabled + .owl-dots {
  margin-top: 0px;
  line-height: 1.5;
  display: block;
  outline: none;
}
.owl-theme .owl-dots {
  margin-top: 20px;
}
.owl-theme .owl-dots .owl-dot span {
  width: 11px;
  height: 11px;
  margin: 0 3px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: #fff;
  border: 1px solid #fff;
}
/* owl nav */
.owl-theme .owl-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}
.owl-theme .owl-prev {
  float: left;
}
.owl-theme .owl-next {
  float: right;
}
.owl-theme .owl-nav [class*='owl-'] {
  color: #fff;
  font-size: 20px;
  margin: 5px 30px;
  padding: 4px 7px;
  background: transparent;
  display: inline-block;
  cursor: pointer;
  border-radius: 0px;
}
.owl-theme .owl-nav [class*='owl-']:hover {
  color: #fff;
  background: transparent;
}

/* ======= Preloader style ======= */
.preloader-bg,
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f4f5f7;
  z-index: 999999;
}
#preloader {
  display: table;
  table-layout: fixed;
}
#preloader-status {
  display: table-cell;
  vertical-align: middle;
}
.preloader-position {
  position: relative;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}
.loader {
  position: relative;
  width: 60px;
  height: 60px;
  left: 50%;
  top: auto;
  margin-left: -22px;
  margin-top: 2px;
  animation: rotate 1s infinite linear;
  border: 2px solid #e3e4e6;
  border-radius: 50%;
}
.loader span {
  position: absolute;
  width: 60px;
  height: 60px;
  top: -2px;
  left: -2px;
  border: 2px solid transparent;
  border-top: 2px solid #18191d;
  border-radius: 50%;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ======= Cursor & Drag style  ======= */
.cursor {
  position: fixed;
  top: -40px;
  left: -40px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  visibility: hidden;
}
.cursor.visible {
  visibility: visible;
}
.cursor:before {
  content: '';
  width: 75px;
  height: 75px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid white;
  transition: all ease 0.15s;
  transform: scale(0.15);
}
.cursor.light:before {
  transform: scale(1);
  background: transparent;
}
.cursor.drag {
  mix-blend-mode: unset;
}
.cursor.drag:before {
  transform: scale(1);
  background: #18191d;
  border-color: transparent;
  content: '\e658';
  font-family: 'Themify';
  font-size: 20px;
  color: #fff;
}
.line {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======= Navigation style ======= */
/* Horizontal Desktop Navigation */
.horizontal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.horizontal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  align-items: center;
}

.horizontal-nav ul li {
  margin: 0;
  padding: 0;
}

.horizontal-nav ul li a {
  color: #18191d;
  font-size: 16px;
  font-family: var(--font-syne), sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.horizontal-nav ul li a:hover {
  color: #000000;
  opacity: 0.8;
}

.horizontal-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.horizontal-nav ul li a:hover::after,
.horizontal-nav ul li a.active::after {
  width: 100%;
}

/* Desktop: Show horizontal nav, hide burger */
@media (min-width: 768px) {
  .desktop-nav {
    display: block !important;
  }

  .nilsbrown-menu-burger-wrap {
    display: none !important;
  }
}

/* Mobile: Hide horizontal nav, show burger and slide-out menu */
@media (max-width: 767px) {
  .desktop-nav {
    display: none !important;
  }

  .nilsbrown-menu-burger-wrap {
    display: block !important;
  }
}

/* Mobile Slide-out Menu */
.nilsbrown-menu {
  display: block;
  background: #fff;
  right: 0;
  z-index: 101;
  position: fixed;
  width: 370px;
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  transition: 0.1s all ease;
  bottom: 0;
  top: 0;
  box-shadow: 0 0 30px rgb(0 0 0 / 5%);
  min-height: 300px;
  overflow: auto;
}
.nilsbrown-menu ul {
  position: relative;
  margin-top: 150px;
  margin-bottom: 50px;
}
.nilsbrown-menu ul > li {
  list-style: none;
  visibility: hidden;
  opacity: 0;
  top: -20px;
  position: relative;
  text-align: center;
  transition: 0.1s all ease;
  margin: 0 40px;
  padding: 15px 20px;
}
.nilsbrown-menu ul > li.is-show {
  visibility: visible;
  opacity: 1;
  top: 0px;
}
.nilsbrown-menu ul > li a {
  color: #18191d;
  font-size: 28px;
  font-family: var(--font-syne), sans-serif;
  font-weight: 700;
}

@media screen and (max-width: 1367px) {
  .nilsbrown-menu ul > li a {
    font-size: 28px;
  }
}

.nilsbrown-menu ul > li a:hover {
  color: #18191d;
}
.nilsbrown-menu ul > li.active a,
.nilsbrown-menu ul > li a.active {
  color: #18191d;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nilsbrown-menu.nilsbrown-menu-show {
  -webkit-transform: translateX(0%);
  -ms-transform: translateX(0%);
  transform: translateX(0%);
}
.logo-wrap {
  position: relative;
  z-index: 1;
}
.nilsbrown-menu ul li ul {
  position: relative;
  margin-top: 0px;
  margin-bottom: 0px;
  border: none;
  border-radius: 0px;
  background: transparent;
}
.nilsbrown-menu ul li ul li {
  list-style: none;
  visibility: visible;
  opacity: 1;
  top: 0px;
  position: relative;
  transition: 0.1s all ease;
  margin: 0;
  padding: 5px 15px;
  background: transparent;
  text-align: center;
}
.nilsbrown-menu ul li ul li:last-of-type,
.nilsbrown-menu ul li ul > li a:last-of-type {
  padding-bottom: 0px;
}
.nilsbrown-menu ul li ul li:hover {
  background: transparent !important;
}
.nilsbrown-menu ul > li.dropdown span {
  color: #18191d;
  font-size: 18px;
  font-family: var(--font-syne), sans-serif;
  font-weight: 700;
}
.nilsbrown-menu ul > li.dropdown span i {
  font-size: 9px;
  font-weight: normal;
  color: #868a9b;
}
.nilsbrown-menu ul li ul > li a {
  padding: 5px 15px;
  font-family: var(--font-syne), sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #868a9b;
  position: relative;
  transition: all 0.2s;
}
.nilsbrown-menu ul li ul > li a:hover,
.nilsbrown-menu ul li ul > li.active a {
  color: #18191d;
}

/* ======= Header Navigation style ======= */
.nilsbrown-header {
  height: 80px;
  padding: 20px;
  position: fixed;
  top: 0;
  z-index: 900;
  width: 100%;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 0 0 0 rgb(0 0 0 / 0%);
}

.nilsbrown-header .logo img {
  max-width: 7%;
  height: auto;
  position: relative;
  min-width: 50px;
}
@media (max-width: 991px) {
  .nilsbrown-header .logo img {
    min-width: 42px;
  }
}

.nilsbrown-header h1 {
  position: relative;
  font-size: 40px;
  line-height: 1em;
  font-weight: 900;
  margin-bottom: 0px;
  color: #fff;
  padding: 0;
}
.nilsbrown-header h1 span.stroke {
  position: absolute;
  font-size: 60px;
  -webkit-text-stroke: 1px #868a9b;
  color: transparent;
  transform: rotate(-30deg);
}
.nilsbrown-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px 0 rgb(0 0 0 / 8%);
}
.nilsbrown-header.scrolled h1 {
  margin-bottom: 0px;
  color: #18191d;
  padding: 0;
}
.nilsbrown-header.scrolled h1 span.stroke {
  -webkit-text-stroke: 1px #18191d;
  color: transparent;
}
.nilsbrown-nav-toggle {
  top: 0px !important;
}
.nilsbrown-nav-toggle i,
.nilsbrown-nav-toggle i:before,
.nilsbrown-nav-toggle i:after {
  background: #18191d;
  transition: background 0.4s ease;
}
.nilsbrown-menu-burger-wrap {
  position: relative;
  z-index: 1022;
}
.nilsbrown-nav-toggle {
  width: 50px;
  height: 50px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  top: -15px;
  z-index: 109;
  display: block !important;
  float: right;
  right: 0;
  border-bottom: none !important;
  background-color: #fff;
  border-radius: 50%;
}

.nilsbrown-nav-toggle:hover {
  background-color: #f5f5f5;
  transition: all 0.3s ease-in-out;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.nilsbrown-nav-toggle.active i {
  background: transparent !important;
}
.nilsbrown-nav-toggle.active i:before {
  top: -2px;
  transform: rotateZ(45deg);
}
.nilsbrown-nav-toggle.active i:after {
  bottom: 0;
  transform: rotateZ(-45deg);
}
.nilsbrown-nav-toggle:hover,
.nilsbrown-nav-toggle:focus,
.nilsbrown-nav-toggle:active {
  outline: none;
  border-bottom: none !important;
}
.nilsbrown-nav-toggle i {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 0px;
  top: 7px;
  font: bold 14px/0.4 Helvetica;
  text-transform: uppercase;
  text-indent: -55px;
  transition: all 0.2s ease-out;
}
.nilsbrown-nav-toggle i:before,
.nilsbrown-nav-toggle i:after {
  content: '';
  width: 25px;
  height: 2px;
  position: absolute;
  left: 12px;
  transition: 0.2s;
}
.nilsbrown-nav-toggle i:before {
  top: -6px;
}
.nilsbrown-nav-toggle i:after {
  bottom: -6px;
}

/* ======= Homepage style ======= */
.header-section {
  padding-top: 0px;
}
.header-section-wrap {
  overflow: visible;
}
.header-view-on-mobile h1,
.header-not-view-on-mobile h1 {
  font-size: 40px;
  line-height: 1em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #18191d;
  text-shadow: 1px 1px #fff;
}
.header-view-on-mobile h1 span.stroke,
.header-not-view-on-mobile h1 span.stroke {
  color: #18191d;
}
.header-view-on-mobile h6,
.header-not-view-on-mobile h6 {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: #18191d;
  margin-bottom: 0px;
}
.header-view-on-mobile p,
.header-not-view-on-mobile p {
  color: #18191d;
  font-size: 16px;
  line-height: 1em;
  margin-bottom: 30px;
  font-weight: 400;
}
.header-not-view-on-mobile {
  display: none;
}
.header-cont {
  position: relative;
  z-index: 99;
}
.header-cont-text {
  padding: 30px 0;
  position: relative;
  z-index: 99;
}
.header-cont-text p {
  font-family: var(--font-syne), sans-serif;
  font-size: 16px;
  margin-bottom: 0px;
}
.header-img {
  width: 100%;
  background-color: #d0d1d5;
}

/* ======= Homepage Image Animation style ======= */
.ripple-animation,
.morp-ani {
  --morp-value: 66% 24% 44% 56% / 44% 24% 70% 56%;
  --morp-md-value: 43% 38% 39% 35% / 44% 39% 43% 56%;
  --morp-time: 8s;
  --morp-spin-time: 20s;
  animation: morpspin var(--morp-spin-time) linear infinite reverse;
}
.morp-ani:before {
  animation: vsmorph var(--morp-time) ease-in-out infinite both alternate;
}
.transform-banner img {
  animation: border-transform 10s linear infinite alternate forwards;
  border-radius: 100%;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  30% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes morph {
  0% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 40% 60%;
  }
}
@keyframes vsmorph {
  0% {
    border-radius: var(--morp-value);
  }
  50% {
    border-radius: var(--morp-md-value);
  }
  100% {
    border-radius: 40% 60%;
  }
}
@keyframes vsheromorph {
  0% {
    border-radius: 25% 80% 57% 47% / 53% 60% 43% 52%;
  }
  50% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 40% 60%;
  }
}
@keyframes morpspin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes border-transform {
  0%,
  100% {
    border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
  }
  14% {
    border-radius: 40% 60% 54% 46%/49% 60% 40% 51%;
  }
  28% {
    border-radius: 54% 46% 38% 62%/49% 70% 30% 51%;
  }
  42% {
    border-radius: 61% 39% 55% 45%/61% 38% 62% 39%;
  }
  56% {
    border-radius: 61% 39% 67% 33%/70% 50% 50% 30%;
  }
  70% {
    border-radius: 50% 50% 34% 66%/56% 68% 32% 44%;
  }
  84% {
    border-radius: 46% 54% 50% 50%/35% 61% 39% 65%;
  }
}
@keyframes moving {
  0% {
    transform: translate(0px, 0px);
  }
  20% {
    transform: translate(0px, -60px);
  }
  50% {
    transform: translate(-60px, -60px);
  }
  70% {
    transform: translate(-60px, 0px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}
@keyframes arrow-left {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-20px);
  }
  40% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes arrow-right {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(20px);
  }
  40% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(0);
  }
}

/* ======= For Images Reveal Effect style ======= */
.reveal-effect {
  float: left;
  position: relative;
}
.reveal-effect.animated:before {
  content: '';
  width: 100%;
  height: 100%;
  background: #18191d;
  position: absolute;
  left: 0;
  top: 0;
  animation: 1s reveal linear forwards;
  z-index: 1;
  animation-timing-function: cubic-bezier(0.785, 0.135, 0.15, 0.86);
}
.reveal-effect.animated > * {
  animation: 1s reveal-inner linear forwards;
}
@keyframes reveal {
  0% {
    left: 0;
    width: 0;
  }
  50% {
    left: 0;
    width: 100%;
  }
  51% {
    left: auto;
    right: 0;
  }
  100% {
    left: auto;
    right: 0;
    width: 0;
  }
}
@keyframes reveal-inner {
  0% {
    visibility: hidden;
    opacity: 0;
  }
  50% {
    visibility: hidden;
    opacity: 0;
  }
  51% {
    visibility: visible;
    opacity: 1;
  }
  100% {
    visibility: visible;
    opacity: 1;
  }
}
@media only screen and (max-width: 991px),
  only screen and (max-device-width: 991px) {
  .cursor {
    display: none;
  }
}

/* ======= Text Animation style ======= */
.splitting.animated .char {
  animation: fadeInUp 0.4s cubic-bezier(0.3, 0, 0.7, 1) both;
  animation-delay: calc(30ms * var(--char-index));
}
.splitting .whitespace {
  width: 10px;
}
.splitting.txt.animated .char {
  animation: fadeIn 0.3s cubic-bezier(0.3, 0, 0.7, 1) both;
  animation-delay: calc(10ms * var(--char-index));
}
.splitting.txt .whitespace {
  width: 5px;
}
/* ======= For Images Imago Effect style ======= */
.imago {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: all 0.8s;
  transition-delay: 0.3s;
}
.imago.animated {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ======= Page Header Banner style ======= */
.banner-header {
  padding-top: 200px;
  padding-bottom: 200px;
  background-size: cover;
  background-position: top top;
}
.banner-header h6 {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  color: #868a9b;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.banner-header h6 a {
  color: #868a9b;
}
.banner-header h1 {
  position: relative;
  font-size: 60px;
  line-height: 1em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #18191d;
}
.banner-header p {
  font-size: 16px;
  font-weight: 400;
  color: #868a9b;
  animation-delay: 1s;
}
.banner-header p a {
  color: #868a9b;
}
.banner-header p span {
  color: #18191d;
}
/* author & date */
.banner-header .author .avatar {
  width: 27px;
  height: 27px;
  overflow: hidden;
  border-radius: 50%;
  margin-right: 5px;
}
.banner-header .post {
  margin-top: 20px;
}
.banner-header .post div {
  display: inline-block;
}
.banner-header .post .author {
  margin-right: 20px;
  font-size: 13px;
}
.banner-header .post .date-comment {
  position: relative;
  font-size: 13px;
  color: #fff;
  margin-right: 20px;
}
.banner-header .post .date-comment i {
  color: #18191d;
  font-size: 18px;
  margin-right: 5px;
}
.banner-header .post .date-comment:last-of-type {
  margin-right: 0px;
}
@media screen and (max-width: 767px) {
  .banner-header h6 {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 10px;
  }
  .banner-header h6 a:hover {
    color: #fff;
  }
  .banner-header h6 i {
    margin: 0 15px;
    font-size: 10px;
  }
  .banner-header h1 {
    font-size: 36px;
  }
  .banner-header p {
    font-size: 16px;
    color: #868a9b;
  }
}
