/* === Import Grift Font Family === */

/* Grift Bold (700) */
@font-face {
  font-family: "Grift";
  font-style: normal;
  font-weight: 700;
  src: url("Web-TT/Grift-Bold.woff2") format("woff2"),
    /* */ url("Web-TT/Grift-Bold.woff") format("woff"),
    /* */ url("Web-TT/Grift-Bold.ttf") format("truetype"); /* */
}

/* Grift Bold Italic (700) */
@font-face {
  font-family: "Grift";
  font-style: italic;
  font-weight: 700;
  src: url("Web-TT/Grift-BoldItalic.ttf") format("truetype"); /* */
}

/* Grift Black (900) */
@font-face {
  font-family: "Grift";
  font-style: normal;
  font-weight: 900;
  src: url("Web-TT/Grift-Black.woff2") format("woff2"),
    /* */ url("Web-TT/Grift-Black.woff") format("woff"),
    /* */ url("Web-TT/Grift-Black.ttf") format("truetype"); /* */
}

/* Grift Black Italic (900) */
@font-face {
  font-family: "Grift";
  font-style: italic;
  font-weight: 900;
  src: url("Web-TT/Grift-BlackItalic.woff2") format("woff2"),
    /* */ url("Web-TT/Grift-BlackItalic.woff") format("woff"),
    /* */ url("Web-TT/Grift-BlackItalic.ttf") format("truetype"); /* */
}

/* === End Font Imports === */

body {
  background-color: #000;
  overflow-x: hidden; /* keep x hidden */
  overflow-y: auto;
}

/* Base styling for the amoeba gradients */
.amoeba-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

/* First gradient - Orange, with organic movement */
.amoeba-orange {
  width: 250px;
  height: 350px;
  background: radial-gradient(circle, #f29020, transparent);
  top: 6%;
  left: 9%;
  animation-delay: 0s;
}

/* Second gradient - Blue, with organic movement */
.amoeba-blue {
  width: 250px;
  height: 350px;
  background: radial-gradient(circle, #58a4ff, transparent);
  top: 50%;
  left: 80%;
  animation-delay: 5s;
}

.top-blue {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #124b90, transparent);
  top: 0%;
  animation-delay: 5s;
  right: 0%;
}

.top-orange {
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, #f2902083, transparent);
  top: 6%;
  animation-delay: 5s;
  right: -4%;
}
/* Keyframes for amoeba-like organic movement */
@keyframes amoebaMove {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 40% 60% 55% 45%;
  }
  25% {
    transform: translate(30px, -30px) scale(1.2);
    border-radius: 60% 40% 50% 70%;
  }
  50% {
    transform: translate(-40px, 20px) scale(1.1);
    border-radius: 55% 45% 65% 35%;
  }
  75% {
    transform: translate(20px, -20px) scale(1.3);
    border-radius: 50% 70% 40% 60%;
  }
  100% {
    transform: translate(-20px, 30px) scale(1);
    border-radius: 60% 50% 70% 40%;
  }
}

.cn-hero {
  height: 150vh;
  overflow: hidden;
}

#cn-hero-logo-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, var(--hero-shift-y, -50%));
  will-change: transform;
  z-index: -1;
}

/* do all scaling here */
.cn-hero-scale {
  transform: translateZ(0) scale(2);
  transform-origin: var(--pivot-x) var(--pivot-y);
  will-change: transform;
  backface-visibility: hidden;
}

/* 
@media (max-width: 420px) {
  :root {
    --pivot-x: 48.6%; 
  }
} */

/* size the logo safely */
.cn-hero-logo {
  width: clamp(140px, 34vw, 560px);
  display: block;
}

/* mobile vertical offset if you want the old look */
@media (max-width: 768px) {
  #cn-hero-logo-wrap {
    --hero-shift-y: -10%;
  }
  .cn-hero-scale {
    transform: translateZ(0) scale(1);
  }
}

.cn-hero-top {
  color: whitesmoke;
  font-size: 30px;
  left: 22%;
  position: absolute;
  top: 22%;
  z-index: -10;
}

.cn-hero-bottom {
  color: whitesmoke;
  font-size: 20px;
  position: absolute;
  top: 57%;
  left: 53%;
  z-index: -20;
}

