/* CSS RESET */
html {
  box-sizing: border-box;
  font-size: 16px;
  scrollbar-width: none;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}
/*  */

@font-face {
  font-family: Code-Black;
  src: url(../../Code-Next/CodeNext-Black.otf);
}
@font-face {
  font-family: Code-Bold;
  src: url(../../Code-Next/CodeNext-Bold.otf);
}
@font-face {
  font-family: Code-Book;
  src: url(../../Code-Next/CodeNext-Book.otf);
}
@font-face {
  font-family: Code-Light;
  src: url(../../Code-Next/CodeNext-Light.otf);
}
@font-face {
  font-family: NVRFNSHD-Display;
  src: url(../../NVRFNSHD/NVRFNSHD-Display.ttf);
}
@font-face {
  font-family: NVRFNSHD-Display-Italic;
  src: url(../../NVRFNSHD/NVRFNSHD-DisplayItalic.ttf);
}
@font-face {
  font-family: NVRFNSHD-Italic;
  src: url(../../NVRFNSHD/NVRFNSHD-Italic.ttf);
}
@font-face {
  font-family: NVRFNSHD-Regular;
  src: url(../../NVRFNSHD/NVRFNSHD-Regular.ttf);
}
@font-face {
  font-family: NVRFNSHD-Regular;
  src: url(../../NVRFNSHD/NVRFNSHD-Regular.otf);
}

/*  */
:root {
  --header-height-desktop: 90px;
  --header-height-mobile: 75px;
  --swiper-slide-height: 100vh;

  --hero-height-desktop: 60vh;

  --cases-img-lg: 550px;
  --cases-img-md: 450px;
  --cases-img-sm: 350px;
  --cases-img-xsm: 250px;

  --bg-black: #000000;
  --bg-black-light: #151515;
  --bg-clients: #24272c;
  --bg-white: #ffffff;

  --bg-gradient-pink: linear-gradient(
    45deg,
    rgb(85, 56, 93) 0%,
    rgb(215, 19, 103) 45%,
    rgb(215, 19, 103) 55%,
    rgb(85, 56, 93) 100%
  );

  --bg-gradient-blue: linear-gradient(
    45deg,
    rgb(41, 53, 86) 0%,
    rgb(0, 87, 225) 45%,
    rgb(0, 87, 225) 55%,
    rgb(41, 53, 86) 100%
  );

  --bg-gradient-orange: linear-gradient(
    45deg,
    rgb(86, 52, 41) 0%,
    rgb(225, 87, 0) 45%,
    rgb(225, 87, 0) 55%,
    rgb(86, 52, 41) 100%
  );

  --menu-gradient: linear-gradient(
    45deg,
    rgb(1, 110, 255) 0%,
    rgb(208, 31, 165) 45%,
    rgb(224, 32, 18) 55%,
    rgb(255, 205, 5) 100%
  );

  --font-white: #ffffff;
  --font-black: #000000;

  --font-size-2xlg: 60px;
  --font-size-xlg: 40px;
  --font-size-lg: 27.5px;
  --font-size-md: 20px;
  --font-size-sm: 16px;
  --font-size-xsm: 13px;
  --font-size-2xsm: 12px;

  --spacing-2xsm: 5px;
  --spacing-xsm: 10px;
  --spacing-sm: 25px;
  --spacing-md: 50px;
  --spacing-lg: 75px;
  --spacing-xlg: 100px;

  --letter-spacing-sm: 1px;

  --line-height-normal: 1;
  --line-height-medium: 1.5;
}

* {
  color: var(--font-white);
  font-family: "NVRFNSHD-Display";
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-black-light);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-j-center-a-end {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bg-black {
  background: var(--bg-black);
}

.bg-gradient-pink {
  background: var(--bg-gradient-pink);
}
.bg-gradient-blue {
  background: var(--bg-gradient-blue);
}

.bg-gradient-orange {
  background: var(--bg-gradient-orange);
}

/* Header styles */
.fcb-main-body {
  position: relative;
}

.fcb-header {
  position: fixed;
  z-index: 100;
  width: 100%;
  padding: var(--spacing-xsm) var(--spacing-md);
  height: var(--header-height-desktop);
  background-color: var(--bg-black);
}

.fcb-header__logo-container {
  margin-right: auto;
  position: relative;
  z-index: 101;
}

.fcb-header__logo-anchor {
  display: block;
  pointer-events: auto;
}

.fcb-header__logo-img {
  width: 330px;
}

.fcb-header__right-menu {
  gap: var(--spacing-sm);
}

.fcb-header__right-menu-button {
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .fcb-header {
    padding: var(--spacing-xsm) var(--spacing-xsm);
  }
}

@media (max-width: 600px) {
  .fcb-header {
    height: var(--header-height-mobile);
  }

  .fcb-header__logo-img {
    width: 220px;
  }
}
/*  */

/* Overlay styles */
.overlay {
  position: absolute;
  z-index: 900;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Light overlay */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}
/*  */

/* Right Menu styles */
.fcb-right-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(500px, 100%);
  height: 100vh;
  background: var(--menu-gradient);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  padding: var(--spacing-xlg) var(--spacing-md) 0 var(--spacing-md);
  z-index: 999;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  font-family: "Code-Bold";
  font-size: var(--font-size-md);
}

