* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: inherit;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter/Inter-VariableFont_opsz\,wght.ttf")
    format("woff2");
}

@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora/Lora-VariableFont_wght.ttf") format("woff2");
}

body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  transition: background-color 0.3s, color 0.3s;
  font-family: "Lora";
}

body.light-mode {
  background-color: #fcfcfc;
  color: #272d36;
}

body.dark-mode {
  background-color: #1C1C1EFF;
  color: #e0e0e0;
}

body::-webkit-scrollbar {
  width: 5px;
  /* Thin scrollbar */
}

body::-webkit-scrollbar-track {
  background: transparent;
  /* Transparent track */
}

body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  /* Semi-transparent thumb */
}

body {
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.fade-out {
  opacity: 0;
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

a {
  color: inherit;
  /* Or any other color */
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  height: min-content;
  justify-content: flex-start;
  overflow: hidden;
  padding: 120px 0 0;
  /* position: relative; */
}

section {
  max-width: 720px;
  align-items: flex-start;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 40px;
  height: min-content;
}

.profile-face img {
  flex: none;
  height: 64px;
  width: 64px;
  position: relative;
  border-radius: 50%;
}

.profile-brief {
  align-items: flex-start;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 44px;
  height: min-content;
  justify-content: center;
  max-width: 75%;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;

  span {
    font-family: "Lora";
    font-size: 19px;
    font-weight: 500;
  }

  .profile-description p{
    line-height: 24px;
    a:hover{
      color: #808080;
    }
  }

  .profile-clients p {
    font-size: 17px;
    font-weight: 400;
  }
}

.logo-slider-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  align-content: center;
  align-items: center;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  height: min-content;
  justify-content: center;
  overflow: hidden;
  padding: 32px 0 64px 0;
  position: relative;
  width: 100%;
}

.logo-slider {
  display: inline-block;
  animation: slide 15s linear infinite;
}

.logo-slider img {
  height: 20px;
  margin: 0 20px;
}

@keyframes slide {
  0% {
    transform: translateX(0%);
    /* Start at original position */
  }

  100% {
    transform: translateX(-50%);
    /* Move full width to the left */
  }
}

.image-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.image-link {
  position: relative;
  /* Needed for overlay positioning */
  display: block;
  /* Make the link fill the grid cell */
}

.image-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity 0.5s ease;
  /* Smooth transition for hover effect */
}

.image-link .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  /* Initially hidden */
  transition: opacity 0.3s ease-in-out;
}

.image-link:hover img {
  filter: brightness(40%) saturate(10%) hue-rotate(20deg);
  /* Gradient effect */
  border-radius: 5px;
}

.image-link:hover .overlay-text {
  opacity: 1;
  /* Show the text on hover */
}

/* Mobile styles */
@media (max-width: 420px) {
  .image-container {
    grid-template-columns: 1fr;
  }
}

.button-section {
  display: flex;
  flex-direction: row;
  gap: 8px;
  position: fixed;
  z-index: 1000;
  bottom: 20px;
  left: 50%;
  /* Center the button horizontally */
  transform: translateX(-50%);
  /* Adjust for button width */
}

.scroll-button,
.scroll-button-1 {
  font-family: "Inter";
  display: flex;
  align-content: center;
  gap: 8px;
  background-color: #1a1a1a;
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;

  img {
    border-radius: 50%;
    height: 15px;
  }

  a {
    color: inherit;
    /* Or any other color */
    text-decoration: none;
  }
}

.scroll-button-1 {
  padding: 15px;
  border-radius: 50%;
  aspect-ratio: 1 / 1; 
}

.scroll-button:hover {
  color: #1a1a1a;
  background-color: #e0e0e0;
  backdrop-filter: blur(10px);
}

.scroll-button-1:hover {
  color: #171717;
  background-color: #e0e0e0;
  opacity: 0.9;
  backdrop-filter: blur(10px);
}

.scroll-button {
  .once-image {
    color: #f89513;
    text-shadow: 0 0 10px #f89513;
  }
}

.copyright {
  width: 100%;
  text-align: center;
  padding: 32px 0px 102px 0px;
  font-family: "Inter";
  font-weight: 300;
  font-size: 12px;
}

.copyright a:hover {
  text-decoration: underline;
}

.testimony-heading {
  padding-top: 32px;
}

.testimony-container {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile: single column */
  gap: 0;
  /* Optional: Adjust gap between grid items */
}

.testimony-left,
.testimony-right {
  aspect-ratio: 1 / 1;
  /* Maintain 1:1 aspect ratio */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 0.5px solid #d9d9d9;
  border-radius: 16px 0 0 16px;
}

@media (min-width: 768px) {
  .testimony-container {
    grid-template-columns: 1fr 1fr;
    /* Desktop: two columns */
  }
}

.testimony-right {
  border-radius: 0 16px 16px 0;
}

body.dark-mode .testimony-right:hover {
  background-color: white;
  color: black;
  transition: background-color 0.7s ease, backdrop-filter 0.7s ease;
}

body.dark-mode .testimony-left:hover {
  background-color: white;
  color: black;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

body.light-mode .testimony-right:hover {
  background-color: #121212;
  color: #fcfcfc;
  transition: background-color 0.7s ease, backdrop-filter 0.7s ease;
}

body.light-mode .testimony-left:hover {
  background-color: #121212;
  color: #fcfcfc;
  transition: background-color 0.7s ease, backdrop-filter 0.7s ease;
}

pre {
  overflow-x: auto;
  font-family: monospace;
}

/* Mobile Styles (Applied when screen width is less than 768px) */
@media (max-width: 767px) {
  main {
    padding: 60px 10px 0;
    /* Adjusted padding for mobile */
    width: 100%;
  }

  .profile-brief {
    max-width: 90%;

    span {
      font-family: "Lora";
      font-size: 19px;
      font-weight: 500;
    }

    .profile-clients p {
      font-size: 17px;
      font-weight: 400;
    }
  }

  section {
    max-width: 100%;
    /* Full width on mobile */
    gap: 20px;
    /* Reduced gap for mobile */
    padding: 0 16px;
    /* Added side padding for mobile */
    box-sizing: border-box;
    /* Include padding in width calculation */
  }

  .testimony-left {
    height: auto;
    border-radius: 16px 16px 0 0;
  }
  .testimony-right {
    border-radius: 0 0 16px 16px;
  }
}