.cn-reveal {
  width: 100%;
  margin-bottom: 100px;
}
.cn-reveal-text {
  padding: clamp(24px, 10vw, 100px);
}
.cn-reveal-lines {
  max-width: 1500px;
  margin: 0 auto;
  line-height: 1.2;
}
.cn-reveal-line {
  display: block;
  font-weight: 700;
  font-size: clamp(28px, 10vw, 70px);
  margin-left: clamp(0px, 5vw, 50px);
  background: linear-gradient(
    to right,
    rgb(255, 255, 255) 50%,
    rgb(37, 37, 37) 50%
  );
  background-size: 200% 100%;
  background-position-x: 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.cn-reveal-line + .cn-reveal-line {
  margin-top: 0.15em;
}
.cn-reveal-gap {
  margin-top: 0.6em;
} /* extra space between sentences */

@media (max-width: 768px) {
  .cn-reveal-line {
    margin-left: 0;
  }
}

/* show desktop by default */
.reveal-mobile {
  display: none;
}

/* mobile layout */
@media (max-width: 768px) {
  .reveal-desktop {
    display: none;
  }
  .reveal-mobile {
    display: block;
  }

  /* smaller type for mobile lines */
  .reveal-mobile .cn-reveal-line {
    font-size: clamp(18px, 12vw, 40px);
    margin-left: 0;
  }

  .reveal-mobile .cn-reveal-gap {
    margin-top: 0.35em;
  }
}

.horizontal-container {
  margin: auto;
  display: flex;
  justify-content: center;
}

#horizontal {
  min-height: 70vh;
  align-items: center;
  padding: 50px 0;
  overflow-x: hidden;
  overflow-y: hidden;
  /* Hide overflow on the outer container */
  transition: opacity 0.5s ease; /* Smooth transition for opacity */
  pointer-events: auto;
}

.horizontal__content {
  display: flex;
  gap: 80px;
  /* Space between cards */
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and old Edge */
  scrollbar-width: none; /* Firefox */
  /* Enable horizontal scrolling */
  padding-bottom: 20px;
  /* Avoid scrollbar overlap */
  width: max-content;
  /* Ensures content width based on children */
  padding-left: 150px;
  align-items: center;
}

.horizontal__content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.horizontal__item {
  width: 350px;
  /* Fixed width for each card */
  height: 400px;
  /* Fixed height for each card */
  flex-shrink: 0;
  /* Prevent cards from shrinking */
  display: flex;
  color: #fff;
  border-radius: 10px;
  align-items: center;
  cursor: none;
}

@media (min-width: 1440px) {
  #horizontal {
    padding: 100px 0; /* Example width */
  }
  .horizontal__item {
    width: 400px;
    /* Fixed width for each card */
    height: 500px;
  }
}

.card_1 {
  display: flex;
  align-items: center;
}

.horizontal_txt {
  font-size: 70px;
  margin: 10px;
}

.highlight {
  color: #f29120;
  /* Apply the specific color to 'Nerds' */
}

.card_2 {
  background: url("/assets/card1.jpg");
  background-size: cover;
  align-items: end;
}

.card_3 {
  background: url("/assets/card3.jpg");
  background-size: cover;
  align-items: end;
}

.card_4 {
  background: url("/assets/card4.jpg");
  background-size: cover;
  align-items: end;
}

.card_5 {
  background: url("/assets/card5.jpg");
  background-size: cover;
  align-items: end;
}

.card_txt {
  padding: 14px 30px;
  font-size: 25px;
  color: #000;
  background: rgba(255, 255, 255, 0.3);
  /* Glossy background effect */
  backdrop-filter: blur(10px);
  /* Adds a blur effect for more gloss */
  border-radius: 15px;
  /* Rounded corners */
  margin: 20px;
  /* Space from edges of the card */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  /* Subtle shadow for depth */
}

.horizontal__num {
  font-size: 3rem;
  /* Adjust size based on your design */
  font-weight: 900;
  font-stretch: condensed;
  color: #ff98a2;
}
.custom-cursor {
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transform: translate(-50%, -50%);
}

.cursor-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #124b90, #577ae2);
}

.cursor-text {
  position: relative;
  z-index: 1;
}

.slider {
  display: flex;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 2.5rem;
}

.item {
  animation: animate 30s linear infinite;
}

.slider:hover .item {
  animation-play-state: paused;
}

@keyframes animate {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-1800px, 0, 0);
  }
}

.slider-container {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 300px;
}

.slider-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.blue-text {
  color: #124b90;
}

.orange-text {
  color: #f29120;
}

.cn-relative {
  position: relative;
}

.cn-overflow-hidden {
  overflow: hidden;
}

.cn-diagonal-sticky {
  position: sticky;
  display: flex;
  align-items: top;
  justify-content: top;
}

/* .top-0 {
  top: 0;
} */

/* .h-screen {
  height: 100vh;
} */

