/********** Template CSS **********/
:root {
  --primary: #0e4bc4;
  --secondary: #871a2d;
  --info: #00babd;
  --light: #f6f4f9;
  --dark: #04000b;
  --muted: #736985;
  --transparent: #00babd00;
  --calm: #3e4f62;
  --font-body:
    "Inter", "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --font-display:
    "Space Grotesk", "Jost", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-light .navbar-nav .nav-link {
  font-family: var(--font-display);
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Scroller ***/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

/*** Heading ***/
h1,
h2,
.fw-bold {
  font-weight: 700 !important;
}

h3,
h4,
.fw-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
  font-weight: 500 !important;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

.faq-text {
  color: var(--primary);
}

/*** Forms ***/
.form-control {
  color: var(--dark) !important;
  background-color: var(--bg-darker) !important;
  border-color: rgba(234, 230, 242, 0.2) !important;
}

.form-control::placeholder {
  color: var(--muted) !important;
}

.form-control:focus {
  color: var(--dark) !important;
  background-color: var(--bg-darker) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(164, 0, 252, 0.25) !important;
  outline: 0;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f067";
  font-family: "Font Awesome 5 Free";
  font-size: 10px;
  font-weight: bold;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
  position: relative;
  margin-right: 25px;
  padding: 35px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--light) !important;
  outline: none;
  transition: 0.5s;
}

.navbar-brand img {
  max-width: 50px;
  margin: 20px;
}

/* Normal mode: match dark-mode compact navbar sizing */
body:not(.dark-mode) .navbar-light {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body:not(.dark-mode) .navbar-light .navbar-nav .nav-link {
  padding: 20px 0;
  font-size: 16px;
  color: var(--dark) !important;
}

@media (max-width: 991.98px) {
  body:not(.dark-mode) .navbar-brand img {
    margin: 0;
  }
}

body:not(.dark-mode) .navbar-light .navbar-brand img {
  max-height: 70px;
}

body:not(.dark-mode) .navbar-light .navbar-contact,
body:not(.dark-mode) .navbar-light .navbar-contact a,
body:not(.dark-mode) .navbar-light .navbar-contact i,
body:not(.dark-mode) .navbar-light .navbar-contact span {
  color: rgba(0, 0, 0, 0.75);
}

body:not(.dark-mode) .sticky-top.navbar-light .navbar-contact,
body:not(.dark-mode) .sticky-top.navbar-light .navbar-contact a,
body:not(.dark-mode) .sticky-top.navbar-light .navbar-contact i,
body:not(.dark-mode) .sticky-top.navbar-light .navbar-contact span {
  color: var(--dark);
}

.navbar-brand:focus,
.navbar-brand:active,
.navbar-brand img:focus,
.navbar-brand img:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 0;
  color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-light .navbar-brand h1 {
  color: #ffffff;
}

.navbar-light .navbar-brand img {
  max-height: 82px;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-brand img {
  max-height: 70px;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-brand img {
    content: url("../img/logo.webp");
  }

  .sticky-top.navbar-light {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
  }

  body:not(.dark-mode) .sticky-top.navbar-light {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .navbar-light .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid #dddddd;
  }

  .navbar-light .navbar-nav .nav-link,
  .sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
    color: var(--dark) !important;
  }

  body:not(.dark-mode) .navbar-light .navbar-contact,
  body:not(.dark-mode) .navbar-light .navbar-contact a,
  body:not(.dark-mode) .navbar-light .navbar-contact i,
  body:not(.dark-mode) .navbar-light .navbar-contact span {
    color: var(--dark);
  }

  .navbar-light .navbar-brand h1 {
    color: var(--primary);
  }

  .navbar-light .navbar-brand img {
    max-height: 45px;
  }
}

@media (min-width: 992px) {
  .navbar-light {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(256, 256, 256, 0.1);
    z-index: 999;
  }

  /* Logged-in topbar must stay in-flow; otherwise it overlaps the app shell (sidebar/content). */
  .navbar-light.app-topbar {
    position: sticky;
  }

  /* Normal mode: white translucent + blur navbar background (both initial + sticky) */
  body:not(.dark-mode) .navbar-light {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .sticky-top.navbar-light {
    position: fixed;
    background: #ffffff79;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  body:not(.dark-mode) .sticky-top.navbar-light {
    background: rgba(255, 255, 255, 0.78);
  }

  .sticky-top.navbar-light .navbar-brand h1 {
    color: var(--primary);
  }

  .navbar-light .navbar-nav .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar-light .navbar-nav .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }

  .navbar-light .btn {
    color: var(--primary);
    background: #ffffff;
  }

  .sticky-top.navbar-light .btn {
    color: var(--primary);
    background: var(--secondary);
  }
}

body:not(.dark-mode) #themeToggle,
body:not(.dark-mode) #themeToggle i {
  color: var(--primary) !important;
}

#themeToggle,
#themeToggle:focus,
#themeToggle:active {
  outline: 0 !important;
  box-shadow: none !important;
}

