/* Custom Styles for The Brand Weave Landing Page */

:root {
  --primary: #fbdf06;
  --primary-gradient: linear-gradient(120deg, #d4214c 0%, #333333 100%);
  --shadow: 0 4px 24px rgba(255, 54, 54, 0.15);
}

/* Add gap between service cards */
.row-2 .col-12 {
  margin-bottom: 2rem;
}

.row-2 .col-12:last-child {
  margin-bottom: 0;
}

.btn-primary,
.btn-primary:focus {
  background: var(--primary-gradient);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: #4b28c7;
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.18);
  transform: translateY(-2px) scale(1.04);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(98, 54, 255, 0.12);
}

.service-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 18em;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 0.7rem !important;
  box-shadow: 0 2px 16px rgba(98, 54, 255, 0.06);
  padding: 2rem 2.5rem;
  transition: background 5s cubic-bezier(0.4, 0, 0.2, 1),
    color 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.service-card.active {
  box-shadow: 0 12px 40px rgba(98, 54, 255, 0.15);
  background: #d4214c;
  color: rgb(218, 115, 139);
}
.service-card.active .service-title,
.service-card.active .service-subtitle {
  color: #fff !important;
}
.service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  z-index: 2;
  transition: color 0.4s;
  margin-left: 3em;
}
.service-card-image {
  width: 38%;
  min-width: 260px;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  opacity: 1;
  filter: grayscale(100%);
  transition: filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 4;
}
.service-card.active .service-card-image img {
  filter: none;
}
.service-card-arrow-overlay {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2.5px solid #fff;
  background: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: none;
  transition: opacity 0.4s, border-color 0.4s;
}
.service-card.active .service-card-arrow-overlay {
  display: flex;
  opacity: 1;
}
.service-card-arrow-overlay i {
  font-size: 2.2rem;
  color: #fff;
  font-weight: bold;
  line-height: 1;
  stroke-width: 3.5;
}
.service-card .service-title,
.service-card .service-subtitle {
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card .service-icon-circle {
  transition: background 0.4s;
}
.service-card .service-icon-circle {
  background: #fbdf06;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #122c24;
  font-size: 1.2rem;
}
.service-card .service-icon-circle .bi-star-fill {
  font-size: 1.2rem;
  color: #be193db7;
}
.service-card h3 {
  color: #122c24;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.service-card p {
  color: #6c757d;
  font-size: 1.15rem;
  margin-bottom: 0;
  margin-left: 0.5em;
}
.service-card .bi-arrow-right {
  font-size: 2rem;
  color: #22332e;
  margin-right: 1.5em;
}
@media (max-width: 991.98px) {
  .service-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
    min-height: 14em;
  }
  .service-card-image {
    position: static !important;
    width: 100%;
    min-width: 0;
    height: 180px;
    opacity: 1 !important;
    margin-top: 1.5rem;
    border-radius: 0 0 1.25rem 1.25rem;
    pointer-events: auto;
  }
  .service-card-image img {
    border-radius: 0 0 1.25rem 1.25rem;
  }
  .service-card-arrow-overlay {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .service-card .ms-auto {
    margin-left: 0 !important;
    margin-top: 1.5rem;
    align-self: flex-end;
  }
  .service-card h3,
  .service-card p {
    margin-left: 0.2em;
  }
  .service-card .bi-arrow-right {
    margin-right: 0.5em;
  }
}

.portfolio-img {
  transition: box-shadow 0.2s, transform 0.2s;
}
.portfolio-img:hover {
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.15);
  transform: scale(1.04);
}

.social-icon {
  filter: drop-shadow(0 2px 8px rgba(98, 54, 255, 0.1));
  transition: transform 0.2s, filter 0.2s;
}
.social-icon:hover {
  transform: scale(1.15) rotate(-8deg);
  filter: drop-shadow(0 4px 16px rgba(98, 54, 255, 0.18));
}

input,
textarea {
  border-radius: 0.75rem !important;
}