.d-card {
  position: absolute;
  width: 15rem;
  height: 16rem;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

@media (min-width: 1440px) {
  .d-card {
    width: 19rem;
    height: 25rem;
  }
  .card-text {
    font-size: 3rem;
  }
}

.card-number {
  font-size: 3rem;
  font-weight: bold;
  color: #124b90;
  /* Pink */
}

.card-text {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffffa3;
}

.text-container {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.small-text {
  font-size: 2rem;
  /* Smaller text for "WHAT WE DO?" */
  color: #fff;
  display: block;
}

.main-text {
  font-size: 2rem;
  /* Main text size */
  color: #fff;
}

.highlight {
  color: orange;
  /* Orange color for "new challenges" */
  font-weight: bold;
}

.a-section {
  margin: 100px 0;
}

/* The container that creates the "window" */
.a-section-marquee-box {
  display: flex; /* Use flex to align the track */
  overflow: hidden;
  height: clamp(60px, 15vw, 120px);
}

/* The moving track */
.a-section-marquee-track {
  display: flex;
  flex-shrink: 0; /* CRITICAL: Prevents the track from shrinking */
  animation: a-marquee 30s linear infinite;
  will-change: transform;
  pointer-events: none;
}

/* The individual text blocks */
.marquee-item {
  flex-shrink: 0; /* CRITICAL: Prevents text blocks from shrinking */
  white-space: nowrap;
  padding: 0 1.1rem; /* Adds space between the repeating text */

  /* Font styles */
  font-weight: 100;
  font-size: clamp(20px, 10vw, 90px);
  color: #fff;
  text-transform: uppercase;
}

/* The animation math now works perfectly */
@keyframes a-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.accolades-section {
  padding: 50px 0;
}

.accolades-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

.accolades-section h1 {
  color: #fff;
  text-align: center;
  font-size: 2rem;
}

.accolades-section h1 span {
  color: #124b90;
}

.accolades-card {
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(242, 136, 32, 0.3),
    0 13px 30px -5px rgba(242, 119, 32, -1.7),
    0 -13px 25px -5px rgba(242, 141, 22, 0.218);
  padding: 40px;
  text-align: center;
  max-width: 450px;
  margin: 10px;
  transition: all 0.3s ease;
  display: flex;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0);
}

.accolades-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #124b90, #2195f38d, #64b4f675);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.accolades-card:hover {
  transform: scale(1.05);
  border-color: transparent;
}

.accolades-card:hover::before {
  opacity: 0.9;
}

.accolades-img {
  position: relative;
  z-index: 2;
}

