@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --primary: #0a2a43;
  --secondary: #1f6feb;
  --tertiary: #17a398;
  --quaternary: #222222;
  --quinary: #f3f4f6;
  --light-blue: #8af1f2;
  --gray-darker: #8a8d93;
  --crimson: #8b1a1a;
  --crimson-hover: #a82020;
  --gray-darker: #555;
  --quaternary: #333;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.hamburger-btn {
  display: none;
}

@media (max-width: 767px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  header {
    width: 100%;
    height: fit-content;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    animation: change-background forwards;
    animation-timeline: scroll();
    animation-range-start: 1%;
    animation-range-end: 4%;
    /* border: 2px solid green; */
  }

  .nav-bar {
    /* border: 2px solid blue; */
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .nav-links a,
  .lang-select-wrapper,
  .free-consultation {
    display: none;
  }

  .logo {
    width: 65%;
    /* border: 2px solid blue; */
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  #title {
    /* border: 2px solid orange; */
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.8px;
  }

  #logo {
    width: 3rem;
    height: 3rem;
    margin-right: 0.5rem;
  }

  .hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.8rem;
    height: 1.2rem;
    z-index: 100;
  }

  .hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--quinary);
    border-radius: 3px;
    animation: change-hamburger-menu-bar forwards;
    animation-timeline: scroll();
    animation-range-start: 1%;
    animation-range-end: 4%;
  }

  /* ── 4. THE "X" ANIMATION ── */
  /* When the button has the class "open", rotate the bars into an X */
  .hamburger-btn.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-btn.open .bar:nth-child(2) {
    opacity: 0;
    /* Middle bar disappears */
  }

  .hamburger-btn.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--quinary);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--crimson);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    list-style: none;
    /* margin: 1rem 0; */
    width: 100%;
  }

  .nav-links a {
    display: block;
    color: var(--quinary);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1.5rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
      color 0.2s,
      background 0.2s;
    animation: change-navLinks forwards;
    animation-timeline: scroll();
    animation-range-start: 1%;
    animation-range-end: 4%;
  }

  .nav-links a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:hover {
    color: var(--quinary);
    background: rgba(255, 255, 255, 0.05);
  }
  /* 
  .headline {
    margin-top: 6rem;
  } */

  .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .get-premium {
    margin-bottom: 2rem;
  }
  .container h1 {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    line-height: 4rem;
  }

  .container p {
    width: 75%;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8rem;
    margin-top: 1rem;
  }

  .cfa {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
  }

  .section-1-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border: 3px solid red; */
    margin-bottom: 2rem;
  }

  .section-1-container h1 {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    line-height: 3rem;
  }

  .section-1-container p {
    width: 75%;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8rem;
  }

  .compare {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }

  .card-left,
  .card-right {
    width: 75%;
    border-radius: 20px;
  }

  .card-right h2 {
    line-height: 2.5rem;
  }
  .sec-2 {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .sec-2-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .sec2-title-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sec2-tag {
    margin-top: 2rem;
  }

  .sec2-headline {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    line-height: 3.5rem;
    margin-bottom: 2.5rem;
  }

  .card-area {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 2rem;
  }

  .section-3 {
    /* border: 2px solid red; */
    width: 100%;
    padding-bottom: 2rem;
    padding: 0;
    margin: 0;
  }

  .sec3-container {
    /* border: 2px solid blue; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 40px;
  }

  .sec3-title-container {
    /* border: 2px solid orange; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sec-headline {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    padding: 0;
    line-height: 3rem;
    margin-bottom: 1.5rem;
  }

  .sec-sub-headline {
    width: 75%;
    margin: 0 0 1rem 0;
    padding: 0;
    font-size: 1.1rem;
    text-align: center;
    /* border: 2px solid green; */
    line-height: 1.8rem;
  }

  .section-4 {
    /* border: 3px solid red; */
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sec4-container {
    /* border: 3px solid blue; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 40px;
  }

  .sec4-sub-headline {
    /* border: 3px solid orange; */
    width: 75%;
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8rem;
  }

  .sec4-headline {
    width: 100%;
    font-size: 2rem;
    margin: 2rem 1rem;
    padding: 2rem 1rem;
  }

  .sec4-card-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .section-5 {
    /* border: 3px solid lightgreen; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }

  .sec5-container {
    /* border: 3px solid lightblue; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }

  .sec5-headline {
    font-size: 2rem;
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .sec5-sub-headline {
    width: 75%;
    font-size: 1.1rem;
    /* text-align: center; */
    line-height: 1.8rem;
    padding: 1.5rem 1rem;
    margin: 1.5rem 1rem;
  }

  .sec5-card-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }

  .sec5-card-headline {
    font-size: 23px;
  }

  .sec5-cards::before {
    content: "\201D";
    font-family: sans-serif;
    font-size: 100px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    position: absolute;
    top: 14px;
    right: 26px;
    pointer-events: none;
    font-weight: 700;
  }

  .section-6 {
    padding: 0;
    margin: 0;
  }

  .sec6-container {
    width: 100%;
    /* border: 3px solid lightblue; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }

  .sec6-headline {
    /* border: 3px solid purple; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
  }

  .sec6-headline-container {
    padding: 1.3rem 1.3rem;
    width: 100%;
    text-align: center;
  }

  .sec6-headline-container h1 {
    font-size: 2rem;
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .view-all-articles {
    margin: 1rem 1rem;
    padding: 1rem 1rem;
  }

  .sec6-card-area {
    /* border:3px solid orange; */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
  }

  .sec6-card {
    width: 80%;
  }

  .sec7-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .sec7-right {
    padding: 2rem 1.5rem;
  }

  .sec8-container {
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }
  .sec8-headline {
    width: 100%;
    padding: 1.5rem 1rem;
    margin: 1.7rem 1rem;
    font-size: 2rem;
    color: #1a1a1a;
  }
  .sec8-sub-headline {
    width: 75%;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem 1rem;
    margin: 0 1rem;
    color: #666;
  }
  .sec8-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 1rem;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem;
  }
  .logo-in-footer,
  .brand {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .logo-in-footer *,
  .brand * {
    margin: 0.5rem 0;
  }

  .social-media-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }
  .services,
  .services-list {
    padding: 1rem 0;
  }
  }
  .industries {
    padding: 1rem 1rem;
  }
  .contact {
    padding: 1rem 1rem;
  }
  .contact h3 {
    margin-bottom: 1rem;
  }
  .info {
    padding: 1rem 0;
  }
  .info p {
    padding: 0.5rem 0;
    text-align: left;
  }
}