@media (max-width: 767.98px) {
  .hero-section {
    border-radius: 0 0 1rem 1rem;
    padding-bottom: 2rem;
  }
  .about-img {
    margin-bottom: 2rem;
  }
  /* Modern mobile layout for service cards */
  .service-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.2rem 0.7rem !important;
    min-height: unset;
    border-radius: 1.2rem !important;
    box-shadow: 0 4px 16px rgba(98, 54, 255, 0.1);
    margin-bottom: 1.5rem;
  }
  .service-card-image {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 180px !important;
    margin-bottom: 1rem;
    border-radius: 1.2rem 1.2rem 0 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem 1.2rem 0 0 !important;
  }
  .service-card-content {
    margin-left: 0 !important;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.2rem;
  }
  .service-title,
  .service-subtitle {
    text-align: center !important;
    margin-left: 0 !important;
  }
  .service-card-arrow {
    display: none !important;
  }
  .service-card-arrow-overlay {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .row-2 .col-12 {
    margin-bottom: 1.5rem !important;
  }
}

/* Navbar link styles with your requested underline animation (CORRECTED SELECTOR) */
.tbw-navbar .nav-link {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #181c24 !important;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.tbw-navbar .nav-link:hover::after,
.tbw-navbar .nav-link:focus::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Dropdown styles remain as before for smooth animation and modern look */
.tbw-navbar .dropdown-menu {
  min-width: 180px;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.1), 0 1.5px 8px rgba(0, 0, 0, 0.04);
  background: #23272f;
  padding: 0.5rem 0;
  border: none;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  pointer-events: none;
  visibility: hidden;
}
.tbw-navbar .dropdown-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.tbw-navbar .dropdown-item {
  color: #fff;
  font-family: "Outfit", sans-serif;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  margin: 0.15rem 0.5rem;
  transition: color 0.25s ease-out;
  position: relative;
  background-color: transparent !important;
}

.tbw-navbar .dropdown-item::after {
  content: "";
  position: absolute;
  width: calc(100% - 3rem);
  transform: scaleX(0);
  height: 2px;
  bottom: 0.5rem;
  left: 1.5rem;
  background-color: #ecba99;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.tbw-navbar .dropdown-item:hover,
.tbw-navbar .dropdown-item:focus {
  color: #ecba99;
  background: transparent;
}

.tbw-navbar .dropdown-item:hover::after,
.tbw-navbar .dropdown-item:focus::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.tbw-navbar .dropdown-toggle::after {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5em;
  vertical-align: middle;
}
.tbw-navbar .show > .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Custom Carousel Styles */
.hero-section .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  border: 0;
  margin: 0 8px;
}

.hero-section .carousel-indicators .active {
  background-color: #fff;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* Hide carousel navigation dots and arrows for hero section */
#heroCarousel .carousel-indicators {
  display: none !important;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  display: none !important;
}

/* Smooth transitions for hero carousel text */
#heroCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
  height: 100%;
}

#heroCarousel .carousel-inner {
  position: relative;
}

#heroCarousel .carousel-item {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: none;
  z-index: 1;
}

#heroCarousel .carousel-item.active {
  position: relative;
  display: block;
  z-index: 2;
}