.fcb-right-menu.show {
  right: 0;
}

.fcb-right-menu a,
.fcb-right-menu button,
.countries-dropdown__button,
.countries-dropdown__list li {
  font-family: "Code-Bold";
  font-size: var(--font-size-md);
}

.countries-dropdown__list li a:hover {
  text-decoration: underline;
}

.fcb-right-menu a {
  text-decoration: none;
  font-size: var(--font-size-md);
}

.fcb-right-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xsm);
  font-size: var(--font-size-sm);
}

.fcb-right-menu ul li {
  padding-left: var(--spacing-sm);
}

.fcb-right-menu__close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--spacing-2xsm);
}

.countries-dropdown {
  position: relative;
  width: 100%;
}

.countries-dropdown__button {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--font-white);
  font-size: var(--font-size-sm);
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.countries-dropdown__list {
  display: none;
  margin-top: var(--spacing-sm);
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.countries-dropdown__list.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.countries-dropdown__button::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--font-white);
  border-bottom: 2px solid var(--font-white);
  margin-left: var(--spacing-xsm);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.countries-dropdown__button.active::after {
  transform: rotate(-135deg);
}

.fcb-right-menu__footer {
  margin-top: auto;
}

.fcb-right-menu__footer-links {
  justify-content: space-between;
}

.fcb-right-menu__footer-links a {
  font-size: var(--font-size-sm);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fcb-right-menu__social-wrapper {
  margin-top: var(--spacing-md);
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
  justify-content: space-between;
}

.fcb-right-menu__social-icon {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.fcb-right-menu__social-icon:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

@media (max-width: 400px) {
  .fcb-right-menu {
    padding: var(--spacing-lg) var(--spacing-sm) 0 var(--spacing-sm);
  }
}

/* Hover animations to interactive elements */
.fc-header__right-menu-button,
.fcb-right-menu a,
.fcb-right-menu__close,
.countries-dropdown__button,
.fcb-right-menu__social-icon {
  transition: transform 0.3s ease;
}

.fc-header__right-menu-button:hover,
.fcb-right-menu a:hover,
.fcb-right-menu__close:hover,
.countries-dropdown__button:hover,
.fcb-right-menu__social-icon:hover {
  transform: scale(1.1);
}
/*  */

/*  */ /*  */ /*  */
body {
  background-color: var(--bg-white);
}
/* Hero styles */
.hero {
  position: relative;
  height: var(--hero-height-desktop);
  padding-top: var(--header-height-desktop);
  background-image: url(../../assets/media/best_cases_page/best_cases_hero_img.jpg);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: 0.7;
}

.hero p {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  color: var(--font-white);
  font-family: "Code-Bold";
  font-size: var(--font-size-2xlg);
}

@media (max-width: 600px) {
  .hero {
    padding-top: var(--header-height-mobile);
  }

  .hero p {
    font-size: var(--font-size-xlg);
  }
}

.cases {
  max-width: calc(2 * var(--cases-img-lg));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-row-gap: var(--spacing-md);
  grid-column-gap: var(--spacing-sm);
  padding: var(--spacing-lg) 0;
}

.cases__item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cases__title {
  max-width: var(--cases-img-lg);
  position: relative;
  color: var(--font-black);
  font-family: "NVRFNSHD-Display";
  font-size: 40px;
  letter-spacing: -0.2rem;
  font-weight: 100;
}

.cases__title::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 70px;
  height: 2px;
  border-radius: 10px;
  background-image: linear-gradient(
    90deg,
    #353c89,
    #2e3c73,
    #21457e,
    #045888,
    #006aae,
    #046fac,
    #0575b0,
    #b24830,
    #e94f22,
    #eb7f20,
    #db3821,
    #faa91a,
    #ffc50c,
    #febb11,
    #feca0d,
    #ffd70c,
    #ee2824,
    #ee2b24,
    #d83121,
    #d93121,
    #e42823,
    #ea6423,
    #eb6523,
    #e96b24,
    #fba919,
    #be3621,
    #bf411f,
    #ec2024,
    #df1b22,
    #f47b26,
    #f05025,
    #e72529,
    #e52040,
    #ea1566,
    #ca0162,
    #e71474,
    #c71047,
    #df155b,
    #e2175d,
    #e11b29,
    #e51b26,
    #c1151d,
    #9c0a11,
    #671a66,
    #47287e,
    #3e358a
  );
  transition: width 0.3s ease;
}

.cases__item:hover .cases__title::after {
  width: 0;
}

.cases__img-container {
  height: 300px;
  max-width: var(--cases-img-lg);
  overflow: hidden;
}

.cases__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cases__img:hover {
  transform: scale(1.15);
}

@media (max-width: 1200px) {
  .cases {
    max-width: calc(2 * var(--cases-img-md));
  }

  .cases__title {
    max-width: var(--cases-img-md);
    font-size: 40px;
  }

  .cases__img-container {
    height: 300px;
    max-width: var(--cases-img-md);
  }
}

@media (max-width: 900px) {
  .cases {
    grid-template-columns: 1fr;
    max-width: var(--cases-img-lg);
  }

  .cases__title {
    max-width: var(--cases-img-lg);
  }

  .cases__img-container {
    height: 300px;
    max-width: var(--cases-img-lg);
  }
}

@media (max-width: 600px) {
  .cases {
    max-width: var(--cases-img-md);
  }

  .cases__title {
    max-width: var(--cases-img-md);
    font-size: 30px;
    letter-spacing: -0.1rem;
  }

  .cases__img-container {
    max-width: var(--cases-img-md);
  }
}

@media (max-width: 500px) {
  .cases {
    max-width: var(--cases-img-sm);
  }

  .cases__title {
    max-width: var(--cases-img-sm);
    font-size: 30px;
    letter-spacing: -0.1rem;
  }

  .cases__img-container {
    height: 200px;
    max-width: var(--cases-img-sm);
  }
}

@media (max-width: 400px) {
  .cases {
    max-width: var(--cases-img-xsm);
  }

  .cases__title {
    max-width: var(--cases-img-xsm);
    font-size: 25px;
  }

  .cases__img-container {
    height: 150px;
    max-width: var(--cases-img-xsm);
  }
}

/*  */ /*  */ /*  */

/* Footer styles */
.footer-awards {
  background-color: var(--bg-black);
  width: 100%;
}

.footer-awards__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  max-width: 1200px;
  margin: auto;
}