.accolades-img img {
  width: 100%;
  height: auto;
  max-width: 150px;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.accolades-card:hover .accolades-img img {
  filter: brightness(0) invert(1);
}

.accolades-text {
  margin-top: 15px;
  position: relative;
  z-index: 2;
}

.accolades-text p {
  font-size: 14px;
  color: #fff;
  transition: color 0.3s ease;
}

.accolades-text h2 {
  color: #fff;
  transition: color 0.3s ease;
}

.accolades-card:hover .accolades-text p,
.accolades-card:hover .accolades-text h2 {
  color: white;
}
.testimonials-section {
  color: #fff;
  padding: 4rem 2rem;
  margin: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.section-title span {
  color: #124b90;
}

.testimonials-container {
  max-width: 100vw;
  margin: 0 0;
  overflow: hidden;
  position: relative;
  padding: 3rem 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 350px;
  min-height: 400px; /* Set minimum height for consistency */
  margin: 0 1rem;
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: animate 50s linear infinite;

  /* Make card a flex container for better organization */
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .testimonials-track {
    margin: 0 2rem;
  }
}

.company-logo-parent {
  height: 80px; /* Fixed height for logo container */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.company-logo {
  max-width: 120px;
  max-height: 60px; /* Control logo height */
  width: auto;
  height: auto;
  object-fit: contain; /* Maintain aspect ratio */
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial-meta {
  flex-grow: 1;
}

.author-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stars {
  color: #f29120;
  font-size: 0.9rem; /* Reduced font size for better fit */
  line-height: 1.4;
}

.testimonial-text {
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: auto; /* Push text to bottom if card has extra space */
  font-size: 0.95rem;

  /* Add text ellipsis for very long content */
  display: -webkit-box;
  --webkit-line-clamp: 6; /* Show maximum 6 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-text a {
  text-decoration: none;
  font-weight: bold;
  color: #a0a0a0;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 1rem;
  }
  .testimonial-card {
    max-width: 100%;
    min-height: 350px; /* Slightly shorter on mobile */
    padding: 1rem;
  }

  .company-logo-parent {
    height: 60px; /* Smaller logo area on mobile */
  }

  .company-logo {
    max-height: 50px;
  }

  .testimonial-text {
    --webkit-line-clamp: 5; /* Show less lines on mobile */
    font-size: 13px;
  }
  .card-text {
    font-size: 2.5rem;
  }
}

.contact-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* Adjust the spacing between text and button */
  justify-content: space-around;
  padding: 20px 10px;
  margin: 150px 0;
  border-radius: 500px;
}

/* Text Content Styling */
.contact-text-content h2 {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 0;
  color: #fff;
}

.contact-text-content p {
  color: #fff;
  margin-top: 1rem;
  max-width: 90vh;
  line-height: 1.6;
  font-size: 1.3rem;
}
/* Contact Button Styling */
.contact-button {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(242, 145, 32, 0.5),
    0 13px 30px -5px rgba(242, 145, 32, 0.3),
    0 -13px 25px -5px rgba(242, 144, 32, 0.218);
}

.contact-button span {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  transition: transform 0.5s ease;
}

.contact-button .arrow {
  margin-top: 0.3rem;
  font-size: 1.2rem;
  transition: transform 0.5s ease;
}

/* Hover effect for arrow */
.contact-button:hover .arrow {
  animation: slideArrow 1s ease;
}

/* Border drawing animation */
.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #f29120;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1s ease;
}

.contact-button:hover::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@keyframes slideArrow {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(50px);
    opacity: 0;
  }
  51% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.cn-footer {
  height: 90vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#services {
  background-image: url("/assets/Cult.svg");
  position: relative; /* Make sure the section is positioned relatively for absolute children */
}

.content {
  position: absolute;
  bottom: 40px; /* Adjust to your preference */
  left: 20px; /* Adjust to your preference */
  right: 20px; /* Adjust to your preference */
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Align items at the bottom */
  color: white; /* Change to your preferred color */
}

.socials {
  display: flex;
  gap: 15px; /* Space between social links */
}

.social-link {
  color: white; /* Change to your preferred color */
  font-size: 1.5rem; /* Adjust icon size */
  transition: transform 0.3s ease; /* Smooth scaling on hover */
}

.social-link:hover {
  transform: scale(1.2); /* Scale icon on hover for a nice effect */
}

/* Optionally, you can add some padding for larger clickable areas */
.social-link {
  padding: 10px;
}

.policies {
  display: flex;
  gap: 20px; /* Space between policy links */
  margin-right: 20px; /* Ensure there's a margin on the right */
}

@media (min-width: 1024px) {
  .policies {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

.policies a {
  text-decoration: none;
  color: #fff;
}

.copyright {
  position: absolute;
  bottom: 25vh; /* Adjust based on spacing preferences */
  left: 50%;
  transform: translateX(-50%); /* Center the copyright text */
  color: white; /* Change to your preferred color */
  font-size: 18px; /* Adjust font size as needed */
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  #cn-hero-logo-wrap {
    display: block;
    color: #000;
    text-align: center;
    position: fixed;
    top: 50%; /* Center vertically */
    left: 30%; /* Center horizontally */
    transform-origin: 49.55% 48%; /* Use center for scaling origin */
  }

  .cn-hero-top {
    color: whitesmoke;
    font-size: 26px;
    left: 9%;
    position: absolute;
    top: 38%;
  }

  .cn-hero-bottom {
    color: whitesmoke;
    font-size: 18px;
    position: absolute;
    top: 57%;
    left: 36%;
  }

  .cn-hero-logo {
    width: 25%;
    z-index: -1;
  }

  .cn-hero {
    height: 200vh;
    overflow: hidden;
    justify-content: center;
    align-items: center;
  }

  #horizontal {
    padding: 0 !important;
  }

  .horizontal__content {
    padding-left: 50px; /* Reduce padding for tablets */
    gap: 40px; /* Reduce gap between cards */
  }

  .horizontal__item {
    width: 300px; /* Smaller width for tablet devices */
    height: 400px; /* Smaller height for tablet devices */
  }

  .horizontal_txt {
    font-size: 60px; /* Smaller text size for tablet devices */
  }

  .card_txt {
    font-size: 20px; /* Smaller text for card */
  }

  .horizontal__num {
    font-size: 2.5rem; /* Adjust size for tablet */
  }

  .slider {
    padding: 1.5rem;
  }

  .item img {
    max-width: 120px;
    height: 50px;
    padding: 0 20px;
  }

  .slider-title {
    font-size: 2.5rem;
  }

  @keyframes animate {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(-1400px, 0, 0);
    }
  }

  .contact-section {
    flex-direction: column;
    text-align: center;
  }

  .cn-footer {
    background-size: contain;
  }

  .content {
    flex-direction: row;
    align-items: center;
    text-align: center;
    bottom: 8%;
  }

  .socials {
    gap: 10px;
  }

  .social-link {
    font-size: 1.4rem;
    padding: 8px;
  }

  .policies {
    margin-top: 15px;
    gap: 15px;
  }

  .policies a {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.75rem;
    bottom: 5px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #cn-hero-logo-wrap {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -10%) scale(10);
    transform-origin: 48.5% 44%;
    text-align: center;
    z-index: -1;
    will-change: transform;
  }

  /* Logo sizing uses clamp for responsive control */
  .cn-hero-logo {
    width: var(--logo-size, 320px);
    height: auto;
  }

  .cn-hero {
    height: 110vh;
    overflow: hidden;
    justify-content: center;
    align-items: center;
  }

  .horizontal__content {
    padding-left: 20px; /* Further reduce padding for mobile */
    gap: 20px; /* Further reduce gap between cards */
  }

  .horizontal__item {
    width: 250px; /* Smaller width for mobile devices */
    height: 350px; /* Smaller height for mobile devices */
  }

  .horizontal_txt {
    font-size: 50px; /* Smaller text size for mobile devices */
  }

  .card_txt {
    font-size: 18px; /* Smaller text for card */
  }

  .horizontal__num {
    font-size: 2rem; /* Adjust size for mobile */
  }

  .slider {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two items per row */
    gap: 1rem;
  }

  .item {
    animation: none; /* Disable animation on mobile */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .item img {
    max-width: 100px;
    height: 40px;
    padding: 0;
  }

  .slider-title {
    font-size: 2.5rem;
  }

  .marquee-text {
    font-size: 4em; /* Adjust font size for smaller screens */
    padding: 0 2px; /* Reduce padding on mobile */
  }

  .contact-section {
    flex-direction: column; /* Stack items vertically on smaller screens */
    align-items: center; /* Center items */
    text-align: center; /* Center text for better alignment */
  }

  .contact-text-content h2 {
    font-size: 2.5rem; /* Reduced font size for mobile */
  }

  .contact-text-content p {
    font-size: 1rem; /* Reduced font size for mobile */
  }

  .contact-button {
    width: 120px; /* Adjust button size for mobile */
    height: 120px;
  }
  .cn-footer {
    height: 80vh;
    background-size: contain;
  }

  .content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0px;
  }

  .socials {
    position: ABSOLUTE;
    bottom: 30px;
    left: -25px;
    gap: 3px;
  }

  .social-link {
    font-size: 1.2rem;
    padding: 6px;
  }

  .policies {
    position: absolute;
    bottom: 40px;
    right: 15px;
    gap: 6px;
    display: flex;
  }

  .policies a {
    font-size: 0.85rem;
  }

  .copyright {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    text-align: center;
    padding: 0 10px;
    width: 300px;
  }
}