#heroCarousel .carousel-item h1,
#heroCarousel .carousel-item p {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive hero carousel */
@media (max-width: 1199.98px) {
  #heroCarousel .carousel-item h1 {
    font-size: 3rem !important;
  }
  #heroCarousel .carousel-item p {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 767.98px) {
  #heroCarousel .carousel-item h1 {
    font-size: 2.5rem !important;
  }
  #heroCarousel .carousel-item p {
    font-size: 1.1rem !important;
  }
  .hero-section .col-lg-6 {
    min-height: 50vh !important;
  }
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 0;
}
.hero-section .container {
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-section .row {
  height: 100%;
  align-items: stretch !important;
}
.hero-section .col-lg-6 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70vh;
  height: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hero-section .carousel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-section .carousel-inner {
  position: relative;
}
.hero-section .carousel-item {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: none;
  z-index: 1;
}
.hero-section .carousel-item.active {
  position: relative;
  display: block;
  z-index: 2;
}
.hero-section h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-family: "Bebas Neue", sans-serif;
}
.hero-section .lead {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #e0e0ef;
}
.hero-section .mt-auto.pt-4 {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  justify-content: flex-end;
}
.hero-section .mt-auto.pt-4 a {
  font-size: 1.05rem;
  padding: 0.7rem 2.2rem;
  border-radius: 2em;
}
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 60vh;
    padding-bottom: 2rem;
  }
  .hero-section .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-section .col-lg-6 {
    min-height: 40vh;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .hero-section h1 {
    font-size: 2.2rem !important;
  }
  .hero-section .lead {
    font-size: 1rem !important;
  }
  .hero-section .mt-auto.pt-4 {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    justify-content: flex-start;
  }
  .hero-section .mt-auto.pt-4 a {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 0;
  }
  .hero-fixed-buttons {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh !important;
    padding: 0;
  }
  .hero-section .col-lg-6 {
    min-height: 80vh;
    height: 100%;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .hero-section h1 {
    font-size: 4rem !important;
  }
  .hero-section .lead {
    font-size: 1.3rem !important;
  }
  .hero-section .mt-auto.pt-4 {
    margin-top: auto !important;
    padding-top: 1rem !important;
    align-self: flex-end;
    width: auto;
    justify-content: flex-end;
  }
  .hero-section .mt-auto.pt-4 a {
    font-size: 1rem !important;
    padding: 0.75rem 2.2rem !important;
    border-radius: 2em !important;
    width: auto;
  }
}
.hero-section .col-lg-6.text-white {
  color: #fff;
}
.hero-section .hero-images-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  margin-top: 0;
  margin-left: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(24, 24, 24, 0.85) 60%,
      rgba(24, 24, 24, 0.3) 100%
    ),
    url("./assets/bg-1.jpg") center center/cover no-repeat;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Optional: add blur for extra style */
  /* filter: blur(1px); */
}

.hero-section h1,
.hero-section p {
  color: #fff;
  /* color:#d4214c ; */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero-section .btn-outline-light {
  border-color: #fbdf06 !important;
  color: #fbdf06 !important;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.hero-section .btn-outline-light:hover {
  background: #fbdf06 !important;
  color: #181818 !important;
}
.hero-section .btn-warning {
  background: #fbdf06 !important;
  color: #181818 !important;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.hero-section .btn-warning:hover {
  background: #fff3e0 !important;
  color: #181818 !important;
}
.hero-img-wrapper img {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-radius: 0.2rem;
}

.tbw-navbar {
  background: #d4214c !important;
  box-shadow: 0 4px 24px rgba(255, 54, 54, 0.15);
  transition: background 0.3s, box-shadow 0.3s, border-radius 0.3s,
    margin-top 0.3s;
  font-family: "Bebas Neue", sans-serif !important;
}

.tbw-navbar.scrolled {
  position: sticky;
  left: 9.5%;
  top: 2%;
  background: rgba(
    240,
    44,
    70,
    0.65
  ) !important; /* semi-transparent for glass effect */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(255, 54, 54, 0.15);
  border-radius: 2em;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  width: 80%;
  margin: 1.5em auto 0 auto;
  padding: 0.5em 1em;
}

.tbw-navbar .nav-link,
.tbw-navbar .navbar-brand {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: #fff !important;
}

.tbw-navbar.scrolled .nav-link,
.tbw-navbar.scrolled .navbar-brand,
.tbw-navbar.scrolled .tbw-search-icon {
  color: #fff !important;
}

.tbw-navbar.scrolled .btn-tbw-green {
  color: #fff !important;
  margin-left: 2em;
  transition: background 0.3s, color 0.3s, margin 0.3s;
}

/* Hero Images Container */
.hero-images-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.5rem;
  margin-top: -6em;
  margin-left: -2em;
}

.hero-fixed-buttons {
  position: absolute;
  left: 1rem;
  bottom: 2.5rem;
  transform: none;
  z-index: 1002;
  display: flex;
  gap: 1rem;
}

/* Hide original static button container on large screens */
@media (min-width: 992px) {
  .hero-section .mt-auto.pt-4 {
    display: none !important;
  }
}

/* Hero image right-slide animation */
.hero-image {
  position: relative;
  width: 350px;
  height: 450px;
  margin: 0 auto;
  opacity: 0;
  transition: none;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 0.2rem;
  overflow: hidden;
  display: none;
  transform: translateX(60px);
}