#themeToggle:focus-visible {
  outline: 2px solid rgba(14, 75, 196, 0.35) !important;
  outline-offset: 3px;
}

/*** Hero Header ***/
.hero-header {
  position: relative;
  margin-bottom: 6rem;
  padding: 14rem 0 10rem;
  overflow: hidden;
  background-image: url("/img/bg-w.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.dark-mode .hero-header {
  background-image: url("/img/bg-b.webp");
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}

/* Gradient overlay */
.hero-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.hero-header > .container {
  position: relative;
  z-index: 2;
}

.hero-badges-row {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
}

.hero-card {
  position: relative;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-radius: 28px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  /* Inset (concave) neumorphism */
  box-shadow:
    inset 10px 12px 24px rgba(0, 0, 0, 0.35),
    inset -10px -12px 22px rgba(255, 255, 255, 0.12);
  transition:
    background-color 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.hero-card:hover,
.hero-card:focus-within {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.28);
}

body.dark-mode .hero-card:hover,
body.dark-mode .hero-card:focus-within,
body.dark-mode .hero-card:focus,
body.dark-mode .hero-card:focus-visible {
  background-color: transparent;
  box-shadow: none;
  outline: none;
  border: none;
  filter: none;
}

.hero-brand {
  text-decoration: none;
}

.hero-brand-logo {
  width: min(320px, 70vw);
  height: auto;
  display: block;
}

.hero-title {
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
}

.hero-lead {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}

.hero-badges {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.hero-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transform: translate3d(0, 0, 0);
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M4 2l7.5 17l2.1-6.3L20 10.6z'/%3E%3Cpath fill='%23000000' fill-opacity='.35' d='M4 2l7.5 17l2.1-6.3L20 10.6zM5.9 4.8l6.2 14.1l1.4-4.3l4.6-2.5z'/%3E%3C/svg%3E");
}

/* Don't show animated cursor for hero badges */
.hero-badges .hero-cursor {
  display: none;
}

.hero-badge {
  border: 1px solid rgba(128, 128, 128, 0.52);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.hero-badge:hover {
  transform: translateY(-6px) scale(1.05);
}

.hero-badge.is-simulated-hover {
  transform: translateY(-6px) scale(1.05);
}

.hero-badge:focus-visible {
  transform: translateY(-6px) scale(1.05);
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(0, 186, 189, 0.18),
    0 0 18px rgba(0, 186, 189, 0.28);
}

.hero-badge.bg-primary,
.hero-badge.bg-secondary {
  border-color: transparent;
}

.hero-float {
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}

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

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

@media (max-width: 991.98px) {
  .hero-header {
    padding: 7rem 0 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float {
    animation: none;
  }

  .hero-card {
    transition: none;
  }
  .hero-header::after {
    animation: none;
  }
  .hero-badge {
    transition: none;
  }
}

/*** Section Title ***/
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 500;
  text-transform: uppercase;
}

.section-title span:first-child,
.section-title span:last-child {
  position: relative;
  display: inline-block;
  margin-right: 30px;
  width: 30px;
  height: 2px;
}

.section-title span:last-child {
  margin-right: 0;
  margin-left: 30px;
}

.section-title span:first-child::after,
.section-title span:last-child::after {
  position: absolute;
  content: "";
  width: 15px;
  height: 2px;
  top: 0;
  right: -20px;
}

.section-title span:last-child::after {
  right: auto;
  left: -20px;
}

.section-title.text-primary span:first-child,
.section-title.text-primary span:last-child,
.section-title.text-primary span:first-child::after,
.section-title.text-primary span:last-child::after {
  background: var(--primary);
}

.section-title.text-secondary span:first-child,
.section-title.text-secondary span:last-child,
.section-title.text-secondary span:first-child::after,
.section-title.text-secondary span:last-child::after {
  background: var(--secondary);
}

.section-title.text-white span:first-child,
.section-title.text-white span:last-child,
.section-title.text-white span:first-child::after,
.section-title.text-white span:last-child::after {
  background: #ffffff;
}

/*** Feature ***/
.feature-item {
  transition: 0.5s;
}

.feature-item:hover {
  margin-top: -15px;
}

/*** About ***/
.progress {
  height: 5px;
}

.progress .progress-bar {
  width: 0px;
  transition: 3s;
}

.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 10px;
}

.collage-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.collage-item:first-child {
  grid-row: span 2;
}

.collage.wow {
  visibility: hidden;
}

/*** Fact ***/
.fact {
  margin: 6rem 0;
  position: relative;
  background: url("../img/stats.webp") center/cover no-repeat;
}
.fact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(101, 40, 134, 0.8);
  z-index: 0;
}
.fact > .container {
  position: relative;
  z-index: 1;
}

