body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
}

/* Trusted By logos: single-line with horizontal scroll on desktop */
@media (min-width: 768px) {
  .trusted-logos-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .trusted-logos-row::-webkit-scrollbar {
    display: none;
  }

  .trusted-logos-row {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

section {
  opacity: 0;
}

section.animate-fade-in {
  opacity: 1;
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-0.5rem) !important;
  transition: all 0.3s ease;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(3rem);
  left: -300px;
  top: -100px;
  width: 50em;
  height: 100%;
  background: rgba(37, 99, 235, 0.1);
}

.jetplane {
  animation: jetplaneMove 10s linear infinite;
  transform-origin: center;
  display: inline-block;
  transition: filter 0.3s ease;
  transform: scale(1.5);
}

.jetplane:hover {
  filter: brightness(1.5);
}

@keyframes jetplaneMove {
  0% {
    transform: scale(1.5) translateY(0);
  }

  50% {
    transform: scale(1.5) translateY(-10px);
  }

  60% {
    transform: scale(1.5) translate(-5px, -8px);
  }

  70% {
    transform: scale(1.5) translate(5px, -6px);
  }

  80% {
    transform: scale(1.5) translate(-5px, -4px);
  }

  90% {
    transform: scale(1.5) translate(5px, -2px);
  }

  100% {
    transform: scale(1.5) translateY(0);
  }
}

.trusted-logo {
  opacity: 1;
  transition: opacity 0.3s ease;
  max-height: 60px;
}

.trusted-section {
  --trusted-surface: #ffffff;
  --trusted-wave-height: 88px;
  background: transparent;
  margin-top: calc(var(--trusted-wave-height) * -1);
  position: relative;
  z-index: 1;
}

.trusted-section-wave {
  line-height: 0;
  margin-bottom: -1px;
}

.trusted-section-wave svg {
  display: block;
  width: 100%;
  height: var(--trusted-wave-height);
}

.trusted-section-wave path {
  fill: var(--trusted-surface);
}

.trusted-section-surface {
  background: var(--trusted-surface);
  padding-top: 1.5rem;
}

.trusted-logo:hover {
  opacity: 1;
}

.trusted-logo-fartech {
  max-height: 120px; /* roughly twice the standard logo height */
}

.process-section {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  /* bg-light */
  padding: 5rem 0;
}

.process-section .orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  top: 10%;
  left: 5%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.2) 0%,
    rgba(37, 99, 235, 0) 80%
  );
  transition: transform 0.1s linear;
}

.process-section .orb2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.2) 0%,
    rgba(37, 99, 235, 0) 80%
  );
}

/* Crack effect overlay */
.process-section .crack {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,0 L45,20 L55,30 L45,50 L55,60 L45,80 L50,100" stroke="rgba(37,99,235,0.7)" stroke-width="5" fill="none"/></svg>')
    no-repeat center/contain;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.process-section .crack.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  /* vertically centers the text within the circle */
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-number:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modern-input,
.modern-textarea {
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-input:focus,
.modern-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
  outline: none;
}

.modern-textarea {
  resize: vertical;
  min-height: 150px;
}

.modern-error {
  display: none;
  font-size: 0.875rem;
}

.modern-error.show {
  display: block;
}

.footer-logo .logo-wrapper {
  position: relative;
  display: inline-block;
}

.public-footer {
  --footer-surface: #f8f9fa;
  background: transparent;
}

.public-footer .footer-wave {
  line-height: 0;
}

.public-footer .footer-wave svg {
  display: block;
  width: 100%;
  height: 72px;
}

.public-footer .footer-wave path {
  fill: var(--footer-surface);
}

.public-footer .footer-surface {
  background-color: var(--footer-surface);
}

.footer-logo .logo-wrapper img {
  transition: transform 0.3s ease;
}

.footer-logo .brand-text {
  position: absolute;
  top: 50%;
  left: 100%; /* Position the text just to the right of the logo */
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap; /* Keep text on a single line */
}

.footer-logo .logo-wrapper:hover img {
  transform: translateX(-10px); /* Move logo slightly to the left on hover */
}

.footer-logo .logo-wrapper:hover .brand-text {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.logo-wrapper:hover img {
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-wrapper img {
  width: 64px;
}

.footer-logo #country_label {
  margin-right: 0.25rem;
}

#Drawer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

#Drawer a {
  text-decoration: none;
  font-size: 1.125rem;
}

.circle-left-bottom-rounded {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to right, #2563eb, #9333ea);
  border-bottom-left-radius: 100%;
}

.service-section-card {
  height: 12rem;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}

.service-section-card img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.service-section-card:hover img {
  filter: grayscale(0%);
}

#contact .container div {
  max-width: 600px;
}