.hero-image-circle {
  position: absolute;
  left: 330px;
  top: 400px;
  width: 250px;
  height: 250px;
  background: var(
    --primary-gradient,
    linear-gradient(120deg, 0%, #9b97a8 100%)
  );
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(98, 54, 255, 0.18);
  z-index: -1;
  filter: blur(70px);
}

.hero-image.active {
  opacity: 1;
  display: block;
  animation: heroImageSlideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

@keyframes heroImageSlideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.2rem;
  display: block;
}

@media (max-width: 991.98px) {
  .hero-image {
    width: 90vw;
    height: 90vw;
    max-width: 450px;
    max-height: 450px;
  }
}

/* Infinite Scrolling Marquee */
.client-logos-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.client-logos {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
  gap: 6rem; /* Adjust gap between logos */
}

.client-logos-wrapper:hover .client-logos {
  animation-play-state: paused;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.client-logo {
  max-width: 180px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* --- HOMEPAGE-SPECIFIC STYLES FROM index.php --- */
body {
  font-family: "Figtree", sans-serif;
  background: #f8f9fa;
}
.navbar {
  box-shadow: 0 2px 16px rgba(255, 54, 54, 0.15);
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}
.btn-primary,
.btn-primary:focus {
  background: #fff;
  border: none;
  color: #d13257;
}
.btn-primary:hover {
  background: #850523;
  box-shadow: 0 4px 16px rgba(255, 54, 54, 0.15);
  transform: translateY(-2px);
}
.hero-img {
  max-width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.service-card {
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px rgba(98, 54, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}
.about-img {
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.1);
}
.portfolio-img {
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(98, 54, 255, 0.08);
  transition: transform 0.2s;
}
.portfolio-img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.15);
}
.testimonial-card {
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px rgba(98, 54, 255, 0.08);
}
.contact-section {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 4px 32px rgba(98, 54, 255, 0.1);
}
.form-control:focus {
  border-color: #6236ff;
  box-shadow: 0 0 0 0.2rem rgba(98, 54, 255, 0.1);
}
.footer {
  background: #1a1336;
  color: #fff;
  border-radius: 2rem 2rem 0 0;
}
.footer a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer a:hover {
  opacity: 1;
  color: #a084ff;
}
.social-icon {
  width: 36px;
  height: 36px;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}
.social-icon:hover {
  transform: scale(1.15);
}
@media (max-width: 767.98px) {
  .hero-section {
    border-radius: 0 0 1rem 1rem;
  }
  .about-img {
    margin-bottom: 2rem;
  }
}
.tbw-navbar {
  background: #fff;
  box-shadow: 0 4px 24px rgba(98, 54, 255, 0.1);
  transition: background 0.3s, box-shadow 0.3s, border-radius 0.3s,
    margin-top 0.3s;
  font-family: "Bebas Neue", sans-serif !important;
}
.tbw-navbar .nav-link,
.tbw-navbar .navbar-brand {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: #fff !important;
}
.hero-section h1.display-1 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 90px !important;
  letter-spacing: 2px;
}
.hero-section p.lead {
  font-family: "Roboto", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #cfcfcf !important;
}
.tbw-navbar.scrolled {
  position: sticky;
  left: 9.5%;
  top: 2%;
  background: rgba(77, 75, 75, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.18);
  border-radius: 2em;
  width: 80%;
  margin: 1.5em auto 0 auto;
  padding: 0.5em 1em;
}
.tbw-navbar.scrolled .nav-link,
.tbw-navbar.scrolled .navbar-brand,
.tbw-navbar.scrolled .tbw-search-icon {
  color: #fff !important;
}
.tbw-navbar.scrolled .btn-tbw-green {
  color: #fff !important;
  margin-left: 2em;
  transition: background 0.3s, color 0.3s, margin 0.3s;
}

.service-card .d-flex.flex-column {
  align-items: flex-start !important;
  margin-left: 1em;
}
.service-icon-circle {
  margin-left: 0;
}
.service-title {
  margin-left: 0.2em;
  text-align: left;
}
.service-subtitle {
  margin-left: 0.2em;
  text-align: left;
  max-width: 22em;
  word-break: break-word;
  line-height: 1.4;
  font-size: 1.08rem;
}
.service-arrow {
  font-size: 2.5rem;
  color: #122c24;
  font-weight: bold;
  stroke-width: 2.5;
  margin-right: 2em;
}

.service-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-left: auto;
  margin-right: 2em;
  background: none;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(60px);
  padding: 0;
}
.service-card.active .service-card-arrow {
  transform: translateX(0);
}
.service-card-arrow i {
  font-size: 2rem;
  color: #22332e;
  font-weight: bold;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.service-card.show-image .service-card-image {
  opacity: 1;
  pointer-events: auto;
}

.work-together-section {
  background-color: #d4214c;
  color: #fff;
  border-radius: 32px;
  padding: 120px 60px;
  margin: 40px auto;
  min-height: 60vh;
  max-width: 90%;
}

.blog-modern-card {
  background: #fff;
  box-shadow: 0 4px 24px rgba(18, 44, 36, 0.07);
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 250px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-modern-card:hover {
  box-shadow: 0 8px 32px rgba(18, 44, 36, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.blog-modern-card img {
  border-radius: 0 1.5rem 1.5rem 0;
  transition: transform 0.2s;
}
.blog-modern-card:hover img {
  transform: scale(1.04);
}

/* Team image grayscale effect */
.team-image {
  filter: grayscale(100%);
  transition: filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-image:hover {
  filter: none;
}

/* Testimonials Section Continuous Upward Animation */
.testimonials-container {
  position: relative;
  height: 250px; /* Height for one row of cards */
  overflow: hidden;
  margin-top: 2rem;
}

/* Add gradient masks for smooth entry/exit blur effect */
.testimonials-container::before,
.testimonials-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 10;
  pointer-events: none;
}

.testimonials-container::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(248, 249, 250, 1) 0%,
    rgba(248, 249, 250, 0.8) 50%,
    rgba(248, 249, 250, 0) 100%
  );
}

.testimonials-container::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(248, 249, 250, 1) 0%,
    rgba(248, 249, 250, 0.8) 50%,
    rgba(248, 249, 250, 0) 100%
  );
}