/*** Service ***/
.service-item {
  position: relative;
  padding: 45px 30px;
  background: var(--light);
  overflow: hidden;
  transition: 0.5s;
}

.service-item:hover {
  margin-top: -15px;
  padding-bottom: 60px;
  background: var(--primary);
}

.service-item .service-icon {
  margin: 0 auto 20px auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  background: url(../img/blob-primary.webp) center center no-repeat;
  background-size: contain;
  transition: 0.5s;
}

.service-item:hover .service-icon {
  color: var(--dark);
  background: url(../img/blob-secondary.webp) center center no-repeat;
  background-size: contain;
}

.service-item h5,
.service-item p {
  transition: 0.5s;
}

.service-item:hover h5,
.service-item:hover p {
  color: #ffffff;
}

.service-item a.btn {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  background: #ffffff;
  border-radius: 40px 40px 0 0;
  transition: 0.5s;
  z-index: 1;
}

.service-item a.btn:hover {
  color: var(--dark);
  background: var(--secondary);
}

.service-item:hover a.btn {
  bottom: 0;
}

.services-section {
  padding: 40px 0;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 22px 18px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), #a400fc);
  opacity: 0.9;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/*** Project Portfolio ***/
#portfolio-flters li {
  display: inline-block;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: 0.5s;
  border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
  color: var(--primary);
  border-color: var(--primary);
}