@media (min-width: 767px) and (max-width: 1205px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  header {
    width: 100%;
    height: fit-content;
  }

  .nav-bar {
    display: flex;
    justify-content: space-around;
  }
  .nav-links a {
    display: none;
  }

  .logo {
    width: 45%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  #title {
    /* border: 2px solid orange; */
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.8px;
  }

  #logo {
    width: 3rem;
    height: 3rem;
    margin-right: 0.5rem;
  }

  .hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.8rem;
    height: 1.2rem;
    z-index: 100;
  }

  .hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--quinary);
    border-radius: 3px;
    animation: change-hamburger-menu-bar forwards;
    animation-timeline: scroll();
    animation-range-start: 1%;
    animation-range-end: 4%;
  }

  /* ── 4. THE "X" ANIMATION ── */
  /* When the button has the class "open", rotate the bars into an X */
  .hamburger-btn.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-btn.open .bar:nth-child(2) {
    opacity: 0;
    /* Middle bar disappears */
  }

  .hamburger-btn.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--quinary);
  }

  .nav-links {
    position: fixed;
    top: 6rem;
    left: 70%;
    right: 0;
    bottom: 0;
    background-color: var(--crimson);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    list-style: none;
    /* margin: 1rem 0; */
    width: 100%;
  }

  .nav-links a {
    display: block;
    color: var(--quinary);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1.5rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
      color 0.2s,
      background 0.2s;
    animation: change-navLinks forwards;
    animation-timeline: scroll();
    animation-range-start: 1%;
    animation-range-end: 4%;
  }

  .nav-links a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:hover {
    color: var(--quinary);
    background: rgba(255, 255, 255, 0.05);
  }

  .lang-select-wrapper {
    width: auto;
  }
  .lang-select-wrapper .btn-cfa {
    margin-left: 1rem;
  }

  .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .get-premium {
    margin-bottom: 2rem;
  }
  .container h1 {
    border: 3px solid green;
    width: 100%;
    font-size: 2rem;
    text-align: center;
    line-height: 4rem;
  }

  .container p {
    width: 75%;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8rem;
    margin-top: 1rem;
  }

  .cfa {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
  }

  .section-1-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border: 3px solid red; */
    margin-bottom: 2rem;
  }

  .section-1-container h1 {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    line-height: 3rem;
  }

  .section-1-container p {
    width: 75%;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8rem;
  }

  .compare {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }

  .card-left,
  .card-right {
    width: 75%;
    border-radius: 20px;
  }

  .card-right h2 {
    line-height: 2.5rem;
  }
  .sec-2 {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .sec-2-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .sec2-title-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sec2-tag {
    margin-top: 2rem;
  }

  .sec2-headline {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    line-height: 3.5rem;
    padding: 0;
    margin-bottom: 2.5rem;
  }

  .card-area {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 2rem;
  }

  .section-3 {
    /* border: 2px solid red; */
    width: 100%;
    padding-bottom: 2rem;
    padding: 0;
    margin: 0;
  }

  .sec3-container {
    /* border: 2px solid blue; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 40px;
  }

  .sec3-title-container {
    /* border: 2px solid orange; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sec-headline {
    /* border: 2px solid green; */
    width: 100%;
    font-size: 2rem;
    text-align: center;
    padding: 0;
    line-height: 3rem;
    margin-bottom: 1.5rem;
  }

  .sec-sub-headline {
    width: 75%;
    margin: 0 0 1rem 0;
    padding: 0;
    font-size: 1.1rem;
    text-align: center;
    /* border: 2px solid green; */
    line-height: 1.8rem;
  }

  .section-4 {
    /* border: 3px solid red; */
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sec4-container {
    /* border: 3px solid blue; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 40px;
  }

  .sec4-sub-headline {
    /* border: 3px solid orange; */
    width: 75%;
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8rem;
  }

  .sec4-headline {
    width: 100%;
    font-size: 2rem;
    margin: 2rem 1rem;
    padding: 2rem 1rem;
  }

  .sec4-card-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .section-5 {
    /* border: 3px solid lightgreen; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }

  .sec5-container {
    /* border: 3px solid lightblue; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }

  .sec5-headline {
    font-size: 2rem;
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .sec5-sub-headline {
    width: 75%;
    font-size: 1.1rem;
    /* text-align: center; */
    line-height: 1.8rem;
    padding: 1.5rem 1rem;
    margin: 1.5rem 1rem;
  }

  .sec5-card-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }

  .sec5-card-headline {
    font-size: 23px;
  }

  .sec5-cards::before {
    content: "\201D";
    font-family: sans-serif;
    font-size: 100px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    position: absolute;
    top: 14px;
    right: 26px;
    pointer-events: none;
    font-weight: 700;
  }

  .section-6 {
    padding: 0;
    margin: 0;
  }

  .sec6-container {
    width: 100%;
    /* border: 3px solid lightblue; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }

  .sec6-headline {
    /* border: 3px solid purple; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
  }

  .sec6-headline-container {
    padding: 1.3rem 1.3rem;
    width: 100%;
    text-align: center;
  }

  .sec6-headline-container h1 {
    font-size: 2rem;
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .view-all-articles {
    margin: 1rem 1rem;
    padding: 1rem 1rem;
  }

  .sec6-card-area {
    /* border:3px solid orange; */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
  }
  .sec6-card {
    width: 80%;
  }
  .sec7-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .sec7-right {
    padding: 2rem 1.5rem;
  }

  .sec8-container {
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }
  .sec8-headline {
    width: 100%;
    padding: 1.5rem 1rem;
    margin: 1.7rem 1rem;
    font-size: 2rem;
    color: #1a1a1a;
  }
  .sec8-sub-headline {
    width: 75%;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem 1rem;
    margin: 0 1rem;
    color: #666;
  }
  .sec8-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 1rem;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem;
  }
  .logo-in-footer,
  .brand {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .logo-in-footer *,
  .brand * {
    margin: 0.5rem 0;
  }

  .social-media-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }
  .services,
  .services-list {
    padding: 1rem 0;
  }
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
  }
  .services {
    padding: 1rem 1rem;
  }
  .industries {
    padding: 1rem 1rem;
  }
  .contact {
    padding: 1rem 1rem;
  }
  .contact h3 {
    margin-bottom: 1rem;
  }
  .info {
    padding: 1rem 0;
  }
  .info p {
    padding: 0.5rem 0;
    text-align: left;
  }
}

@media (min-width: 1206px) {
  .hamburger-btn {
    display: none;
  }
}