.success-submission-rocket {
  width: 96px;
  height: 96px;
}

.how-we-do-it-section {
  z-index: 1;
}

#contact-form {
  max-width: 600px;
}

#hero_your {
  color: #08d4c0;
}

.custom-btn {
  background-color: #08d4c0;
  color: white;
}

.custom-btn:hover {
  background-color: #08d4c0;
  color: white;
}

.logo-dot {
  color: #08d4c0;
}

select#language_selection option[value="en"] {
  background-image: url("../assets/icons/uk.svg");
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 30px;
}

select#language_selection option[value="fr"] {
  background-image: url("../assets/icons/fr.svg");
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 30px;
}

/* Language Selector Floating Button */
.language-selector-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050; /* Ensure it appears above other elements */
}

/* Custom class for language toggle button */
.btn-language {
  background-color: #ffffff;
  color: #fff; /* Ensure the flag is visible */
  border: none; /* Remove default border */
  width: 50px;
  height: 50px;
  padding: 0;
}

.btn-language:hover {
  background-color: #000000; /* Darken on hover */
  color: #fff;
}

/* Style for the dropdown menu */
.language-selector-btn #language_dropdown {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: none;
  width: 150px;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.language-selector-btn #language_dropdown.show {
  display: block;
}

/* Dropdown items */
.language-selector-btn .dropdown-item {
  cursor: pointer;
}

.language-selector-btn .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* NAVIGATION */

/* Highlight active navigation links in the main navbar */
.navbar-nav .nav-link.active {
  color: #08d4c0 !important; /* Change to your desired active color */
  font-weight: 600; /* Optional: Make the text slightly bolder */
  border-bottom: 2px solid #08d4c0; /* Optional: Add an underline */
}

/* Highlight active navigation links in the offcanvas menu */
.offcanvas-body a.active {
  color: #08d4c0 !important; /* Change to your desired active color */
  font-weight: 600; /* Optional: Make the text slightly bolder */
  border-left: 4px solid #08d4c0; /* Optional: Add a left border */
  padding-left: 0.5rem; /* Adjust padding to accommodate the border */
}

/* More specific selector for main navbar */
nav.navbar-nav .nav-link.active {
  color: #08d4c0 !important;
  font-weight: 600;
  border-bottom: 2px solid #08d4c0;
}

.nav-link {
  margin: 0 0.2em;
}

.nav-link:hover {
  color: #08d4c0 !important;
  font-weight: 600;

  border-bottom: 2px solid #08d4c0;
}

@media (max-width: 767.98px) {
  #navbarNav.show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding-top: 4rem;
  }

  #navbarNav.show .nav-link,
  #navbarNav.show .btn {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
  }
}

/* More specific selector for offcanvas menu */
.offcanvas-body a.nav-link.active,
.offcanvas-body a.btn.active {
  color: #08d4c0 !important;
  font-weight: 600;
  border-left: 4px solid #08d4c0;
  padding-left: 0.5rem;
}

/* ABOUT US */
/* Our values */
#our-values-cards .col-md-6:nth-child(odd) .value-card {
  height: 100%;
}

#our-values-cards .col-md-6:nth-child(even) .value-card {
  height: 90%;
}

/* Team Network Styles */
.team-network {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust as needed */
  margin-bottom: 2rem;
}

/* Lines connecting team members */
.team-network::before,
.team-network::after {
  content: "";
  position: absolute;
  background: #08d4c0;
}

.team-network::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
}

.team-network::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
}

