/* Fluid Typography */
html {
  font-size: 16px;
}

@media screen and (max-width: 1440px) {
  html {
    font-size: calc(14px + 0.2vw);
  }
}

@media screen and (max-width: 768px) {
  .section-padding {
    padding: 1.5rem 0 !important;
  }

  .pulse-floating-item {
    scale: 0.7 !important;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .case-studies-wrapper .padding-global {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navik-header .logo {
    padding: 1.5rem 1rem;
    text-align: center;
    position: absolute !important;
  }

  .home-header_background-video-wrapper {
    padding: 0px !important;
  }
}

/* Specific component tweaks */
@media screen and (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Navbar responsiveness */
@media screen and (max-width: 991px) {
  .nav-menu {
    display: none;
    /* Will be toggled by JS */
  }

  .nav-menu.is-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1200px) {

  .dropdown_menu>ul {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .navik-menu>ul>li>a {
    position: relative;
    box-sizing: border-box;
    height: 3.5rem;
    padding: 0 20px;
    line-height: 3.5rem;
    white-space: nowrap;
  }

  .hero-video {
    padding: 1rem;
    height: calc(100vh - 4.5rem);
  }

  .navik-menu li>ul {
    margin-top: -2px;
    box-shadow: 0px;
  }

  .navik-header-container {
    height: 3.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Keep Navik layout intact */
  .navik-header-container {
    position: relative;
  }

  /* CENTER MENU PROPERLY */
  .navik-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* RIGHT CTA (independent of menu) */
  .navik-cta-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  /* FIX LOGO VERTICAL ALIGN */
  .logo {
    display: flex;
    align-items: center;
    height: 100%;
  }

  /* CTA style */
  .navik-cta-btn {
    padding: 4px 20px;
    border-radius: 6px;
    background: black;
    color: white;
    font-size: 12px;
    letter-spacing: -0.8px;
  }

  .navik-cta-wrapper {
    margin-right: 1rem;
  }

  .hero-video {
    border-radius: 6px;
  }

  .navik-header .logo {
    position: absolute;
    top: 50%;
    padding: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}

/* MOBILE FIX */
@media (max-width: 1199px) {
  .navik-header .logo {
    float: none !important;
  }

  .navik-header-container {
    height: 56px;
    /* LOCK HEADER HEIGHT */
  }

  .navik-menu>ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    background: white;
  }

  .navik-cta-wrapper {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    /* stays above menu */
  }

  .navik-header .logo {
    padding: 1.2rem 1rem;
    text-align: center;
  }
}