@media (max-width: 480px) {
  .horizontal__content {
    flex-direction: column; /* Stack items vertically on small screens */
    padding-left: 0; /* Remove left padding */
    align-items: center; /* Center items */
  }

  .horizontal__item {
    width: 90%; /* Make the item width responsive */
    height: 300px; /* Adjust height for content */
  }

  .card_1 {
    width: 90%; /* Make the item width responsive */
    height: 100px; /* Adjust height for content */
  }

  .horizontal_txt {
    font-size: 40px;
    margin-top: 30px;
  }

  .card_txt {
    font-size: 16px; /* Smaller text for card */
  }

  .horizontal__num {
    font-size: 1.5rem; /* Adjust size for small mobile */
  }
  .slider {
    padding: 0.5rem;
    grid-template-columns: repeat(3, 1fr); /* Two items per row */
    gap: 2.5rem;
  }

  .item img {
    max-width: 80px;
    height: 30px;
  }

  .slider-title {
    font-size: 2.5rem;
  }
  .cn-diagonal-sticky {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    transform: translate(-165px, 10px);
  }

  .d-card {
    position: absolute;
    width: 18rem;
    height: 22rem;
    background-color: rgb(27 53 102);
    box-shadow: 0 10px 15px rgb(0 0 0);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .a-section-marquee-wrapper {
    display: flex;
    animation: a-text-scroll 5s linear infinite;
    margin-top: 0px;
    /* No padding needed anymore */
  }

  .marquee-text {
    font-size: 2.5em; /* Further reduce font size for very small screens */
    padding: 0 1px; /* Minimal padding on very small screens */
  }

  .contact-text-content h2 {
    font-size: 2rem; /* Further reduce font size for very small screens */
  }

  .contact-text-content p {
    font-size: 0.9rem; /* Further reduce font size for very small screens */
  }

  .contact-button {
    width: 100px; /* Further adjust button size */
    height: 100px;
  }
}

:root {
  --hero-gap: clamp(60px, 10vw, 180px);
}

.cn-hero-top,
.cn-hero-bottom {
  position: fixed !important;
  left: 50vw !important;
  transform: translateX(-75%) !important;
  margin: 0 !important;
  text-align: center !important;
  z-index: 0 !important;
}

.cn-hero-top {
  top: calc(55vh - var(--hero-gap)) !important;
  font-size: clamp(20px, 2.2vw, 30px) !important;
}

.cn-hero-bottom {
  top: calc(50vh + var(--hero-gap)) !important;
  font-size: clamp(12px, 1.8vw, 20px) !important;
  max-width: min(90vw, 800px) !important;
}

/* Hold to pause */
.testimonials-container.is-hold .testimonial-card {
  animation-play-state: paused;
  cursor: grabbing;
}
.testimonials-container.is-hold {
  user-select: none;
}

html {
  overflow-anchor: none;
}

#diagonalcontainer {
  height: auto;
}
.diag-pin {
  min-height: 120vh;
  position: relative;
}