.testimonials-track {
  display: flex;
  flex-direction: column;
  animation: scrollTestimonials 20s linear infinite;
  position: relative;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonials-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  transition: filter 0.3s ease;
}

.testimonial-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(18, 44, 36, 0.07);
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  max-width: 350px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(18, 44, 36, 0.12);
  transform: translateY(-4px);
}

.testimonial-card img {
  border: 4px solid #f8f9fa;
  box-shadow: 0 2px 12px rgba(18, 44, 36, 0.08);
  width: 64px;
  height: 64px;
  object-fit: cover;
  margin: 0 auto 1rem auto;
}

.testimonial-card p {
  font-size: 1rem;
  color: #22332e;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.testimonial-card strong {
  color: #122c24;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-card .text-muted {
  font-size: 0.9rem;
  color: #6c757d;
}

@keyframes scrollTestimonials {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .testimonials-container {
    height: 220px;
  }
  .testimonials-row {
    gap: 1rem;
  }
  .testimonial-card {
    padding: 1.25rem;
    min-height: 180px;
  }
}

@media (max-width: 767.98px) {
  .testimonials-container {
    height: 200px;
  }
  .testimonials-row {
    flex-direction: column;
    gap: 1rem;
  }
  .testimonial-card {
    padding: 1rem;
    min-height: 160px;
    max-width: none;
  }
  .testimonial-card p {
    font-size: 0.95rem;
  }
}