.portfolio-item img {
  transition: 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(98, 34, 204, 0.9);
  transition: 0.5s;
  opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/*** Newsletter ***/
.newsletter {
  margin: 6rem 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/*** Steps ***/
.step {
  position: relative;
  padding: 20px 18px 22px 18px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #a400fc, var(--primary));
  color: #fff;
  margin-bottom: 12px;
}

.step-title {
  margin: 4px 0 8px;
  font-size: 18px;
}
.step p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}
.step a {
  color: var(--primary);
  text-decoration: none;
}
.step a:hover {
  text-decoration: underline;
}

/*** Testimonial ***/
.testimonial-carousel .testimonial-item {
  padding: 0 30px 30px 30px;
}

.testimonial-carousel .owl-nav {
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin: 0 12px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--light);
  border-radius: 60px;
  font-size: 22px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/*** Team ***/
.team-item .btn {
  color: var(--primary);
  background: #ffffff;
}

.team-item .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Footer ***/
.footer-ticker {
  --ticker-bg: rgba(6, 16, 26, 0.98);
  --ticker-fg: rgba(255, 255, 255, 0.92);
  --ticker-border: rgba(255, 255, 255, 0.1);
  --ticker-speed: 80s;
}

.footer-ticker .bf-ticker__track li {
  font-weight: 650;
}

.footer-ticker .bf-ticker__track li:nth-child(odd) i.fa-check-circle {
  color: var(--primary);
}

.footer-ticker .bf-ticker__track li:nth-child(even) i.fa-check-circle {
  color: var(--secondary);
}

.footer {
  position: relative;
  padding-top: 5rem;
  color: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(1200px 480px at 20% 10%, #0e4bc444, rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 520px at 85% 35%, #871a2c5f, rgba(0, 0, 0, 0) 65%),
    linear-gradient(180deg, rgba(6, 16, 26, 0.96), rgba(6, 16, 26, 0.92));
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0.12;
  pointer-events: none;
}

.footer::after {
  content: "";
  position: absolute;
  inset: -120px -80px auto -80px;
  height: 360px;
  background: radial-gradient(closest-side, #0e4bc43e, rgba(0, 0, 0, 0));
  filter: blur(22px);
  pointer-events: none;
}

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

.footer-divider {
  position: absolute;
  inset: 0 0 auto 0;
  height: 110px;
  z-index: 0;
  opacity: 0.85;
}

.footer-divider svg {
  display: block;
  width: 100%;
  height: 110px;
}

.footer-divider path {
  fill: rgba(255, 255, 255, 0.06);
}

.footer-cta {
  margin-top: -4.25rem;
  margin-bottom: 2.25rem;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.footer-cta__kicker {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.6rem;
}

.footer-cta__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-cta__text {
  color: rgba(255, 255, 255, 0.82);
}

.footer-brand__logo {
  width: 58px;
  height: auto;
}

.footer-brand__name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-brand__tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-link:hover {
  color: var(--secondary);
  border-bottom-color: rgba(0, 186, 189, 0.6);
}

.footer-bullets {
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-bullets li + li {
  margin-top: 0.35rem;
}

.footer-map {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 210px;
  border: 0;
}

.footer-map iframe:not([src]) {
  display: none;
}

.footer .btn.btn-social {
  margin-right: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border: 1px solid rgba(256, 256, 256, 0.1);
  border-radius: 40px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
  color: var(--light);
  font-weight: normal;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  letter-spacing: 1px;
  box-shadow: none;
  color: var(--secondary);
}

.footer .copyright {
  padding: 25px 0;
  font-size: 14px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

.footer .footer-menu img {
  max-width: 166px;
  height: auto;
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
  color: var(--secondary);
}

/*** Hais Cloud ***/
.hais-btn {
  background: linear-gradient(270deg, #a400fc, #00babd, #a400fc);
  background-size: 600% 600%;
  animation: gradientLoop 6s ease infinite;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.hais-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

/*** FXs ***/
.parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  overflow: hidden;
}

.parallax .content {
  position: relative;
  z-index: 2;
}

.parallax-bg-secondary,
.parallax-bg,
.parallax-bg-kangoo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.parallax-bg {
  background-image: url("../img/stats.webp");
}

.parallax-bg-secondary {
  background-image: url("../img/cta.webp");
}

.parallax-bg-kangoo {
  background-image: url("../img/kangoo1.jpg");
}

.parallax-bg-secondary:before,
.parallax-bg:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.parallax-bg-kangoo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #a400fc 0%, rgba(164, 0, 252, 0) 100%);
  z-index: 0;
}

.parallax-bg-kangoo .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .parallax-bg,
  .parallax-bg-secondary,
  .parallax-bg-kangoo {
    background-attachment: scroll;
  }
}

.soft-hero {
  position: relative;
  isolation: isolate;
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      rgba(164, 0, 252, 0.25),
      transparent 60%
    ),
    radial-gradient(
      1200px 600px at 110% 110%,
      rgba(0, 186, 189, 0.25),
      transparent 60%
    ),
    var(--bg-dark, #0e0016);
}
.soft-hero .soft-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: -1;
}

/* Połówki (karty) */
.app-half {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.app-half:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.app-half__content {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-logo {
  max-height: 56px;
  width: auto;
  display: block;
}
.app-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.soft-hero .section-title span {
  background: currentColor;
}

@media (max-width: 991.98px) {
  .app-half__content {
    min-height: 220px;
  }
  .app-logo {
    max-height: 48px;
  }
}

.gradient-background {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.gradient-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ffc800c5, #a400fcc0, #8436ae84);
  background-size: 300% 300%;
  animation: gradientLoop 12s ease infinite;
  border-radius: inherit;
}

.bf-ticker {
  z-index: 2;
}

/*** Home Sections (Zakres usług / Wartości) ***/
.home-section {
  position: relative;
}

.home-services {
  overflow: hidden;
}

.home-services__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-services__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-services__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .home-services__bg-overlay {
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--primary) 50%, transparent),
    color-mix(in srgb, #000 55%, transparent),
    color-mix(in srgb, var(--secondary) 50%, transparent)
  );
}

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

/* Home -> Services: make only "inner-shadow" cards more transparent in light mode */
.home-services
  .home-card:not([data-service="wymiana-czesci"]):not(
    [data-service="elektronika"]
  ):not([data-service="naprawy"]):not([data-service="opony"]) {
  background: rgba(255, 255, 255, 0.5);
}

.home-values {
  overflow: hidden;
  background-image: url("/img/bg-tire-w.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-values::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.8);
}

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

body.dark-mode .home-values {
  background-image: url("/img/bg-tire-b.webp");
}

body.dark-mode .home-values::before {
  background: rgba(0, 0, 0, 0.8);
}

.home-section__title {
  letter-spacing: -0.02em;
}

.home-section__lead {
  color: rgba(0, 0, 0, 0.65);
}

.home-card {
  --card-accent: var(--primary);
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  /* Inset (concave) neumorphism */
  box-shadow:
    inset 10px 12px 24px rgba(0, 0, 0, 0.12),
    inset -10px -12px 22px rgba(255, 255, 255, 0.9);
}

.home-card:hover,
.home-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--card-accent);
  box-shadow:
    inset 10px 12px 24px rgba(0, 0, 0, 0.1),
    inset -10px -12px 22px rgba(255, 255, 255, 0.75),
    0 16px 36px rgba(0, 0, 0, 0.16),
    0 0 0 3px color-mix(in srgb, var(--card-accent) 55%, transparent);
}

.home-card.bg-primary {
  --card-accent: var(--primary);
}

.home-card.bg-secondary {
  --card-accent: var(--secondary);
}

.home-card.bg-primary,
.home-card.bg-secondary {
  border-color: transparent;
}

.home-values .home-card {
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.home-values .home-card.bg-primary,
.home-values .home-card.bg-secondary {
  box-shadow: none;
}

.home-card.bg-primary:hover,
.home-card.bg-primary:focus-within,
.home-card.bg-secondary:hover,
.home-card.bg-secondary:focus-within {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    0 0 0 3px color-mix(in srgb, var(--card-accent) 55%, transparent);
}

.home-values .home-card.text-white .home-card__header {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.home-values .home-card.text-white .home-card__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.home-values .home-card.text-white .home-card__text {
  color: rgba(255, 255, 255, 0.92);
}

.home-values .home-card.text-white .home-card__title {
  color: #ffffff;
}

.home-services .home-card[data-service="mechanika"] {
  border-color: var(--primary);
}
.home-services .home-card[data-service="mechanika"] .home-card__header {
  border-bottom-color: var(--primary);
}
.home-services .home-card[data-service="mechanika"] .home-card__icon,
.home-services .home-card[data-service="mechanika"] .home-list li::before {
  background: var(--primary);
  color: #ffffff;
}

.home-services .home-card[data-service] {
  --service-accent: var(--primary);
  --card-accent: var(--service-accent);
}

.home-services .home-card[data-service] .home-card__header {
  border-bottom-color: var(--service-accent);
}

.home-services .home-card[data-service] .home-card__icon,
.home-services .home-card[data-service] .home-list li::before {
  background: var(--service-accent);
  color: #ffffff;
}

.home-services .home-card[data-service="serwisy"] {
  --service-accent: var(--primary);
}
.home-services .home-card[data-service="wymiana-czesci"] {
  --service-accent: var(--secondary);
}
.home-services .home-card[data-service="diagnostyka"] {
  --service-accent: #6f42c1;
}
.home-services .home-card[data-service="elektronika"] {
  --service-accent: #fd7e14;
}
.home-services .home-card[data-service="naprawy"] {
  --service-accent: #20c997;
}
.home-services .home-card[data-service="likwidacja-szkod"] {
  --service-accent: #0dcaf0;
}
.home-services .home-card[data-service="opony"] {
  --service-accent: #6c757d;
}
.home-services .home-card[data-service="wynajem-stanowiska"] {
  --service-accent: #855207;
}

.home-services .home-card[data-service="wymiana-czesci"],
.home-services .home-card[data-service="elektronika"],
.home-services .home-card[data-service="naprawy"],
.home-services .home-card[data-service="opony"] {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.home-services .home-card[data-service="wymiana-czesci"]:hover,
.home-services .home-card[data-service="wymiana-czesci"]:focus-within,
.home-services .home-card[data-service="elektronika"]:hover,
.home-services .home-card[data-service="elektronika"]:focus-within,
.home-services .home-card[data-service="naprawy"]:hover,
.home-services .home-card[data-service="naprawy"]:focus-within,
.home-services .home-card[data-service="opony"]:hover,
.home-services .home-card[data-service="opony"]:focus-within {
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.18),
    0 0 0 3px color-mix(in srgb, var(--card-accent) 55%, transparent);
}

body.dark-mode .home-services .home-card:hover,
body.dark-mode .home-services .home-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--card-accent) 70%, transparent);
  outline-offset: 3px;
}

.home-services .home-card[data-service="blacharstwo"] {
  border-color: var(--secondary);
}
.home-services .home-card[data-service="blacharstwo"] .home-card__header {
  border-bottom-color: var(--secondary);
}
.home-services .home-card[data-service="blacharstwo"] .home-card__icon,
.home-services .home-card[data-service="blacharstwo"] .home-list li::before {
  background: var(--secondary);
  color: #ffffff;
}

.home-card__header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.home-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 75, 196, 0.1);
  color: var(--primary);
  flex: 0 0 auto;
}

