body {
  height: 100%;
  margin: 0;
  background: white;
  color: black;
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
}

b {
  font-weight: 700;
}
a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

a:hover {
  color: inherit;
}

/* Keyframes */
@keyframes fly-up {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(var(--finalY));
  }
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes zoom-in1 {
  from {
    height: 50vh;
    transform: translateY(0);
  }
  to {
    height: 100vh;
    transform: translateY(-25vh);
  }
}

.top-sticky-container {
  position: relative;
  height: fit-content;
}

.animation-container {
  position: sticky;
  height: 100vh;
  width: 100%;
  top: 0;
  display: flex;
  flex-direction: row;
  z-index: -1;
}

.left-side {
  width: 65%;
}
.left-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.left-side {
  position: relative;
  overflow: hidden;
}

.slide-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateX(-55vw); /* off-canvas by default */
  opacity: 0;
}

/* the very first/base image is already visible */
.slide-photo.is-init {
  transform: translateX(0);
  opacity: 1;
  z-index: 1;
}

/* class added by JS to the next image */
.slide-photo.slide-in {
  animation: slide-in-left 0.95s ease-out forwards;
}

@keyframes slide-in-left {
  from {
    transform: translateX(-55vw);
    opacity: 1;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-left-mobile {
  from {
    transform: translateX(-100vw);
    opacity: 1;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-photo.start {
  transform: translateX(0);
  opacity: 1;
  z-index: 1;
  animation: none !important;
}
/* extra safety if .slide-in ever gets accidentally added */
.slide-photo.start.slide-in {
  animation: none !important;
}

.right-side {
  display: flex;
  width: 35%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  gap: 55px;
}

@media (max-width: 1860px) {
  .left-side {
    width: 62%;
  }
  .right-side {
    width: 38%;
  }
}
@media (max-width: 1500px) {
  .left-side {
    width: 65%;
  }
  .right-side {
    width: 35%;
  }
}
.logo-container {
  width: 375px;
  height: auto;
  margin-top: 25px;
}

.logo-container img {
  width: 100%;
  height: 100%;
}

@media (max-width: 1400px) {
  .logo-container {
    width: 300px;
  }
}

@media (max-height: 900px) {
  .logo-container {
    margin-top: 150px;
    width: 300px;
  }
}
@media (max-height: 700px) {
  .logo-container {
    width: 200px;
    margin-top: 175px;
  }
}

.title-container {
  overflow: hidden; /* hide the sliding-in text */
  display: inline-block;
  width: 100%;
  font-size: 70px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 10px;
  display: none;
}

.title-line {
  overflow: hidden;
  display: block;
}

/* the moving piece */
.title-line > span {
  display: inline-block;
  transform: translateY(100%); /* start below, like your .line spans */
}

/* play your existing slideUp keyframes */
.title-container.active .title-line > span {
  animation: slideUp 0.7s ease forwards;
}

/* stagger (0.2s per line) */
.title-container.active .title-line:nth-child(2) > span {
  animation-delay: 0.175s;
}
.title-container.active .title-line:nth-child(3) > span {
  animation-delay: 0.3s;
}
.title-container.active .title-line:nth-child(4) > span {
  animation-delay: 0.6s;
}

.right-text-container {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-weight: 375;
  margin-bottom: 100px;
}
.right-text {
  width: 90%;
  height: 300px;
}
.right-quote {
  position: absolute;
  top: 20%;
  left: 9.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: clamp(14px, 1.34vw, 24px);
  font-family: Public Sans;
  white-space: nowrap;
  line-height: 1.6;
}

.quote-icon {
  position: absolute;
  left: -40px;
  top: -9%;
  width: 24px;
  height: auto;
  opacity: 0;
}
.quote-icon img {
  width: 100%;
  height: 100%;
}

.right-quote.is-active {
  opacity: 1;
  pointer-events: auto;
}

.icon-show {
  animation: op1 0.6s ease 0.1s forwards;
}
.icon-hide {
  animation: op2 0.6s ease 0s forwards;
}
@keyframes op1 {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes op2 {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.line {
  overflow: hidden;
  display: inline-block;
  --d: 0s;
  width: 100%;
}
.line:nth-child(2) {
  --d: 0.175s;
}
.line:nth-child(3) {
  --d: 0.35s;
}
.line:nth-child(4) {
  --d: 0.5s;
}
.line:nth-child(5) {
  --d: 0.65s;
}

.line span {
  display: inline-block;
  transform: translateY(100%);
  text-align: left;
}

/* reveal */
.line span.reveal {
  animation: slideUp 0.6s ease var(--d) forwards;
}

/* hide */
.line span.hide {
  animation: slideDown 0.6s ease forwards;
}
.line:nth-child(1) span.hide {
  animation-delay: 0s;
}
.line:nth-child(2) span.hide {
  animation-delay: 0s;
}
.line:nth-child(3) span.hide {
  animation-delay: 0s;
}
.line:nth-child(4) span.hide {
  animation-delay: 0s;
}

.right-date {
  position: absolute;
  left: 0%;
  bottom: -40%;
  font-size: 18px;
  color: #525252;
  transform: translateX(-100px);
  opacity: 0;
}
.right-name {
  position: absolute;
  right: 0%;
  bottom: -40%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 22px;
}
.name-line {
  height: 1px;
  width: 60px;
  opacity: 0;
  background-color: #000;
  transform: translateX(40px);
}
.right-name span {
  opacity: 0;
  transform: translateX(-40px);
}

@media (max-width: 1300px) {
  .quote-icon {
    left: -30px;
    top: -11%;
  }
  .right-name {
    font-size: 18px;
  }
}

.right-name span.reveal {
  animation: nameReveal 0.7s ease 0.2s forwards;
}
.right-name span.hide {
  animation: nameHide 0.6s ease forwards;
}
@keyframes nameReveal {
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes nameHide {
  from {
    opacity: 1;
    transform: translateX(0px);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}
.name-line.reveal {
  animation: lineReveal 0.7s ease 0.2s forwards;
}
.name-line.hide {
  animation: lineHide 0.7s ease forwards;
}

@keyframes lineReveal {
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes lineHide {
  from {
    opacity: 1;
    transform: translateX(0px);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.right-date.reveal {
  animation: slideRight 0.6s ease 0.1s forwards;
}
.right-date.hide {
  animation: slideLeft 0.6s ease forwards;
}

@keyframes slideRight {
  to {
    transform: translateX(0px);
    opacity: 1;
  }
}
@keyframes slideLeft {
  from {
    opacity: 1;
    transform: translateX(0px);
  }
  to {
    transform: translateX(-100px);
    opacity: 0;
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.temp-sec {
  height: 100vh;
  overflow-x: hidden;
}

.scroll-reveal {
  height: fit-content;
  background-color: black;
  padding: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;

  z-index: 10;
}
.scroll-reveal p {
  max-width: 80%;
  font-size: 28px;
  line-height: 1.5;
}
.scroll-reveal > * {
  margin: 0;
}

.scroll-reveal span {
  color: hsl(0 0% 100% / 0.2);
  background-clip: text;
  background-repeat: no-repeat;
  background-image: linear-gradient(to bottom, white, white);
  background-size: 100% 0%; /* start collapsed vertically */
  animation: scroll-reveal linear forwards;
  animation-timeline: view(y);
}

.scroll-reveal h2 span {
  font-size: 72px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  animation-range-start: cover 10vh;
  animation-range-end: cover 25vh;
}

.scroll-reveal p span {
  animation-range-start: cover 3vh;
  animation-range-end: cover 22vh;
}

@keyframes scroll-reveal {
  to {
    background-size: 100% 100%;
  }
}

@media (max-width: 1000px) {
  .scroll-reveal {
    padding: 50px 0px;
  }
}
@media (max-width: 600px) {
  .scroll-reveal p {
    max-width: 90%;
    font-size: 24px;
    line-height: 1.3;
  }
}

.project-text-left,
.project-text-right {
  font-size: 38px;
  text-transform: uppercase;

  font-weight: 400;
  padding: 30px;
  padding-top: 0px;
  white-space: nowrap;
  overflow: hidden;
}

.project-text-right,
.project-text-left {
  transform: translateX(0px);
  transition: transform 0.35s ease;
}
.project-view-right,
.project-view-left {
  transform: translateX(0px);
  transition: transform 0.375s ease 0.125s;
}

.project-right:hover .project-text-right,
.project-right:hover .project-view-right,
.project-right:hover .project-image {
  transform: translateX(-20px);
  cursor: pointer;
  filter: brightness(70%);
}

.project-left:hover .project-text-left,
.project-left:hover .project-view-left,
.project-left:hover .project-image {
  transform: translateX(20px);
  cursor: pointer;
  filter: brightness(70%);
}

.project-image {
  filter: brightness(100%);
  transition: filter 0.35s ease;
}

.project-image:hover {
  cursor: pointer;
  filter: brightness(70%);
}

.projectText-left {
  position: absolute;
  top: 50%;
  left: 110%;
  animation: project-text-appearL both;
  animation-timeline: view(67% 15%);
}

.projectText-right {
  position: absolute;
  top: 50%;
  right: 110%;
  animation: project-text-appear both;
  animation-timeline: view(67% 15%);
}

@keyframes project-text-appear {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes project-text-appearL {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-view-left,
.project-view-right {
  position: absolute;
  top: 60%;
  font-size: 16px;
  font-weight: 400;
  display: flex; /* put line + text side by side */
  align-items: center;
  font-family: Public Sans;
}

.project-view-left {
  left: 90%;
}
.project-view-right {
  right: 90%;
}

/* the line */
.view-line {
  height: 1px;
  width: 0; /* animated */
  background: black;
  animation: view-line both;
  animation-timeline: view(60% 7%);
}

.project-view-text {
  animation: view-text both;
  animation-timeline: view(60% 7%);
  margin-left: 8px;
  margin-right: 8px;
}

@keyframes view-text {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes view-line {
  from {
    width: 0px;
  }
  to {
    width: 150px;
  }
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 80px 0;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 400px;
}

.project-heading-container {
  position: absolute;
  display: grid;
  place-items: center;
  margin: 20vh auto;
  color: #111;
  transform: translateX(-50%) translateY(0) scale(1);
  top: -430px;
  left: 50%;
  font-family: Public Sans;
  animation: project-heading-appear both;
  animation-timeline: view(60% 5%);
}

.project-heading {
  text-transform: uppercase;
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(1);
  top: -60px;
  animation: project-heading-appear both;
  animation-timeline: view(60% 5%);
  white-space: nowrap;
  letter-spacing: 2px;
}
.project-heading-sent {
  text-align: center;
  margin: 40px;
  margin-bottom: 20px;
  margin-left: 0px;
  margin-right: 0px;
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  width: 100%;
}

.project-bottom a {
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 20px;
  padding: 17px 26px;
  border: 1px solid rgb(0, 0, 0);
  margin: 15px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: rgb(0, 0, 0);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.project-bottom a:hover {
  color: rgb(255, 255, 255);
  border: 1px solid rgb(0, 0, 0);
  background-color: black;
}
#testi-more {
  height: fit-content;
}
#testi-more a {
  margin-top: 0px;
}

@keyframes project-heading-appear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100px) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0px) scale(1);
  }
}

@keyframes grow-left {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes grow-right {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* reduce motion + fallback */
@media (prefers-reduced-motion: reduce) {
  .project-underline,
  .project-underline.split::before,
  .project-underline.split::after {
    transform: scaleX(1) !important;
  }
}
@supports not (animation-timeline: auto) {
  .project-underline,
  .project-underline.split::before,
  .project-underline.split::after {
    transform: scaleX(1);
  }
}

.project-left {
  display: flex;
  justify-content: flex-start;
  position: relative;
  width: auto;
  margin-right: auto;
  margin-top: -220px;
}

.project-right {
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: auto;
  margin-left: auto;
  margin-top: -220px;
}

.project-image {
  width: 630px;
  height: 750px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: project-image-appear both;
  animation-timeline: view(78% 3%);
}

@media (max-width: 1300px) {
  .project-image {
    width: 500px;
    height: 600px;
  }
  .projects {
    margin: 0 50px;
    margin-top: 400px;
  }
}
@media (max-width: 1100px) {
  .project-image {
    width: 400px;
    height: 600px;
  }
}

@keyframes project-image-appear {
  from {
    opacity: 0.1;
    transform: translateY(100px);
    transform: scale(70%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    transform: scale(100%);
  }
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.testimonial-wrapper {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: rgb(252, 252, 252);
}

.testimonial-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  align-self: center;
  justify-self: center;
  margin: 10px 0px;
  padding: 10px 0px;
}
.testimonial-title-container {
  align-self: center;
  font-family: "Public Sans", serif;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testimonial-title {
  align-self: center;
  justify-content: center;

  margin: 25px;

  letter-spacing: 2px;
  font-family: Public Sans;
}

.testimonial-title-container h3 {
  margin: 15px;
}
.testimonial-title-container a {
  padding: 15px 25px;
  border: 1px solid rgb(0, 0, 0);
  margin: 15px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: rgb(0, 0, 0);
}
.testimonial-title-container a:hover {
  background-color: rgb(255, 255, 255);
  color: black;
  font-weight: 500;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
  will-change: transform;
}

.testimonial-card {
  transform: scale(0.85);
  flex: 0 0 800px;
  height: 95%;
  margin: 0 15px;
  background: rgb(255, 255, 255);
  border-radius: 1px;
  box-shadow: 1px 3px 25px rgba(255, 255, 255, 0.45);
  transform: scale(0.8);
  transition: transform 0.6s ease;
  display: flex;
  flex-direction: row;
  opacity: 75%;
  cursor: pointer;
  border-radius: 15px;
  border: solid 1px rgb(180, 180, 180);
}
.left-side-card {
  color: black;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  justify-content: flex-start;
  margin: 30px;
  position: relative;
  font-family: "Public Sans", serif;
}

.testimonial-card-title {
  padding-bottom: 5px;
  font-size: 22px;
  font-weight: 300;
  color: black;
  line-height: 1.6;
  text-transform: uppercase;
}

.left-side-card img {
  max-width: 50px;
  position: absolute;
  top: -65px;
  left: -10px;
}

.testimonial-quote {
  font-size: 18px;
  margin-left: 10px;
  margin-top: 17%;
  font-weight: 400;
  line-height: 1.7;
  position: relative;
  color: #1b1b1b;
}
.right-side-card {
  display: flex;
  flex-direction: row;
}
.right-side-card img {
  border-radius: 0px 13px 13px 0px;
}
.photo-card {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}
.testimonial-info {
  position: absolute;
  bottom: 17px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 18px;
}

.testimonial-date {
  font-weight: 600;
  color: rgb(77, 77, 77);
  font-size: 16px;
  margin-top: 8px;
}

.testimonial-card.active {
  transform: scale(1);
  box-shadow: 1px 0px 8px rgba(0, 0, 0, 0.35);
  opacity: 100%;
  background: rgb(255, 255, 255);
  cursor: default;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.514);
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 5px 15px;
}

.testimonial-nav.prev {
  margin-top: 30px;
  left: 50%;
  transform: translate(-458px, -50%);
  border-radius: 50%;
  color: white;
  width: 48px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.testimonial-nav.next {
  margin-top: 30px;
  left: 50%;
  transform: translate(407px, -50%);
  border-radius: 50%;
  color: white;
  width: 48px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.testimonial-arrow {
  width: 21px; /* or however small you want the icon */
  height: 21px;
  object-fit: contain;
  pointer-events: none;
}

.testimonial-nav:hover {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.9);
  transition: background-color 0.3s ease-in-out;
}
.testimonial-nav:hover .testimonial-arrow {
  transition: transform 0.15s ease-in;
  transform: scale(1.05);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 99999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-content {
  background: white;
  padding: 30px;
  max-width: 80%;
  width: 100%;
  border-radius: 6px;
  position: relative;
  text-align: left;
  font-family: "Public Sans", sans-serif;
  box-shadow: 0px 0px 25px rgba(255, 255, 255, 0.3);
  color: black;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: black;
}

.lightbox-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #111;
  font-weight: 600;
}

.lightbox-body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
}

.lightbox-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.lightbox-link {
  font-size: 15px;
  text-decoration: underline;
  color: #0066cc;
  width: fit-content;
}

.lightbox-link:hover {
  text-decoration: none;
  color: #004c99;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #555;
  font-size: 14px;
}

.lightbox-author {
  font-weight: bold;
  color: black;
}

.lightbox-date {
  font-weight: normal;
  color: #777;
}

.read-more-btn {
  position: absolute;
  bottom: 40px;
  right: 20px;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  background-color: transparent;
  color: black;
  border: 2px solid black;
  overflow: hidden;
  transition: color 0.6s ease-in-out;
  width: 110px;
  border-radius: 0px;
  visibility: hidden;
}

.testimonial-card.active .read-more-btn {
  visibility: visible;
}
/* Pseudo-element for background sliding animation */
.read-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen */
  width: 100%;
  height: 100%;
  background-color: black;
  transition: left 0.6s ease-in-out;
  z-index: 0;
}

/* Text effect - it should be above the background */
.read-more-btn span {
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, white 50%, black 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  background-clip: text; /* Add this for non-WebKit browsers */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s ease-in-out;
}

/* Hover effect */
.read-more-btn:hover::before {
  left: 0; /* Moves background from left to right */
}

.read-more-btn:hover span {
  background-position: 0 0; /* Moves gradient from left to right */
}

.read-more-btn:hover {
  cursor: pointer;
}

.testimonial-swipe {
  display: none;
}

#test-swipe {
  display: none;
}

.review-section-container {
  display: flex;
  width: 100%;
  height: fit-content;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Public Sans", serif;
  margin: 0px auto;
  padding: 60px 0px;
  background-color: rgb(255, 253, 249);

  padding-bottom: 10px;
}

.review-section-container-title {
  font-size: 48px;
  font-weight: 100;
  margin: 25px;
  letter-spacing: 2px;
  font-family: Public Sans;
}

.review-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: fit-content;
  justify-content: space-evenly;
  align-items: center;
}

.badges-container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.badges-container-col {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1280px) {
  .badges-container {
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .badges-container {
    display: none;
  }
}

.badges-container img {
  width: 130px;
  height: auto;
}

#houz2024 {
  width: 132px;
}

.review-title {
  font-size: 22px;
  font-weight: 600;
  margin: 5px auto;
  margin-bottom: 20px;
}

.other-websites {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
}

.review-website-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 20px;
  border-radius: 20px;
  background-color: rgb(255, 255, 255);
  transition: transform 0.5s ease;
  text-decoration: none;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  margin-top: 5px;
  border: 1px solid rgb(167, 167, 167);
  height: 70px;
}

.quick-stagger-blocks > * {
  opacity: 0;
  transform: translateY(18px);
}

.quick-stagger-blocks.quick-stagger-blocksA > * {
  animation: quick-stagger-blocksK 0.8s ease both;
}

.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(1) {
  animation-delay: 0.5s;
}
.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(2) {
  animation-delay: 0.7s;
}
.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(3) {
  animation-delay: 0.9s;
}
.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(4) {
  animation-delay: 1.1s;
}
.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(5) {
  animation-delay: 1.3s;
}
.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(6) {
  animation-delay: 1.5s;
}
.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(7) {
  animation-delay: 1.6s;
}
.quick-stagger-blocks.quick-stagger-blocksA > *:nth-child(8) {
  animation-delay: 1.8s;
}

@keyframes quick-stagger-blocksK {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-website {
  margin: 0px 10px 0px 30px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgb(0, 0, 0);
}

.stars {
  color: gold;
  font-size: 22px;
  margin-bottom: 1px;
}
.reviews-image {
  min-width: 125px;
}

.reviews-image img:hover {
  cursor: pointer;
}

.houzz {
  max-width: 80px;
  margin: 0px 20px 0px 0px;
}

.trustedpros {
  max-width: 77px;
  margin: 0px 20px 0px 0px;
}

.homestars {
  max-width: 100px;
  margin: 7px 20px 7px 0px;
}
.google {
  max-width: 105px;
  margin: 0px 20px 0px 0px;
}

.listings {
  font-size: 12px;
  color: rgb(59, 59, 59);
  padding-top: 3px;
  margin-left: 2px;
  margin-right: 22px;
}

.listings:hover,
.rating:hover,
.review-website:hover {
  cursor: pointer;
  text-decoration: underline;
}

.rating {
  color: rgb(221, 188, 0);
  margin-right: 20px;
  margin-left: 20px;
  padding-top: 3px;
}
.review-website,
.listings {
  transition: color 1s ease;
}

.review-website-container {
  transition:
    background-color 1s ease,
    color 1s ease;
}

#houzz {
  width: 80px; /* 👈 replaces your old .houzz max-width */
  height: 40px; /* adjust height to match the logo’s aspect ratio */
  background-image: url("photos/houzz-black.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition:
    background-image 1s linear 0s,
    transform 1s ease; /* optional fade delay */
}

.review-website-container:hover {
  background-color: rgba(0, 0, 0, 1);
  cursor: pointer;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.568);
  transform: scale(1.5);
  color: white;
}
.review-website-container:hover .review-website {
  color: white;
}
.review-website-container:hover .listings {
  color: rgb(212, 212, 212);
}
.review-website-container:hover #houzz {
  background-image: url("photos/houzz-white.png");
}

@media (max-width: 700px) {
  .review-title {
    font-size: 26px;
    width: 85%;
    text-align: center;
  }

  .review-website-container {
    align-self: center;
    width: 90%;
  }

  .review-website {
    margin: 0px 3px;
    font-size: 16px;
  }

  .reviews-image img {
    margin-right: 0px;
    margin-left: 0px;
  }

  .rating {
    margin: 0px;
    margin-right: 5px;
  }
  .listings {
    text-align: center;
  }
  .other-websites {
    padding: 0px;
    width: fit-content;
  }
  .review-section {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .other-websites {
    transform: scale(0.8);
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .reviews-image {
    transform: scale(0.9);
  }
  .review-website-container {
    padding-left: 2px;
    padding-right: 14px;
  }
  .testimonial-title-container h3 {
    font-size: 19px;
  }
}

@media (max-width: 600px) {
  .right-name,
  .right-date {
    bottom: -55%;
  }
  #short-m {
    bottom: -100%;
  }
}

@media (max-width: 850px) {
  .testimonial-carousel {
    transform: scale(0.77);
    overflow: visible;
    height: 620px;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  .testimonial-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  .testimonial-track {
    height: 98%;
  }

  .testimonial-card {
    flex: 0 0 400px;
    height: 98%;
    margin: 0 15px;
    background: rgb(245, 245, 245);
    border-radius: 15px;
    box-shadow: 1px 3px 25px rgba(255, 255, 255, 0.15);
    transform: scale(1);
    transition: transform 0.6s ease;
    opacity: 75%;
    filter: brightness(90%);
    cursor: pointer;
  }
  #test-swipe {
    display: block;
    width: 80px;
    height: auto;
    position: absolute;
    top: 79%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    z-index: 99;
  }
  .left-side-card {
    width: 90%;
    height: 100%;
  }

  .left-side-card img {
    max-width: 50px;
    position: absolute;
    top: 10px;
    left: 5px;
  }

  .testimonial-card-title {
    font-size: 26px;
  }

  .testimonial-quote {
    font-size: 24px;
    margin-left: 10px;
    margin-top: 17%;
    font-weight: 300;
    line-height: 1.7;
  }

  .testimonial-quote img {
    top: -50px;
    left: -10px;
  }
  .right-side-card {
    display: none;
  }

  .read-more-btn {
    transform: scale(1.2);
  }

  .testimonial-dots {
    gap: 26px;
    transform: scale(1.05);
  }
}
/* Fullscreen intro overlay */ /* Overlay container */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  flex-direction: row;
  z-index: 999999;
  pointer-events: none;
  overflow: hidden;
  animation: overlay-fade 1s ease forwards;
  animation-delay: 5.15s; /* fade happens after overslides */
}

/* Left + right halves */
.intro-left,
.intro-right {
  width: 50%;
  height: 100%;
  overflow: hidden; /* keep overslide hidden until animates in */
  position: relative;
}

/* The actual sliding element */
.overslide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 1;
}

/* left overslide starts off-canvas to the left */
.intro-left .overslide {
  transform: translateX(-100%);
  animation: slide-in-right 0.8s ease forwards;
  animation-delay: 4s;
}

/* right overslide starts off-canvas to the right */
.intro-right .overslide {
  transform: translateX(100%);
  animation: slide-in-right 0.8s ease forwards;
  animation-delay: 4s;
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes overlay-fade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.intro-line {
  position: absolute;
  left: 50%; /* center horizontally */
  bottom: 0; /* start from bottom */
  transform: translateX(-50%); /* true center */
  width: 1px;
  height: 0;
  background: white;
  animation: line-grow 0.8s ease forwards;
  animation-delay: 0.35s;
}

@keyframes line-grow {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

.intro-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  font-weight: 600;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.intro-text p {
  text-align: left;
}

.intro-text strong {
  display: inline-block;
  font-weight: 550;
  font-size: 2.2rem;
}

.intro-text img {
  width: 320px;
  height: auto;
  padding: 20px;
}

/* left text sits flush against the line */
.left-text {
  right: 11px; /* stick to center line */
  text-align: center;
  animation:
    slide-in-left-text 0.6s ease forwards 1.35s,
    fade-out 0.5s ease forwards 3.55s;
  /* added more delay */

  font-weight: 300;
}

/* right text sits flush against the line */
.intro-text.right-text {
  left: 40px; /* stick to center line */
  text-align: left;
  animation:
    slide-in-right-text 0.5s ease forwards 1.35s,
    fade-out 0.6s ease forwards 3.55s;
  font-family: Montserrat;
  font-weight: 300;
  width: fit-content;
  font-family: "Montserrat", "serif";
}

@keyframes slide-in-left-text {
  from {
    transform: translate(50%, -50%); /* push rightward */
    opacity: 0;
  }
  to {
    transform: translate(0, -50%);
    opacity: 1;
  }
}

@keyframes slide-in-right-text {
  from {
    transform: translate(-50%, -50%); /* push leftward */
    opacity: 0;
  }
  to {
    transform: translate(0, -50%);
    opacity: 1;
  }
}

.featured-projects-container-mobile {
  display: none;
}

@media (max-width: 900px) {
  .projects {
    display: none;
  }
  .featured-projects-container-mobile {
    margin: 0 auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    width: 90%;
  }

  .featured-projects-header-mobile {
    text-align: center;
    margin-bottom: 40px;
    font-family: "Public Sans", sans-serif;
  }

  .featured-projects-header-mobile h1 {
    margin-bottom: 10px;
    color: #000;
  }

  .featured-projects-header-mobile h2 {
    color: #000;
  }

  .featured-projects-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
  }

  .project-mobile {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
  }

  .project-image-mobile {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 4px;
  }

  .project-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* bottom text */
  .project-image-mobile p {
    position: absolute;
    bottom: 6px;
    left: 20px;
    color: white;
    font-size: 20px;
    font-family: "Public Sans", sans-serif;
    font-weight: 300;
    text-shadow: 1px 1px 3px black;
  }

  /* TAKE A LOOK text & arrow */
  .featured-link-mobile {
    position: absolute;
    bottom: -30px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(0, 0, 0);
    font-family: "Public Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
  }

  .arrow-mobile {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 5px;
  }

  /* view more button */
  .view-more-btn-mobile {
    margin-top: 50px;
    text-align: center;
  }

  .view-more-btn-mobile a {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid black;
    color: black;
    font-family: "Public Sans", sans-serif;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 15px;
    transition: background 0.3s ease;
  }

  .view-more-btn-mobile a:active {
    background: black;
    color: white;
  }
}
@media (max-width: 480px) {
  .project-image-mobile {
    height: 420px;
  }
  .project-image-mobile p {
    font-size: 18px;
  }
  .featured-link-mobile {
    font-size: 15px;
  }
}
.testiominal-swipe {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.testiominal-swipe.hide {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .left-side {
    width: 61%;
  }
  .right-side {
    width: 39%;
  }
}

@media (max-width: 900px) {
  .animation-container {
    flex-direction: column;
    max-height: 80vh;
  }

  .left-side,
  .right-side {
    width: 100%;
    height: auto; /* make both sections adapt naturally */
  }

  .left-side {
    position: relative;
    overflow: visible; /* let the image show properly */
  }

  .slide-stack {
    height: 40vh;
    position: relative;
  }

  .right-side {
    padding: 40px 0px;
    align-items: center;
    justify-content: center;
    padding-top: 0px;
    height: fit-content;
    width: 100%;
  }

  .logo-container {
    width: 140px;
    margin: 10px 0;
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 10000;
  }

  .title-container {
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: 3px;
    display: block;
  }

  .right-text-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .right-quote {
    position: absolute;
    top: 50%;
    left: 48.5%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%; /* or whatever max width fits your design */
    font-size: 16px;
  }

  .quote-icon {
    left: -2px;
    top: -40px;
  }
  .slide-photo {
    transform: translateX(-100vw);
  }

  /* class added by JS to the next image */
  .slide-photo.slide-in {
    animation: slide-in-left-mobile 0.95s ease-out forwards;
  }
}

/* Existing text lightbox (unchanged) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  padding: 20px;
}
.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 85%;
  max-width: 1400px;
  padding: 50px 60px 70px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 85%;
}

.lightbox-content h3 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lightbox-content .lb-meta {
  color: #555;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
}

/* Scrollable paragraph area */
.lb-scrollable {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 17px;
  color: #333;
  line-height: 1.7;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.lb-scrollable::-webkit-scrollbar {
  width: 10px;
}
.lb-scrollable::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.lb-scrollable::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Footer section (name + date + photos) */
.lb-footer {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 15px;
}

.lb-name-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: #111;
}

/* reuse your testimonial photo-row style */
.lb-photo-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lb-photo-row img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #ddd;
  cursor: pointer;
}
.lb-photo-row .photo-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  background: #f3f3f3;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  cursor: pointer;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 600px) {
  .lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    border-radius: 0px;
  }
  .lightbox {
    width: 100%;
    height: 100%;
    padding: 0;
  }
}

@media (max-width: 700px) {
  .intro-overlay {
    flex-direction: column;
    animation: overlay-fade 1s ease forwards;
    animation-delay: 5.15s;
    width: 100%;
    height: 100%;
  }

  .intro-left,
  .intro-right {
    width: 100%;
    height: 50%;
    overflow: hidden;
    position: relative;
  }

  /* The actual sliding element */
  .overslide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 1;
  }

  /* left overslide starts off-canvas to the left */
  .intro-left .overslide {
    transform: translateY(-100%);
    animation: slide-in-under1 0.8s ease forwards;
    animation-delay: 4s;
  }

  .intro-right .overslide {
    transform: translateY(100%);
    animation: slide-in-under1 0.8s ease forwards;
    animation-delay: 4s;
  }

  @keyframes slide-in-under1 {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }

  @keyframes overlay-fade {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }

  .intro-line {
    position: absolute;
    top: 50%; /* center horizontally */
    bottom: 0; /* start from bottom */
    transform: translateX(-50%); /* true center */
    width: 0%;
    height: 1px;
    background: white;
    animation: line-grow1 0.8s ease forwards;
    animation-delay: 0.35s;
  }

  @keyframes line-grow1 {
    from {
      width: 0%;
    }
    to {
      width: 100%;
    }
  }

  .intro-text img {
    width: 300px;
    height: auto;
    padding: 20px;
  }

  .intro-text {
    position: absolute;
    left: 50%;
    width: 100%;
  }

  .intro-text p {
    text-align: center;
  }

  .intro-text p {
    text-align: center;
  }

  .intro-text strong {
    display: inline-block;
    font-weight: 550;
    font-size: 2.2rem;
  }

  .intro-text img {
    width: 320px;
    height: auto;
    padding: 20px;
  }

  .intro-text.left-text {
    text-align: center;
    animation:
      slide-in-mobile1 0.6s ease forwards 1.35s,
      fade-out 0.5s ease forwards 3.55s;
    /* added more delay */
    font-weight: 300;
    left: 50%;
    transform: translate(-50%, 100%);
    bottom: 50px;
  }
  .intro-text.right-text {
    top: 0px;
    position: absolute;
    text-align: center;
    animation:
      slide-in-mobile2 0.5s ease forwards 1.35s,
      fade-out 0.6s ease forwards 3.55s;
    left: 50%;
    transform: translate(-50%, -100%);
  }
  .intro-text.left-text img {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0); /* center horizontally */
    width: 320px;
    height: auto;
    padding: 20px;
  }

  @keyframes slide-in-mobile1 {
    from {
      transform: translate(-50%, 100%); /* push rightward */
      opacity: 0;
    }
    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }

  @keyframes slide-in-mobile2 {
    from {
      transform: translate(-50%, -100%); /* push leftward */
      opacity: 0;
    }
    to {
      transform: translate(-50%, 0%);
      opacity: 1;
    }
  }
}

body.lb-open {
  overflow: hidden;
  height: 100vh; /* prevent mobile bounce */
  touch-action: none; /* blocks touch scroll too */
}

.slide-photo {
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 2s;
}

.slide-photo.visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.slide-photo.start {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.heading {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
}
.sub-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 300;
}

@media (max-width: 600px) {
  .heading {
    font-size: 32px;
  }
  .sub-heading {
    font-size: 18px;
  }
  .scroll-reveal h2 span {
    font-size: 40px;
  }
  .scroll-reveal p span {
    font-size: 20px;
    padding: 15px;
  }
  .scroll-reveal {
    gap: 10px;
  }
  .project-bottom a {
    padding: 14px 20px;
    font-size: 17px;
  }
  .intro-text.left-text img {
    width: 270px;
    height: auto;
  }
}

@media (max-width: 420px) {
  .right-quote {
    font-size: 15.5px;
  }
}
@media (max-width: 405px) {
  .right-quote {
    font-size: 15px;
  }
}
@media (max-width: 390px) {
  .right-quote {
    font-size: 14.5px;
  }
}

/* Hidden above 900px */
.rewards-section {
  display: none;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .rewards-section {
    display: block;
  }

  /* 4 across */
  .rewards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 36px; /* row gap, column gap */
    justify-items: center;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 15px;
  }

  .rewards-grid img {
    width: 100%;
    max-width: 200px;
    height: 90px;
    object-fit: contain;
    display: block;
  }
}

/* 550px and below → 2 across */
@media (max-width: 550px) {
  .rewards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .rewards-grid img {
    height: 120px;
    width: auto;
  }
}