/* Case Studies Section */
.case-studies-section {
  background: #d13257;
  border-radius: 0;
  padding-top: 7rem;
  padding-bottom: 7rem;
  margin-bottom: 3rem;
}
.case-studies-section h2 {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.case-studies-section p {
  padding-bottom: 2.5rem;
}
.all-case-study-btn {
  margin-top: 3.5rem !important;
  margin-bottom: 2.5rem !important;
  padding-left: 3.5rem !important;
  padding-right: 3.5rem !important;
  padding-top: 1.2rem !important;
  padding-bottom: 1.2rem !important;
  font-size: 1.25rem !important;
}
#caseStudiesGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}
#caseStudiesGrid .col {
  display: flex;
  height: 100%;
}
.case-study-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(18, 44, 36, 0.1);
  overflow: hidden;
  min-height: 200px;
  height: auto;
  width: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  margin: 0 auto;
  max-width: 700px;
  position: relative;
}
.case-study-card:hover {
  box-shadow: 0 8px 32px rgba(18, 44, 36, 0.18);
  transform: translateY(-6px) scale(1.02);
}
.case-study-image {
  width: 170px;
  height: 160px;
  object-fit: cover;
  border-radius: 0 0 2.5rem 0;
  min-height: 120px;
  max-width: 40%;
  box-shadow: 0 2px 16px rgba(18, 44, 36, 0.08);
}
.case-study-content {
  flex: 1 1 0;
  padding: 1.2rem 1.2rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  height: 100%;
}
.case-study-title {
  font-size: 2rem;
  font-weight: 700;
  color: #22332e;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.case-study-desc {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  flex: 1;
}
.case-study-btn {
  align-self: flex-start;
  background: #fbdf06;
  color: #850523;
  border: none;
  border-radius: 2em;
  padding: 0.35em 1.1em;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4em;
  box-shadow: 0 2px 8px rgba(72, 58, 160, 0.08);
  transition: color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 0.5rem;
}
.case-study-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2em;
}
.case-study-btn:hover {
  color: #d4214c;
  background: #fff;
  box-shadow: 0 4px 16px rgba(72, 58, 160, 0.13);
  transform: translateY(-2px);
}
.case-study-btn:hover::before {
  transform: scaleX(1);
}
.case-study-btn i {
  font-size: 1.1em;
  transition: transform 0.2s;
}
.case-study-btn:hover i {
  transform: translateX(4px);
}
@media (max-width: 991.98px) {
  .case-study-card {
    flex-direction: column;
    max-width: 100%;
    min-height: 0;
    height: auto;
  }
  .case-study-image {
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 2.5rem 0;
    min-height: 100px;
    height: 140px;
  }
  .case-study-content {
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    height: auto;
  }
}