@media (max-width: 768px) {
  .diag-pin {
    min-height: 100vh;
  }
  /* let the section grow with its content */
  #services.cn-footer {
    height: auto;
    min-height: 35vh;
    background-image: none;
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    padding: 40px 16px 0px;
  }

  /* take content out of absolute positioning */
  #services .content {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
  }

  /* normal flow for socials and policies */
  #services .socials {
    position: static;
    gap: 12px;
  }
  #services .social-link {
    font-size: 1.2rem;
    padding: 6px;
  }

  #services .policies {
    position: static;
    margin: 8px 0 0;
    gap: 12px;
  }
  #services .policies a {
    font-size: 0.9rem;
  }

  /* copyright at the end of the section */
  #services .copyright {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 24px;
    width: 100%;
    font-size: 0.9rem;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .amoeba-gradient {
    filter: blur(30px);
  }
  .cn-footer {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  #horizontal {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none;
  }
  .custom-cursor {
    display: none;
  }
}

@media (max-width: 768px) {
  .d-card {
    backdrop-filter: none;
  }
  .card_txt {
    backdrop-filter: none;
  }
  #horizontal {
    will-change: auto;
  }
}

@media (max-width: 768px) {
  .amoeba-gradient {
    display: none !important;
  }
}

/* clients row becomes one moving track */
.slider {
  overflow: hidden;
  padding: 2.5rem;
}
.slider .item {
  flex: 0 0 auto;
  animation: none;
  display: flex;
  align-items: center;
  height: 60px;
  margin-right: 30px;
}

.slider .item > a {
  display: block;
  width: 160px; /* logo box width */
  height: 60px; /* same as row */
}

.slider .item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep aspect, no crop */
  padding: 0; /* move spacing to .item */
  max-width: none;
}
.slider-track {
  display: flex;
  gap: 0;
  will-change: transform;
}

/* testimonials track moves as one */
.testimonials-track {
  display: flex;
  will-change: transform;
  transition: none;
}
.testimonial-card {
  animation: none;
  position: relative;
  overflow: hidden;

  /* You can add a default transition for a smoother mouse-leave animation */
  transition: box-shadow 0.5s ease-out;
}

.glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Hidden by default */
  pointer-events: none; /* Make sure it doesn't interfere with mouse events */
}

/* mobile spacing comes from item margin, not flex gap */
@media (max-width: 768px) {
  .slider {
    overflow: hidden;
    padding: 2.5rem;
  }
  .slider-track {
    display: flex;
    gap: 0;
    will-change: transform;
  }
  .slider .item {
    flex: 0 0 auto;
    margin-right: 30px;
    animation: none;
    height: 40px;
  }
  .slider .item > a {
    width: 120px;
    height: 40px;
  }
  .slider .item[data-break] {
    margin-right: 0;
  } /* no double gap at the seam */
  .slider-container {
    margin-bottom: 100px;
  }

  .testimonials-container {
    position: relative;
  }

  .testimonials-track {
    display: flex;
    transition: transform 0.3s ease;
    animation: none !important; /* Disable auto-scroll on mobile */
  }

  .testimonial-card {
    flex: 0 0 100%;
    margin-right: 0;
    animation: none !important;
  }

  .slider-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #124b90;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }

  .arrow-btn:hover {
    background: #f29120;
  }

  .arrow-btn:disabled {
    background: #333;
    opacity: 0.5;
    cursor: not-allowed;
  }
  .small-text,
  .slider-title,
  .section-title {
    text-transform: uppercase;
    font-size: 1.5rem;
  }
  .main-text {
    font-size: 1.5rem;
  }
}

@media (min-width: 1440px) {
  .small-text,
  .slider-title,
  .section-title {
    text-transform: uppercase;
    font-size: 2.5rem;
  }
  .main-text {
    font-size: 2.5rem;
  }
}

/* Hide arrows on desktop */
@media (min-width: 769px) {
  .slider-arrows {
    display: none;
  }
  #horizontal {
    display: flex;
  }
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* === 1. Use Grift for Headings & Bold Text === */
/* This rule targets headings and other large text elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
.cn-hero-top,
.cn-hero-bottom,
.cn-reveal-line,
.horizontal_txt,
.card-text,
.slider-title,
.small-text,
.main-text,
.accolades-section h1,
.section-title,
.author-name,
.contact-text-content h2,
.cn-brand strong {
  font-family: "Grift", "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700; /* This will use Grift Bold */
}

@media (max-width: 768px) {
  .testimonials-container {
    overflow: hidden;
    padding: 0;
  }
  .testimonials-track {
    gap: 0;
    will-change: transform;
  }
  .testimonial-card {
    margin: 0;
    flex: 0 0 100%;
    max-width: 100%;
    transform: translate(-15px);
  }
  .testimonial-card img {
    max-width: 100%;
    height: auto;
  }
}