.home-card__title {
  font-size: 1.15rem;
}

.home-card__subtitle {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.65);
}

.home-card__text {
  color: rgba(0, 0, 0, 0.7);
}

.home-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.home-list li {
  margin: 0.35rem 0;
  padding-left: 1.75rem;
  color: rgba(0, 0, 0, 0.75);
  position: relative;
}

.home-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(14, 75, 196, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.home-services__list li {
  break-inside: avoid;
}

.home-card--logo {
  --card-accent: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-card {
    transition: border-color 220ms ease;
  }

  .home-card:hover,
  .home-card:focus-within {
    transform: none;
  }
}

.home-services__logo {
  width: min(220px, 70%);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.home-services__logo--dark {
  display: none;
}

/*** 404 ***/
.error-404 {
  --error404-bg: #ffffff;
  --error404-fg: #000000;
  --error404-border: rgba(0, 0, 0, 0.14);
  background: var(--error404-bg);
  color: var(--error404-fg);
}

body.dark-mode .error-404 {
  --error404-bg: #000000;
  --error404-fg: #ffffff;
  --error404-border: rgba(255, 255, 255, 0.18);
}

.error-404__inner {
  min-height: 70vh;
  padding: clamp(56px, 10vh, 120px) 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  font-weight: 800;
  margin: 0 0 16px;
  animation: error404-float 6.5s ease-in-out infinite;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
}

body:not(.dark-mode) .error-404__code {
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

body.dark-mode .error-404__code {
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

@keyframes error404-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-404__code {
    animation: none;
  }
}

.error-404__content {
  max-width: 760px;
}

.error-404__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
}

.error-404__lead {
  margin: 0 auto 22px;
  max-width: 60ch;
  font-size: clamp(16px, 1.7vw, 18px);
  opacity: 0.82;
}

.error-404__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.error-404__btn:hover {
  transform: translateY(-2px);
}

.error-404__btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.error-404__btn--primary:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.error-404__btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--error404-border);
}

