/* -------------------- Font Face -------------------- */
@font-face {
  font-family: 'TWK Lausanne';
  src: url('TWKLausanne-Regular.woff') format('woff'),
    url('TWKLausanne-Regular.woff2') format('woff2');
  font-display: block;
}

/* -------------------- Global Styles -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'TWK Lausanne', sans-serif;
  background-color: #141414;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------------------- Variables -------------------- */
:root {
  /* -------------------- Typography System -------------------- */

  /* Hero Heading (H1) */
  --fs-h1: clamp(3rem, 12vw, 12.5rem);
  --lh-h1: clamp(3rem, 12vw, 12.5rem);
  --ls-h1: clamp(-0.05em, -0.5vw, -0.6em);

  /* Section Heading (H2) */
  --fs-h2: clamp(1.75rem, 6vw, 2.5rem);
  --lh-h2: clamp(2.2rem, 6vw, 2.8rem);
  --ls-h2: clamp(-0.01em, -0.25vw, -0.05em);

  /* Section Heading (H3) */
  --fs-h3: clamp(2.2rem, 6vw, 5.25rem);
  --lh-h3: clamp(2.25rem, 6vw, 5.25rem);
  --ls-h3: clamp(-0.01em, -0.25vw, -0.05em);

  /* Card/Block Title (H4) */
  --fs-h4: clamp(1.25rem, 4vw, 1.5rem);
  --lh-h4: clamp(1.25rem, 4vw, 1.5rem);
  --ls-h4: clamp(-0.005em, -0.15vw, -0.02em);

  /* Body Text */
  --fs-body: clamp(1.2rem, 2.5vw, 1.4rem);
  --lh-body: clamp(1.5rem, 2.5vw, 1.6rem);
  --ls-body: clamp(0em, -0.05vw, -0.01em);

  /* Small / Nav / Footer Text */
  --fs-small: clamp(0.75rem, 2vw, 0.875rem);
  --lh-small: clamp(0.75rem, 2vw, 1.3rem);
  --ls-small: clamp(0em, -0.02vw, -0.01em);

  /* Spacing */
  --space-xs: clamp(0.5rem, 1vw, 0.5rem);
  --space-sm: clamp(0.75rem, 2vw, 1rem);
  --space-md: clamp(1rem, 3vw, 2rem);
  --space-lg: clamp(1rem, 6vw, 4rem);
  --space-xl: clamp(5rem, 8vw, 7rem);

  /* Icon sizes */
  --icon-sm: 1rem;
  --icon-lg: 5rem;
}

/* -------------------- CTA Styles -------------------- */
.cta-icon-7 {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: #666;
  transition: color 0.3s ease;
}

.cta-icon-7 .right-arrow-9 {
  width: var(--icon-sm);
  height: var(--icon-sm);
  stroke: #666;
  stroke-width: 2px;
  transition: stroke 0.3s ease;
}

.cta-icon-7:hover {
  color: #f47b20;
}

.cta-icon-7:hover .right-arrow-9 {
  stroke: #f47b20;
}

/* -------------------- Header -------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #141414;
  padding: 0.8rem 2rem;
  display: flex;
  max-width: 100%;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.logo {
  font-size: clamp(1.3rem, 1vw, 1.5rem);;
  letter-spacing: -1px;
  line-height: 28px;
  font-weight: 300;
  color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}

/* Menu button styles */
.menu-btn {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease-in-out;
}

.menu-btn span {
  width: 30px;
  height: 2px;
  border-radius: 50px;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

/* Styles for the menu icon when active */
.menu-btn.active .top-bar {
  width: 30px;
  transform: translate(5px, 8px);
}

.menu-btn.active .bottom-bar {
  width: 30px;
  transform: translate(0px, -8px);
}

/* Navigation menu container */
nav {
  position: absolute;
  top: 0;
  left: 2rem;
  right: 6rem;
  /* Stretches the nav to the full width, accounting for padding and icon */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(100vw);
  transition: transform 0.3s ease;
}

nav a {
  color: #808080;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

nav a:hover {
  color: #f47b20;
}

/* Active state: nav items slide in, pushing the logo out */
header.active .logo {
  transform: translateX(-100vw);
  opacity: 0;
}

header.active nav {
  transform: translateX(0);
}

/* -------------------- Hero -------------------- */
#hero-text h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-h1);
  font-weight: 400;
  line-height: var(--lh-h1);
  min-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.spacial {
  color: #f47b20;
  text-shadow: 0 0 5px #f47b20, 0 0 10px #f47b20;
}

#hero-video {
  display: flex;
  justify-content: center;
  padding: 0 var(--space-md);
}

#hero-section video {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  border-radius: 12px;
  filter: contrast(1.2);
  filter: grayscale(100);
}