.award-item {
  gap: var(--spacing-md);
}

.award-item__img {
  width: 80px;
}

.award-item__text {
  max-width: 120px;
  font-size: var(--font-size-xsm);
  color: var(--font-white);
  font-family: "Code-Light";
  letter-spacing: 0.2px;
}

@media (max-width: 1200px) {
  .footer-awards__wrapper {
    grid-template-columns: repeat(2, 1fr);
    font-size: var(--font-size-xsm);
    gap: var(--spacing-sm);
  }
}

@media (max-width: 1000px) {
  .award-item {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 600px) {
  .footer-awards__wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-sm);
  }

  .award-item {
    gap: var(--spacing-sm);
  }
}

.footer-cta {
  width: 100%;
  flex-direction: column;
  background-color: var(--bg-black-light);
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
  position: relative;
}

/* style for the animated border */
.footer-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--menu-gradient);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.footer-cta__heading {
  font-family: "NVRFNSHD-Display";
  font-size: var(--font-size-xlg);
  font-weight: 600;
}

.footer-cta__links {
  gap: var(--spacing-md);
  text-underline-offset: 3px;
  padding: var(--spacing-sm);
}

.footer-cta__links a {
  font-family: "NVRFNSHD-Display";
  font-weight: 600;
  letter-spacing: 1px;
}

@media (max-width: 1000px) {
  .footer-cta {
    padding: var(--spacing-sm);
    gap: var(--spacing-xsm);
  }

  .footer-cta__heading {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 600px) {
  .footer-cta {
    gap: var(--spacing-xsm);
  }
}

.footer-copyright {
  width: 100%;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  justify-content: space-around;
  background-color: var(--bg-black);
}

.footer-social {
  text-align: center;
  gap: var(--spacing-md);
}

.footer-social ul {
  gap: var(--spacing-sm);
}

.footer-social ul li a {
  font-size: var(--font-size-md);
  transition: opacity 0.3s ease;
}

.footer-social ul li a:hover {
  opacity: 0.7;
}

.footer-social p {
  font-weight: 600;
}

.footer-social p a {
  text-decoration: none;
  font-size: var(--font-size-xsm);
}

.footer-menu ul {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-menu ul li a {
  text-decoration: underline;
  text-underline-offset: 1px;
  font-size: var(--font-size-xsm);
  transition: opacity 0.3s ease;
  font-weight: 600;
}

.footer-menu ul li a:hover {
  opacity: 0.7;
}

@media (max-width: 1000px) {
  .footer-copyright {
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-menu ul {
    align-items: center;
    gap: var(--spacing-xsm);
  }

  .footer-social ul {
    gap: var(--spacing-xsm);
  }
}
/*  */