.cn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: saturate(120%) blur(2px);
  opacity: 0;
  pointer-events: none;
}

.cn-menu {
  position: fixed;
  left: 50%;
  bottom: 50px;
  transform: translate(-50%, 40px);
  width: min(92vw, var(--card-w));
  background: #171717;
  color: #f1f1f1;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  max-width: 50vw;
  width: 100%;
  padding: 20px;
}

.cn-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 14px 22px;
}
.cn-brand {
  display: grid;
  gap: 2px;
}
.cn-brand strong {
  font-size: 28px;
  letter-spacing: 0.4px;
}
.cn-brand span {
  opacity: 0.7;
}

.cn-lets-talk {
  text-align: center;
}

.cn-lets-talk:hover {
  cursor: pointer;
}

.cn-logo-gif {
  width: 120px;
}

.cn-list {
  display: grid;
  grid-auto-rows: 16vh;
}

.cn-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 50px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cn-thumb {
  width: 120px;
  height: 90px;
  border-radius: 10px;
  background: #2a2a2a;
  overflow: hidden;
  display: block;
}

.cn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cn-title-link {
  color: inherit;
  text-decoration: none;
  font-size: 22px;
}

.cn-chip {
  appearance: none;
  border: 0;
  background: #f1f1f1;
  color: #111;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.cn-cta a {
  color: #111;
  background: #f1f1f1;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.cn-aside {
  position: fixed;
  right: 28px;
  top: 28px;
  text-align: right;
  color: #333;
}
.cn-aside small {
  display: block;
  opacity: 0.7;
}

/* bottom bar */
.cn-bottombar {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 40vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 40px;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  will-change: transform, opacity;
  border: 1px solid;
  transform: none;
  display: flex;
  justify-content: space-between;
}

.cn-bottombar-containers {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cn-bb-text {
  font-size: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* chip */
.cn-bb-chip {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 600;
}
.cn-bb-chip-text {
  font-size: 18px;
  line-height: 1;
}
.cn-bb-plus {
  position: relative;
  width: 18px;
  height: 18px;
}
.cn-bb-plus i {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
}
.cn-bb-plus i.cn-v {
  transform: translateY(-50%) rotate(90deg);
}

:root {
  --bb-row-h: 28px;
} /* change this to tune height */

.cn-bb-icon-container,
.cn-bb-text-container {
  height: var(--bb-row-h);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-bb-icon-container {
  width: 22px;
  flex-shrink: 0;
  font-size: 16px;
}
.cn-bb-text-container {
  margin-left: 14px;
  flex: 1;
  white-space: nowrap;
}

.cn-bb-icons,
.cn-bb-texts {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.cn-bb-icon,
.cn-bb-text {
  height: var(--bb-row-h);
  line-height: var(--bb-row-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* optional nudge down a bit */
:root {
  --bb-nudge: 0px;
}
.cn-bb-icons .cn-bb-icon,
.cn-bb-texts .cn-bb-text {
  transform: translateY(var(--bb-nudge));
}

/* mobile tweak */
@media (max-width: 460px) {
  :root {
    --bb-row-h: 24px;
  }
  .cn-bb-icon-container {
    width: 20px;
  }
  .cn-bb-text {
    font-size: 14px;
  }
  .cn-bb-chip-text {
    font-size: 14px;
  }
  .cn-bottombar {
    max-width: 85vw;
    gap: 0;
  }
  .cn-menu {
    max-width: 90vw;
  }
}

/* top align rollers so row 1 sits at the top of the window */
.cn-bb-icon-container,
.cn-bb-text-container {
  display: flex;
  align-items: flex-start; /* was center */
  justify-content: center;
}

/* --- Morphing Video Section --- */
#cn-morph-video {
  height: 100vh; /* Set height to one viewport */
  min-height: 700px; /* Ensure it has enough room on short screens */
  position: relative;
  display: flex; /* This will help center the grid content */
  align-items: center;
  justify-content: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

.cn-morph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  padding: 0 5vw;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.cn-morph-svg-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-morph {
  width: 100%;
  height: 100%;
  max-height: 70vh;
}

.cn-morph-text h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.cn-morph-text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #a0a0a0;
  line-height: 1.6;
  max-width: 45ch; /* Limits line length for readability */
}

/* Responsive styles for the morphing section */
@media (max-width: 768px) {
  #cn-morph-video {
    height: auto; /* Let content define height */
    margin-bottom: 50px;
  }
  .cn-morph-sticky-container {
    position: static; /* Disable sticky pinning */
    height: auto;
  }
  .cn-morph-grid {
    grid-template-columns: 1fr; /* Stack items vertically */
    padding: 5vh 5vw;
  }
  .hero-morph {
    max-height: 50vh;
    margin-bottom: 5vh;
  }
  .cn-morph-text {
    text-align: center;
  }
  .cn-morph-text p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Mobile Video Styles for Morph Section --- */

/* Hide the simple video on desktop by default */
.cn-morph-video-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the complex SVG animation wrapper on mobile */
  .cn-morph-svg-wrapper {
    display: none;
  }

  /* Show and style the simple video container on mobile */
  .cn-morph-video-mobile {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px; /* Center it and add space below the video */
    border-radius: 16px;
    overflow: hidden;
  }

  .cn-morph-video-mobile video {
    width: 100%;
    display: block;
  }
}

.cn-hero-scale {
  transform-origin: var(--pivot-x) var(--pivot-y);
}
.cn-hero-logo {
  width: 1000px;
  height: auto;
  display: block;
  transform-box: fill-box;
  transform-origin: var(--pivot-x, 50%) var(--pivot-y, 50%);
  transform: scale(var(--hero-scale, 1));
}

@media (max-width: 780px) {
  .cn-hero-logo {
    width: 35px;
  }
  .cn-hero-top {
    top: calc(50vh - var(--hero-gap)) !important;
    transform: translate(-50%) !important;
  }
}

#journey-morph-section {
  height: 280vh; /* Taller for a longer, more complex animation */
  position: relative;
}

/* mobile */
@media (max-width: 768px) {
  #journey-morph-section {
    height: auto;
  }
}

/* desktop */
@media (min-width: 1440px) {
  #journey-morph-section {
    height: 250vh; /* adjust if you need */
  }
}
@media (min-width: 1840px) {
  #journey-morph-section {
    height: 220vh; /* adjust if you need */
  }
}