/* -------------------- Intro -------------------- */
#intro-section {
  display: flex;
  flex-direction: column;
  min-height: 90vh;
  text-align: center;
  justify-content: center;
  margin-top: var(--space-lg);
  padding: 0 var(--space-xl);
}

#intro-section h3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #fff;
}

/* -------------------- Services -------------------- */
#services-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
}

.horizontal-scroll-container {
  display: flex;
  position: sticky;
  min-width: max-content;
  will-change: transform;
  align-items: center;
  gap: var(--space-md);
  padding: 0 var(--space-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-md);
  max-width: 37em;
  min-height: 80vh;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.card-top-content {
  display: flex;
  flex-direction: column;
}

.icon-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

.icon-title svg {
  width: 5rem;
  height: 5rem;
}

.icon-title svg path {
  fill: #f47b20;
}

.web-display-5 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-h2);
  line-height: var(--lh-h2);
  font-weight: 400;
  color: #fff;
}

.card-bottom-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.web-body-regular {
  font-size: var(--fs-body);
  letter-spacing: var(--ls-small);
  line-height: var(--lh-body);
  font-weight: 400;
  color: #808080;
}

/* -------------------- Trusted -------------------- */
.trusted-section {
  height: 200vh;
  position: relative;
}

.sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
}

.scrolling-text-wrapper {
  white-space: nowrap;
  padding-left: var(--space-md);
}

.scrolling-text {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #fff;
}

/* -------------------- Appointment -------------------- */
#appointment-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
  padding: 0 32px 0 32px;
}

#appointment-section>div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
}

.text-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  ;
}

#appointment-section h4 {
  font-size: 84px;
  font-weight: 400;
  line-height: 88px;
  letter-spacing: -4px;
}

#appointment-section p {
  font-weight: normal;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.1px;
  color: #808080;
  margin-bottom: 40px;
}

#appointment-section a {
  color: #666666;
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* -------------------- Form Styles -------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form input,
form textarea {
  width: 100%;
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  color: rgb(255, 255, 255, 0.8);
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1px;
  font-size: 16px;
  line-height: 22px;
  transition: border-color 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1px;
}

form input:focus,
form textarea:focus {
  outline: none;
  /* Remove the default outline */
  border-color: #f47b20;
  /* Set the border color to your brand's blue */
}

form button {
  background-color: #f47b20;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #e66707;
}

/* -------------------- Join Us -------------------- */
#joinus-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling-content {
  display: flex;
  justify-content: space-around;
  min-width: 200%;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.05em;
  gap: var(--space-lg);
  animation: scroll 15s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* -------------------- Roles -------------------- */
#roles-section {
  padding: 0 var(--space-md);
  padding-top: var(--space-lg );
}

#roles-section>div {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

#roles-section>div>div:nth-child(1),
#roles-section>div>div:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

#roles-section>div>div:nth-child(1)>div {
  flex: 1 1 calc(50% - var(--space-md));
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

#roles-section>div>div:nth-child(2)>div {
  flex: 1 1 calc(33.333% - var(--space-md));
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

#roles-section>div>div>div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

#roles-section h4 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-h2);
  line-height: var(--lh-h2);
  font-weight: 400;
  color: #fff;
}

#roles-section img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 8px;
}

#roles-section p {
  font-size: var(--fs-body);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: #808080;
  margin-bottom: var(--space-md);
}

/* -------------------- Footer -------------------- */
footer {
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer p {
  min-width: 100%;
}

.footer-links {
  display: flex;
  width: 50%;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer p,
footer a {
  font-size: var(--fs-small);
  color: #808080;
  transition: color 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: #f47b20;
}

/* -------------------- Responsive Layout Tweaks -------------------- */
@media (max-width: 1024px) {

  #intro-section {
    margin-top: 12em;
    padding: 0 var(--space-md);
    min-height: 40vh;
  }
}

@media (max-width: 768px) {
    
  header {
    padding: 0.4rem 1rem;
    }

  nav {
    gap: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-xl);
  }

  #hero-text h1 {
    min-height: 20vh;
    margin-top: var(--space-xl);
  }

  #hero-video {
    display: flex;
    justify-content: center;
    padding: 0 var(--space-md);
  }

  #hero-section img {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 12px;
    background: #f47b20;
  }

  .service-card {
    max-width: 90vw;
    min-height: 70vh;
  }

  #intro-section {
    margin-top: var(--space-lg);
    padding: 0 var(--space-md);
    min-height: 40vh;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
  width: 100%;
  }

}