/* Team Member Styles */
.team-member {
  position: absolute;
  width: 120px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.team-member img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member img.animated-image {
  animation: none !important;
  transform: none !important;
}

.team-member img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.team-member img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-member:hover img,
.team-member.selected img {
  filter: grayscale(0%);
}

/* Float and Rotate Animation */
@keyframes float-rotate {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(10deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Positioning Team Members in a Circle */
@media (min-width: 767px) {
  .team-member:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .team-member:nth-child(2) {
    top: 30%;
    left: 70%;
    transform: translate(-50%, -50%);
  }

  /* Antsa */
  .team-member:nth-child(3) {
    top: 70%;
    left: 70%;
    transform: translate(-10%, -50%);
  }

  .team-member:nth-child(4) {
    top: 80%;
    left: 50%;
    transform: translate(-50%, -30%);
  }

  .team-member:nth-child(5) {
    top: 80%;
    left: 25%;
    transform: translate(-50%, -50%);
  }

  .team-member:nth-child(6) {
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%);
  }

  .team-member:nth-child(7) {
    top: 50%;
    left: 50%;
    z-index: 10;
    transform: translate(-50%, -50%);
  }

  .team-member:nth-child(8) {
    top: 40%;
    left: 10%;
    transform: translate(-50%, -50%);
  }
}

/* Responsive Adjustments for Mobile */
@media (max-width: 767.98px) {
  #who-we-are {
    background: #ffffff !important;
  }

  .team-network {
    display: none; /* Hide network layout on mobile */
  }

  /* Hide team member images on mobile */
  .team-member {
    display: none;
  }

  /* Center the details content on mobile */
  .member-details {
    text-align: center;
  }

  .team-mobile .team-card img {
    max-width: 250px;
    margin: 0 auto 0.5rem auto;
    display: block;
    box-shadow: none !important;
    filter: grayscale(100%);
  }

  .team-mobile .team-card {
    text-align: center;
  }

  .about-mobile-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.4rem;
    padding: 1.35rem 1.2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
  }

  .about-mobile-mission {
    position: relative;
    overflow: hidden;
  }

  .about-mobile-mission::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #08d4c0 0%, #7de8dc 100%);
  }

  #our_mission_title,
  #our_values_title {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #08b8a7 !important;
    margin-bottom: 0.8rem !important;
  }

  #our_mission_description {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #475569 !important;
    margin-bottom: 0;
  }

  .about-mobile-values {
    background: #ffffff;
  }

  #our_values_list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem !important;
    margin-bottom: 0;
  }

  #our_values_list li {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.55rem;
    min-height: 110px;
    padding: 0.95rem 0.9rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.1rem;
  }

  #our_values_list li svg {
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0 !important;
    flex-shrink: 0;
  }

  #our_values_list li strong {
    font-size: 0.98rem;
    line-height: 1.35;
    color: #1f2937;
  }
}

/* Team Member Details Display */
.member-details {
  min-height: 300px;
  transition: opacity 0.3s ease;
}

/* Hide Element */
.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show Element */
.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* Smooth transition for hiding/showing sections */
#our_mission_title,
#our_mission_description,
#our_values_title,
#our_values_list {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#our_mission_title.hidden,
#our_mission_description.hidden,
#our_values_title.hidden,
#our_values_list.hidden {
  opacity: 0;
  visibility: hidden;
}

#our_mission_title.visible,
#our_mission_description.visible,
#our_values_title.visible,
#our_values_list.visible {
  opacity: 1;
  visibility: visible;
}

/* Our Values Section */
#our-values .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

#our-values .value-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#our-values .value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#our-values .value-card h5 {
  margin-bottom: 1rem;
  color: #1f2937;
}

#our-values .value-card p {
  color: #6b7280;
}

/* Flip Card Styles (if using Flip Cards) */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 100%;
  perspective: 1000px; /* Remove if you don't want 3D effect */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
}

.flip-card-front {
  background-color: #ffffff;
  color: black;
}

.flip-card-back {
  background-color: #08d4c0;
  color: white;
  transform: rotateY(180deg);
}

/* Responsive Icons */
.flip-card .icon svg {
  width: 48px;
  height: 48px;
}

/* Article listing cards */
.article-card-img {
  height: 16rem;
  object-fit: cover;
}
/* Display mobile navbar at <=1000px */
@media (min-width: 768px) and (max-width: 1000px) {
  .navbar-expand-md .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
  }
  .navbar-expand-md .navbar-collapse:not(.show) {
    display: none !important;
  }
  .navbar-expand-md .navbar-nav {
    flex-direction: column;
  }
  .navbar-expand-md .navbar-toggler {
    display: block;
  }
}

@media (min-width: 992px) {
  .hero-logo-offset {
    margin-left: 80px !important;
  }
}
