/**
 * SoftVision — professional polish (motion + micro-interactions)
 * Keeps existing brand colors; enhances feel without layout changes.
 */

:root {
  --sv-brand: #00b9ff;
  --sv-brand-dark: #009ad4;
  --sv-shadow-sm: 0 4px 14px rgba(0, 105, 146, 0.08);
  --sv-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --sv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Typography & copy rhythm —— */
.always-know-text {
  max-width: 42rem;
  line-height: 1.75;
  color: #555;
}

main#main section.py-5 {
  scroll-margin-top: 100px;
}

/* —— Header on scroll —— */
#header {
  transition: box-shadow 0.4s var(--sv-ease), background-color 0.4s var(--sv-ease),
    backdrop-filter 0.4s var(--sv-ease);
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(11, 35, 65, 0.08);
}

.nav-menu a.nav-link-text {
  position: relative;
}

.nav-menu > ul > li > a.nav-link-text::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: var(--sv-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--sv-ease);
}

.nav-menu > ul > li:hover > a.nav-link-text::after,
.nav-menu > ul > li.actived > a.nav-link-text::after {
  transform: scaleX(1);
}

/* —— CTAs —— */
.get-started-btn,
#hero .btn-get-started,
.get-started-btn1 {
  transition: transform 0.25s var(--sv-ease), box-shadow 0.25s var(--sv-ease),
    background 0.25s ease, border-color 0.25s ease;
}

.get-started-btn:hover,
#hero .btn-get-started:hover,
.get-started-btn1:hover {
  transform: translateY(-2px);
  box-shadow: var(--sv-shadow-md);
}

#hero .btn-get-started1:hover {
  border-color: var(--sv-brand) !important;
  background: rgba(0, 185, 255, 0.12);
}

.btn-outline-primary {
  transition: transform 0.25s var(--sv-ease), box-shadow 0.25s var(--sv-ease),
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sv-shadow-sm);
}

/* —— Section accent bars —— */
.sv-accent-blue,
.sv-accent-black,
#blue-button,
#black-button {
  pointer-events: none;
  vertical-align: middle;
}

.sv-accent-blue,
#blue-button {
  background-color: var(--sv-brand-dark) !important;
}

/* —— Service cards —— */
.services .icon-box {
  transition: transform 0.35s var(--sv-ease), box-shadow 0.35s var(--sv-ease);
}

.services .icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--sv-shadow-md);
}

.services .icon-box .back-img,
.services .icon-box .img-width {
  transition: transform 0.45s var(--sv-ease);
}

.services .icon-box:hover .back-img,
.services .icon-box:hover .img-width {
  transform: scale(1.03);
}

/* —— Team & project cards (layout partials) —— */
.people__card,
.project-card {
  transition: transform 0.4s var(--sv-ease), box-shadow 0.4s var(--sv-ease);
}

/* —— Home hero image float —— */
@keyframes sv-hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-float {
  animation: sv-hero-float 5s ease-in-out infinite;
}

/* —— Preloader accent —— */
#preloader::after {
  content: "";
  position: fixed;
  top: calc(50% + 42px);
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sv-brand), var(--sv-brand-dark));
  opacity: 0.85;
}

/* —— Clients carousel —— */
.clients .owl-item img {
  transition: transform 0.35s var(--sv-ease), opacity 0.35s ease;
}

.clients .owl-item img:hover {
  transform: scale(1.08);
}

/* —— Reduced motion —— */
/* —— Layout: header & page shell —— */
body {
  overflow-x: hidden;
}

#header {
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  border-radius: 0 0 20px 20px;
  padding: 8px 0;
}

.header-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

#header .logo img {
  max-height: clamp(48px, 10vw, 75px);
  width: auto;
  height: auto;
}

.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
  color: var(--sv-brand-dark) !important;
}

/* —— Home & content sections —— */
.sv-home-hero {
  margin-top: clamp(88px, 14vw, 110px);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.sv-section-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #0b2341;
  margin-bottom: 0.5rem;
}

.sv-hero-title {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  line-height: 1.25;
  color: #333;
  font-weight: 700;
}

.sv-hero-visual img {
  padding-right: 0 !important;
  max-width: min(100%, 420px);
  margin: 0 auto;
  display: block;
}

.sv-section-pad {
  padding-left: clamp(1.25rem, 8vw, 10%) !important;
  padding-right: clamp(1.25rem, 4vw, 2rem) !important;
}

.sv-section-pad-img {
  padding-left: clamp(1.25rem, 6vw, 8%) !important;
  padding-right: clamp(1.25rem, 4vw, 2rem) !important;
}

.our-filter-text {
  padding-top: clamp(1rem, 2vw, 2%) !important;
}

#bliz-everyone {
  padding-left: 1rem;
  padding-right: 1rem;
}

#bliz-everyone .process-imag {
  max-width: min(100%, 560px);
}

.clients h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  padding: 0 1rem;
}

.team-section,
.projects-section {
  padding-top: clamp(3rem, 8vw, 100px) !important;
  padding-bottom: clamp(3rem, 8vw, 100px) !important;
}

/* Inner page heroes */
@media (max-width: 991.98px) {
  #hero {
    height: auto !important;
    min-height: 55vh;
  }

  #hero .carousel-item {
    min-height: 55vh;
  }

  #hero .carousel-container {
    top: 50% !important;
    transform: translateY(-50%);
    padding: 6rem 1.25rem 3rem;
  }

  #hero h2 {
    font-size: clamp(1.35rem, 5vw, 2rem) !important;
  }
}

@media (max-width: 991.98px) {
  .nav-menu > ul > li {
    padding-left: 24px;
  }

  .why-us .content {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .services .icon-box {
    margin-bottom: 1.5rem;
  }

  .our-filter-image img {
    padding: 0 1rem 2rem;
  }
}

@media (max-width: 575.98px) {
  .mobile-nav-toggle {
    right: 1rem;
    top: 18px;
  }

  #header .logo img {
    max-height: 52px;
  }

  .get-started-btn {
    margin-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float {
    animation: none;
  }

  .get-started-btn:hover,
  #hero .btn-get-started:hover,
  .get-started-btn1:hover,
  .btn-outline-primary:hover,
  .services .icon-box:hover,
  .people__card:hover,
  .project-card:hover {
    transform: none;
  }

  .services .icon-box,
  .services .icon-box .back-img,
  .services .icon-box .img-width,
  #header,
  .nav-menu > ul > li > a.nav-link-text::after {
    transition-duration: 0.01ms !important;
  }
}