.error-404__btn--ghost:hover {
  background: rgba(127, 127, 127, 0.08);
  border-color: rgba(127, 127, 127, 0.26);
}

/* Authenticated app sidebar */
.app-shell {
  --app-topbar-height: 90px;
  display: flex;
  min-height: calc(100vh - var(--app-topbar-height));
}

.app-shell__content {
  flex: 1;
  min-width: 0;
}

.app-sidebar {
  width: 280px;
  flex: 0 0 280px;
  align-self: flex-start;
  position: sticky;
  top: var(--app-topbar-height);
  height: calc(100vh - var(--app-topbar-height));
  overflow: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (min-width: 992px) {
  .app-shell {
    padding-left: 280px;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: var(--app-topbar-height);
    bottom: 0;
    height: auto;
    z-index: 1030;
  }
}

.app-sidebar__inner {
  position: static;
  padding: 1rem;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.app-sidebar__icon {
  width: 1.25rem;
  text-align: center;
  opacity: 0.9;
  flex: 0 0 1.25rem;
}

.app-sidebar__label {
  min-width: 0;
}

.app-sidebar__link:hover {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}

.app-sidebar__link.active,
.app-sidebar__link[aria-current="page"] {
  background: rgba(13, 110, 253, 0.14);
  color: #0d6efd;
}

.app-sidebar__link--logout {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.85rem;
}

.app-sidebar__offcanvas .app-sidebar__nav {
  padding-bottom: 0.25rem;
}

body.dark-mode .app-sidebar {
  background: rgba(17, 24, 39, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-right-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .app-sidebar__link {
  color: rgba(255, 255, 255, 0.86);
}

body.dark-mode .app-sidebar__link:hover {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

body.dark-mode .app-sidebar__link.active,
body.dark-mode .app-sidebar__link[aria-current="page"] {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
}

body.dark-mode .app-sidebar__offcanvas.offcanvas {
  background: #111827;
  color: rgba(255, 255, 255, 0.86);
}

body.dark-mode .app-sidebar__offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .app-sidebar__offcanvas .btn-close {
  filter: invert(1) grayscale(1);
}
/* Admin tables: allow dropdown filters to overflow vertically while keeping horizontal scroll. */
.atable-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

/* Admin tables: filter checklist inside dropdown. */
.atable-filter-menu {
  max-height: min(75vh, 520px);
  overflow: auto;
}

/* Render admin table filter dropdown above any overflow containers. */
.atable-filter-popover {
  z-index: 100000;
}