.about-modern-section {
  background: #fdfdff;
  padding: 6rem 0;
  overflow: hidden;
}
.about-modern-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-modern-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(34, 51, 46, 0.1);
}
.about-modern-img-bg-shape {
  position: absolute;
  z-index: 1;
  width: 90%;
  height: 90%;
  background: linear-gradient(135deg, #f0db3d, #fcfcf7);
  border-radius: 3rem 1rem 4rem 2rem;
  transform: rotate(-15deg) scale(1.1);
  opacity: 0.8;
}
.about-modern-content {
  padding-left: 1.5rem;
}
.about-modern-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #122c24;
}
.about-modern-highlight {
  color: #d4214c;
}
.about-modern-desc {
  font-size: 1.15rem;
  color: #6f7b80;
  line-height: 1.7;
}
.about-modern-values {
  font-size: 1.1rem;
  font-weight: 500;
  color: #22332e;
}
.about-modern-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background-color: #f0f0f8;
  color: #d4214c;
  border-radius: 50%;
  font-size: 1.3rem;
  margin-right: 1rem;
  transition: background-color 0.2s, color 0.2s;
}
.about-modern-values li {
  padding: 0.5rem;
  border-radius: 5rem;
  transition: background-color 0.2s;
  cursor: default;
}
.about-modern-values li:hover {
  background-color: #f7f8fc;
}
.about-modern-values li:hover .about-modern-icon {
  background-color: #fbdf06;
  color: #122c24;
}
.btn-tbw-green-modern {
  background: #fbdf06;
  color: #d4214c;
  border: none;
  border-radius: 2rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(18, 44, 36, 0.1);
}
.btn-tbw-green-modern:hover {
  background: #22332e;
  box-shadow: 0 6px 20px rgba(18, 44, 36, 0.15);
  transform: translateY(-2px);
  color: #fbdf06;
}
@media (max-width: 991.98px) {
  .about-modern-content {
    padding-left: 0;
  }
  .about-modern-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  /* Modern mobile layout for case studies */
  .case-studies-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-radius: 0;
    margin-bottom: 2rem;
  }
  .case-studies-section h2 {
    font-size: 2.2rem !important;
    padding-top: 1.2rem;
    padding-bottom: 0.7rem;
    text-align: center;
  }
  .case-studies-section p {
    font-size: 1rem !important;
    padding-bottom: 1.2rem;
    text-align: center;
  }
  #caseStudiesGrid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    margin-bottom: 1.2rem;
  }
  #caseStudiesGrid .col {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 1.2rem !important;
    display: flex;
    justify-content: center;
  }
  .case-study-card {
    flex-direction: column !important;
    max-width: 100% !important;
    min-height: 0;
    height: auto;
    border-radius: 1.2rem !important;
    box-shadow: 0 4px 16px rgba(18, 44, 36, 0.13);
    margin: 0 auto;
    overflow: visible;
    position: relative;
    padding-top: 2.5rem;
  }
  .case-study-image {
    position: absolute;
    top: -40px;
    left: 24px;
    width: 100px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(18, 44, 36, 0.1);
    border: 4px solid #fff;
    background: #fff;
    z-index: 2;
  }
  .case-study-content {
    padding: 1.5rem 0.7rem 0.7rem 0.7rem !important;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .case-study-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.4rem;
    margin-top: 0.5rem;
  }
  .case-study-desc {
    font-size: 1rem !important;
    margin-bottom: 1.2rem;
  }
  .case-study-btn {
    align-self: center !important;
    font-size: 1rem !important;
    padding: 0.5em 1.5em !important;
    border-radius: 2em !important;
    margin-top: 0.5rem;
  }
  .all-case-study-btn {
    width: 100%;
    font-size: 1.1rem !important;
    padding: 1rem 0 !important;
    border-radius: 2em !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 399.98px) {
  .work-together-section .badge {
    font-size: 0.82rem !important;
    padding: 0.5rem 0.5rem !important;
    white-space: normal !important;
    text-align: center !important;
    display: inline-block;
    line-height: 1.2;
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh !important;
    padding: 2rem 0;
  }

  .hero-section .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
  }

  .hero-section .carousel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-section .carousel-inner {
    height: auto;
  }

  .hero-section .carousel-item {
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
  }

  .hero-section h1 {
    font-size: 3.5rem !important;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  .hero-section .lead {
    font-size: 1.3rem !important;
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .hero-section .mt-auto.pt-4 {
    margin-top: 2rem !important;
    padding-top: 1rem !important;
  }

  .hero-section .hero-fixed-buttons {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10;
  }
}

@media (min-width: 1400px) {
  .hero-section h1 {
    font-size: 4rem !important;
  }

  .hero-section .lead {
    font-size: 1.4rem !important;
  }
}

/* Why Us Section: Make image match content height */
.why-us-row {
  align-items: stretch !important;
  display: flex;
}

.why-us-image-col {
  display: flex;
  align-items: stretch;
}

.why-us-image-col img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(18, 44, 36, 0.08);
}
@media (max-width: 991.98px) {
  .why-us-row {
    flex-direction: column;
  }
  .why-us-image-col img {
    height: 280px;
    min-height: 180px;
    max-height: 350px;
  }
}

#ai-agent-call-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(18, 44, 36, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s,
    transform 0.18s;
  border: 2px solid #7d60e6;
}
#ai-agent-call-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(18, 44, 36, 0.25);
  border-color: #ecba99;
  transform: scale(1.12);
}
#ai-agent-call-btn i {
  font-size: 1.2rem;
  color: #ecba99;
  transition: color 0.2s;
}
#ai-agent-call-btn:hover i {
  color: #7d60e6;
}

.btn-tbw-green {
  color: #fff !important;
}

.btn-circle {
  width: 64px;
  height: 41px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  min-width: 0 !important;
  font-size: 1.35rem;
  border-width: 2px;
}
.footer-socials a:hover {
  transform: scale(1.2);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.2s;
}
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 0.5rem;
}
.social-links a {
  color: #122c24;
  font-size: 1.7rem;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}
.social-links a:hover {
  color: #d4214c;
  opacity: 1;
  transform: scale(1.18);
}