/* The "stage" that gets pinned */
.journey-pin-container {
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  /* Initial 2-column layout */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* The video container, placed in the first column */
.journey-morph-wrapper {
  position: absolute;
  /* Initial state: positioned on the left side */
  left: 5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 50vw; /* Initial width */
  height: 55vh; /* Initial height */
}

.journey-hero-morph {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* The text, placed in the second column */
.journey-intro-text {
  grid-column: 2 / 3;
  padding: 5vw;
  color: white;
}

/* mobile stack */
@media (max-width: 768px) {
  #journey-morph-section {
    height: auto;
  }

  .journey-pin-container {
    position: relative;
    height: auto !important;
    display: grid;
    grid-template-columns: 1fr;
    padding: 4vw 5vw;
    overflow: visible;
  }

  /* let the SVG sit in flow */
  .journey-morph-wrapper {
    display: none;
  }
  .journey-video-mobile {
    display: block !important;
    margin-bottom: 30px;
  }

  .journey-hero-morph {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
  }

  .journey-intro-text {
    grid-column: 1 / -1;
    padding-left: 0;
    margin-top: 4vw;
    color: white;
    text-align: center;
  }
}

/* --- NEW CSS FOR SAFARI MASK FALLBACK --- */

/* This will be the container for our video and its mask */
.video-mask-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: none; /* Hidden by default, JS will show it for Safari */
  border-radius: 50px;
}

/* The video to be masked */
.video-mask-wrapper .masked-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: contain;
  /* The magic happens here: we apply the SVG mask */
  -webkit-mask-image: url(#hero-svg-mask);
  mask-image: url(#hero-svg-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  border-radius: 50px;
}

/* Specific mask for the journey section */
#journey-morph-section .video-mask-wrapper .masked-video {
  -webkit-mask-image: url(#journey-svg-mask);
  mask-image: url(#journey-svg-mask);
}

/* Hide the original SVG wrapper in Safari */
.safari-browser .cn-morph-svg-wrapper,
.safari-browser .journey-morph-wrapper {
  display: none;
}
/* Show the new mask wrapper in Safari */
.safari-browser .video-mask-wrapper {
  display: block;
}

/* --- FINAL SAFARI FALLBACK CSS --- */

/* This hides the original SVG elements only in Safari */
.safari-browser .cn-morph-svg-wrapper,
.safari-browser .journey-morph-wrapper {
  display: none !important;
}

/* Container for the stencil effect */
.safari-fallback-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* The video sits at the back */
.safari-fallback-wrapper .fallback-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The SVG overlay sits on top, creating the mask effect */
.safari-fallback-wrapper .stencil-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* The color of the overlay should match your page background */
  fill: #000000;
  fill-rule: evenodd;
}
/* Ensure the section itself has no horizontal padding */
#journey-morph-section {
  padding: 0;
  overflow: hidden; /* Prevents scrollbars during animation */
}

/* This is the key fix */
.journey-pin-container {
  position: relative;
  width: 100%; /* Make the container span the full width */
  height: 100vh;
  margin: 0; /* Remove any horizontal margin */
  padding: 0; /* Remove any horizontal padding */
}

#journey-morph-section .video-mask-wrapper {
  will-change: transform, width, height, left, top;
}
