/* Fonts */
body {
  font-family: "Poppins", sans-serif;
  background-color: rgba(251, 251, 248, 1);
  overflow-x: hidden;
}

/* Navbar */
.navbar-brand img {
  height: 35px;
}
.lang-switch-container {
  border: 1px solid #eee;
}

/* Headers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
.section-title {
  position: relative;
  display: inline-block;
}

/* Hero Section */
.hero-section {
  /* min-height: 80vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* margin-top: -4vh; */
}
.hero-map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}
.hero-image-wrapper {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  /* animation: rotation 10s linear infinite; REMOVED to prevent wide swinging */
}
@keyframes rotation-back {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotation {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.bg-text-overlay {
  position: absolute;
  margin-inline: auto;
  width: fit-content;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  letter-spacing: -5px;
}

.bg-text-overlay img {
  width: 70%;
}

.bg-text-overlay-section,
.bg-text-overlay-section-right {
  position: absolute;
  top: 0%;
  font-size: 15vw;
  font-weight: 900;
  color: rgba(220, 53, 69, 0.03); /* Slight red tint or grey */
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -5px;
}
.bg-text-overlay-section {
  left: -5%;
}
.bg-text-overlay-section-right {
  right: -5%;
}

/* Service Cards & Rotation - UPDATED PER FIGMA */
#gtk-container {
  padding: 20px 0;
}

.service-section {
  background-image: url("../images/gettoknowmaintenx_background.png") !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
  background: linear-gradient(
    0deg,
    #9da6b269 20%,
    #fdfbfb 100%,
    #9da6b269 20%
  ) !important;
}

.service-card {
  opacity: 1;
  /* transition: all 0.5s; */
  border: none;
  cursor: pointer;
  border-radius: 20px !important;
  height: 200px;
  position: relative;
  overflow: hidden;

  background: linear-gradient(0deg, #fdfbfb 50%, #9da6b269 100%);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Active State: Deep Red + Overlay effect */
.gtk-item:hover .service-card,
.gtk-item.clicked .service-card,
.service-card.active-card {
  /* The gradient based on the image: Dark Red to brighter Red top-left to bottom-rightish */
  background: linear-gradient(135deg, #8b0000 0%, #dc3545 100%);
  transform: scale(1.1);
  z-index: 100;
  box-shadow:
    0 20px 40px rgba(139, 0, 0, 0.4),
    /* Deep red shadow */ inset 0 2px 5px rgba(255, 255, 255, 0.2); /* Glossy top */
  color: white !important;
}

/* Typography updates */
.service-card p {
  font-size: 0.9rem;
  /* margin-top: auto; */
  margin-bottom: 20px;
  font-weight: 700;
  color: #444; /* Dark grey text for inactive */
}
.service-card.active-card p {
  color: white !important;
}

/* Image handling */
.service-card img {
  max-height: 80px; /* Larger icons */
  transition: all 0.3s;
  margin-top: 20px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.gtk-item {
  transition: all 0.5s ease;
  padding: 10px; /* Spacing for potential scale overlap */
}

/* Filter for active white icon */
.filter-white {
  filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Process Section & Bullet Box */
.bullet-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background-color: #dc3545; /* Default red */
  border-radius: 2px;
}
.bullet-box.bg-white {
  background-color: #fff;
}
.process-list li {
  font-size: 1vw;
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}
.process-list-right li {
  justify-content: flex-end;
}
.process-list-right .bullet-box {
  margin-right: 0;
  margin-left: 10px;
}

.img-wrapper-gradient {
  position: relative;
  border-radius: 20px;
  overflow: hidden; /* Ensure clean edges */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.img-wrapper-gradient::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}
.worker-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.img-wrapper-gradient:hover .worker-img {
  transform: scale(1.03);
}

/* Timeline Ribbon */
.ribbon-container {
  position: relative;
  height: 100px;
  margin-top: -30px; /* Pull up to connect with image section */
  z-index: 10;
}
.ribbon-svg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ribbon-path {
  stroke-dasharray: 0;
}

.path-icon {
  position: relative;
  text-align: center;
  width: 100px;
  transition: transform 0.3s;
}
.path-icon:hover {
  transform: translateY(-5px);
}
.path-icon .icon-circle {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 5px;
  z-index: 2;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gtk-item:hover p {
  /* Style handled in HTML now using BS utilities */
  color: #fff;
}
.path-icon.active .icon-circle {
  /* Style handled in HTML now using BS utilities */
  background: #fff;
  color: #dc3545;
}

section.process-section {
  padding-bottom: 0;
}

/* Stats Section */
.stats-section .bg-overlay-white {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 100%
  );
  z-index: 1;
}
.stat-card {
  border-radius: 20px;
  transition: 0.3s;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.scale-up {
  transform: scale(1.15);
  z-index: 3;
  border: none;
  box-shadow: 0 20px 40px rgba(220, 53, 69, 0.4);
}

/* Footer */
footer {
  position: relative;
}
.for-mobile {
  display: none;
}

.dive_list_div {
  margin-top: 5vw;
}

.dive_title {
  text-align: center;
  width: 60vw;
  font-size: 2vw;
}

.bg-grey {
  background-color: #403e40;
}

.comprehensive_service_image {
  position: relative;
  height: 28vw;
  width: 28vw;
}

.comprehensive_service_svg {
  position: absolute;
  width: 8vw;
  height: 8vw;
  transform-origin: 0 0;
}

.comprehensive_service_svg:nth-child(1) {
  transform: rotate(0deg);
}

.comprehensive_service_svg:nth-child(2) {
  transform: rotate(60deg);
  fill: #282525;
}

.comprehensive_service_svg:nth-child(3) {
  transform: rotate(120deg);
}

.comprehensive_service_svg:nth-child(4) {
  transform: rotate(180deg);
  fill: #282525;
}

.comprehensive_service_svg:nth-child(5) {
  transform: rotate(240deg);
}

.comprehensive_service_svg:nth-child(6) {
  transform: rotate(300deg);
  fill: #282525;
}

.business_services_div {
  margin-top: 140px;
}

.dive_into_line_parent_child {
  padding-right: 7vw !important;
}

.home_services_div {
  margin-top: 6vw;
}

.civil_services_div {
  margin-top: 7vw;
}

html[dir="ltr"] .dive_list {
  margin-right: 20vw;
}

@media (min-width: 1800px) {
  html[dir="ltr"] .dive_list {
    margin-right: 15vw;
  }

  .dive_list {
    margin-top: -1vw;
  }

  .dive_list li {
    font-size: 1rem;
  }

  .dive_title {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 1800px) {
  html[dir="ltr"] .dive_title {
    text-align: left;
  }
  html[dir="rtl"] .dive_title {
    text-align: right;
  }
  .dive_list {
    margin-top: -3vw;
  }
}

@media (min-width: 1500px) {
  body {
    width: 1500px;
    transform: scale(calc(100vw / 1500));
    transform-origin: top left;
    overflow-x: hidden;
  }
  html[dir="rtl"] body {
    transform-origin: top right !important;
  }

  .dive_into_line_parent {
    margin-top: 1vw !important;
  }
}

@media (max-width: 1400px) {
  .dive_into_line_parent {
    margin-top: -1vw !important;
  }
}

@media (max-width: 1300px) {
  .dive_into_line_parent {
    margin-top: -3vw !important;
    transform: scale(0.8);
  }
}

@media (max-width: 1200px) {
  .dive_list_div {
    margin-bottom: 0;
  }
  .dive_into_line_parent {
    margin-top: -2vw !important;
    transform: scale(0.9);
  }

  .home_services_div {
    margin-top: 7vw;
  }
}

@media (max-width: 992px) {
  .hero-section {
    margin-top: 0;
  }
  .hero-text {
    margin-top: 3vw;
    margin-bottom: 0 !important;
  }
  .dive_list_div {
    margin-bottom: 0;
    margin-top: 0;
  }

  .dive_list li {
    margin-bottom: 0.5vw !important;
  }

  .business_services_div {
    margin-top: 80px;
  }

  html[dir="ltr"] .dive_list {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .dive_section_first {
    min-height: auto !important;
  }
}

@media (min-width: 992px) {
  .dive_list {
    min-height: 380px; /* Ensure consistent height for all service lists */
  }
}

@media (min-width: 768px) {
  .gtk-item {
    padding-bottom: 5px !important;
  }
}

@media (max-width: 768px) {
  .bg-text-overlay,
  .bg-text-overlay-section,
  .bg-text-overlay-section-right {
    display: none; /* Cleaner mobile */
  }
  .scale-up {
    transform: none; /* consistent card size on mobile */
  }
  .ribbon-container {
    display: none !important;
  }
  .dive_section_first {
    background-image: url("../images/dive_section_first_responsive.png");
    background-position: top center;
  }

  .for-desktop {
    display: none;
  }

  .for-mobile {
    display: block;
  }

  .service-section {
    padding-bottom: 0 !important;
  }

  .dive_content {
    padding-top: 3vw !important;
    max-width: none !important;
  }

  .dive_title {
    font-size: 2rem;
    width: 100%;
  }

  .gtk-item {
    width: 80% !important;
  }

  .gtk-item div {
    padding-block: 20% !important;
  }

  .home_services_div {
    margin-top: 8vw;
  }
}

@media (max-width: 575px) {
  html[dir="ltr"] .dive_list {
    width: auto;
  }
}

@media (max-width: 460px) {
  .dive_content {
    max-width: none !important;
    padding-top: 5% !important;
  }

  .dive_title {
    font-size: 1.3rem;
    width: 100%;
  }

  .dive_list li {
    margin-bottom: 0 !important;
  }

  .process-list li {
    font-size: 1.5vw !important;
  }

  .business_services_div {
    margin-top: 13vw !important;
  }

  .civil_services_div {
    margin-top: 12vw !important;
  }
}

@media (max-width: 378px) {
  .dive_content {
    max-width: none !important;
  }

  .dive_title {
    font-size: 1rem;
    width: 100%;
  }

  .dive_list li {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 320px) {
  .dive_content {
    max-width: none !important;
  }

  .dive_title {
    font-size: 0.8rem;
    width: 100%;
  }

  .dive_list li {
    margin-bottom: 0 !important;
  }
}

/* Service Icons Animation and Responsive */
.service-icon-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
  width: 33.33%; /* Ensure equal spacing */
  display: flex; /* Explicitly ensure flex behavior inside */
  flex-direction: column;
  align-items: center;
}
.service-icon-item:hover {
  transform: translateY(-10px);
}

.service-icon-item .icon-circle {
  width: 60px !important; /* Reduced from 70px */
  height: 60px !important;
}

.service-icon-item img {
  width: 30px !important; /* Reduced from 35px */
}

@media (max-width: 992px) {
  .service-icon-item .icon-circle {
    width: 55px !important;
    height: 55px !important;
  }
}

@media (max-width: 768px) {
  .service-icon-item .icon-circle {
    width: 45px !important;
    height: 45px !important;
  }
  .service-icon-item img {
    width: 22px !important;
  }
  .service-icon-item h6 {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .dive_content {
    max-width: none !important;
  }

  .dive_title {
    font-size: 1.5rem;
    width: 100%;
  }

  .service-icon-item .icon-circle {
    width: 7vw !important;
    height: 7vw !important;
  }
}

@media (max-width: 500px) {
  .service-icon-item img {
    width: 20px !important;
  }
  .service-icon-item h6 {
    font-size: 0.6rem;
  }
}

/* Stats Section Tweaks */
.stat-card h6.text-secondary {
  color: #6c757d !important;
  font-weight: 700;
  font-size: 0.9rem;
}
.red-stat-card {
  background-color: #d5001c !important; /* Specific deep red */
}

/* Comprehensive Service Diagram - Flower/Pinwheel Layout */
.comprehensive-service-wrapper {
  position: relative;
  width: 550px;
  height: 550px;
  margin-inline: auto;
  animation: rotation 20s linear infinite;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background-color: #e61c22;
  border: 6px solid white;
  border-radius: 50%;
  z-index: 100;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 40px rgba(220, 53, 69, 0.3);
}

.center-circle h3 {
  font-size: 0.8rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

.center-circle span,
.petal-content {
  animation: rotation-back 20s linear infinite;
}

.petal-item {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 10;
}

.petal-bg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: ease-in-out 0.2s;
}

/* .petal-bg img:hover {
  transform: scale(1);
} */

.petal-bg:hover {
  transform: scale(1.2);
}

.petal-bg svg {
  width: 100% !important;
  height: 100% !important;
}

.petal-bg img {
  position: absolute;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.petal-bg .img-1 {
  top: -67%;
  left: 23%;
  width: 80px;
}

.petal-bg .img-2 {
  transform: rotate(60deg);
  top: -38%;
  left: 100%;
  width: 55px;
}

.petal-bg .img-3 {
  transform: rotate(-60deg);
  top: 37%;
  left: 92%;
  width: 55px;
}

.petal-bg .img-4 {
  top: 67%;
  left: 30%;
  width: 55px;
}

.petal-bg .img-5 {
  transform: rotate(60deg);
  top: 37%;
  right: 92%;
  width: 55px;
}

.petal-bg .img-6 {
  top: -39%;
  right: 95%;
  width: 55px;
}

.petal-content {
  padding: 20px;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.petal-content-1 {
  top: -15px;
}

.petal-content-2 {
  top: -15px;
  right: -20px;
}

.petal-content-3 {
  top: 5px;
  right: -15px;
}

.petal-content-4 {
  top: 15px;
  right: 0;
}

.petal-content-5 {
  top: 10px;
  right: 10px;
}

.petal-content-6 {
  top: -10px;
  left: -18px;
}

.petal-number {
  margin-bottom: 5px;
  position: absolute;
  font-weight: 700;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 50;
  animation: rotation-back 20s linear infinite;
}

.title-text {
  font-size: 0.5rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.desc-text {
  font-size: 0.5rem;
  line-height: 1.3;
  opacity: 0.85;
  font-weight: 400;
  padding: 0 20px;
}

.desc-text-1 {
  padding: 0 10px;
}

.desc-text-2 {
  padding: 0 1px;
}

.desc-text-4 {
  padding: 0 15px;
}

.desc-text-5 {
  padding: 0 15px;
}

.desc-text-6 {
  padding: 0 12px;
}

.item-1 {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}
.item-1 .petal-number {
  top: -8px;
  left: 45%;
  /* transform: translateX(-50%); */
  background-color: #252527;
  color: white;
}

.item-2 {
  top: 150px;
  right: 90px;
}
.item-2 .petal-number {
  top: 28px;
  right: -5px;
  background-color: #c5d5e0;
  color: #333;
}

.item-3 {
  bottom: 140px;
  right: 90px;
}
.item-3 .petal-number {
  bottom: 30px;
  right: 0;
  background-color: #252527;
  color: white;
}

.item-4 {
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
}
.item-4 .petal-number {
  bottom: -14px;
  left: 42%;
  transform: translateX(-50%);
  background-color: #c5d5e0;
  color: #333;
}

.item-5 {
  bottom: 140px;
  left: 90px;
}
.item-5 .petal-number {
  bottom: 20px;
  left: 2px;
  background-color: #252527;
  color: white;
}

.item-6 {
  top: 150px;
  left: 90px;
}
.item-6 .petal-number {
  top: 28px;
  left: -5px;
  background-color: #c5d5e0;
  color: #333;
}

/* Floating Tool Icons */
.floating-icon {
  position: absolute;
  z-index: 60;
  pointer-events: none;
}
.floating-icon i,
.floating-icon img {
  font-size: 1.8rem;
  color: #dc3545;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.icon-pos-1 {
  top: -25px;
  left: 50%;
  transform: translateX(-50%) rotate(-30deg);
}
.icon-pos-2 {
  top: 60px;
  right: -45px;
}
.icon-pos-3 {
  bottom: 60px;
  right: -45px;
}
.icon-pos-4 {
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
}
.icon-pos-5 {
  bottom: 60px;
  left: -45px;
}
.icon-pos-6 {
  top: 60px;
  left: -45px;
}

footer {
  padding-top: 5rem;
}

.display-6 {
  font-size: 2.8rem;
  /* text-align: left !important; */
}

/* Responsive */
@media (max-width: 768px) {
  .w-75 {
    width: 100% !important;
  }

  .display-6 {
    font-size: 2.5rem;
    /* text-align: left !important; */
  }
}

@media (max-width: 570px) {
  .comprehensive-service-wrapper {
    left: 50%;
    transform-origin: center center;
    margin-top: -120px;
    margin-bottom: -200px;
  }

  .hero-image-wrapper {
    transform: scale(0.55);
    margin-left: -275px;
  }

  footer img {
    width: 70%;
    height: auto;
    padding-top: 2rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    height: 25px !important;
  }

  .lang-toggle-switch {
    transform: scale(0.8);
  }
}

@media (max-width: 440px) {
  .hero-image-wrapper {
    transform: scale(0.45);
  }
}

@media (max-width: 380px) {
  .hero-image-wrapper {
    transform: scale(0.4);
    margin-left: -215px;
  }
}

@media (max-width: 320px) {
  .hero-image-wrapper {
    transform: scale(0.35);
    margin-left: -240px;
  }
}

/* Adjust content position for bottom/inverted petals to align with the wide part */
/* .item-3 .petal-content,
.item-4 .petal-content,
.item-5 .petal-content {
  top: 40px;
} */

/* Language Toggle Switch */
.lang-toggle-switch {
  width: 90px;
  height: 36px;
  background-color: #d5001c; /* Always Red Container */
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px;
  direction: ltr; /* Force LTR for the switch internal layout */
}

/* The sliding white pill */
.toggle-bg {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 42px; /* Roughly half */
  background-color: white;
  border-radius: 18px;
  transition: transform 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  z-index: 1;
  left: 3px;
  /* Default: English is Right. So we start at right? 
       Let's define: Left = Arabic, Right = English.
       If active (Arabic), slider is on Left. 
       If inactive (English), slider is on Right.
    */
  transform: translateX(42px);
}

.lang-toggle-switch.active .toggle-bg {
  /* Active means Arabic (Left) */
  transform: translateX(0);
}

.toggle-text {
  flex: 1;
  text-align: center;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.3s;
  user-select: none;
}

/* Inactive (English): Slider is Right (under Eng). Eng is Red. Ar is White. */
.lang-toggle-switch:not(.active) .text-en {
  color: #d5001c;
}
.lang-toggle-switch:not(.active) .text-ar {
  color: white;
}

/* Active (Arabic): Slider is Left (under Ar). Ar is Red. Eng is White. */
.lang-toggle-switch.active .text-ar {
  color: #d5001c;
}
.lang-toggle-switch.active .text-en {
  color: white;
}
/* CEO Tooltip Customization */
.custom-tooltip .tooltip-inner {
  max-width: 900px !important;
  width: 900px !important;
  font-size: 0.9rem !important;
  padding: 15px !important;
  text-align: left !important;
  background-color: #212529 !important; /* Standard dark tooltip bg */
  color: #fff !important;
  border-radius: 8px !important;
}

/* Ensure proper arrow color match */
.custom-tooltip .tooltip-arrow::before {
  border-bottom-color: #212529 !important; /* Match tooltip bg color */
  border-top-color: #212529 !important;
}

/* RTL Alignment for Tooltip */
html[dir="rtl"] .custom-tooltip .tooltip-inner {
  text-align: right !important;
}

/* =========================================
   Pop-up Card Styles
   ========================================= */
.gtk-item {
  position: relative;
  z-index: 1;
  /* Maintain layout stability when child becomes absolute */
  min-height: 280px;
}

/* Ensure no "flying" transition on position/dimensions, only visual properties if needed */
.service-card {
  transition: opacity 0.3s ease;
  /* transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), */
  /* box-shadow 0.3s ease !important; */
}

/* Default State: Content hidden */
.hover-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  color: #ffff;
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
  width: 100%;
}

/* Hover State: Bring to front */
.gtk-item:hover,
.gtk-item.clicked {
  z-index: 9999;
}

/* Featured Card Initial State */
.featured-card {
  transform: scale(1.1);
  height: 95% !important;
  z-index: 5;
}

/* Hover State: Expand Card */
.gtk-item:hover .service-card,
.gtk-item.clicked .service-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1) !important;

  /* Dimensions */
  width: 650px !important;
  height: auto !important;
  min-height: 350px;
  max-height: 500px; /* Limit height */

  /* Scroll Settings */
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */

  /* Appearance */
  border-radius: 15px !important;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3) !important;
  padding: 30px !important;
  background-color: #fff !important;

  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: center;
}

/* Webkit Scrollbar Styling */
.gtk-item:hover .service-card::-webkit-scrollbar,
.gtk-item.clicked .service-card::-webkit-scrollbar {
  width: 8px;
}
.gtk-item:hover .service-card::-webkit-scrollbar-track,
.gtk-item.clicked .service-card::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.gtk-item:hover .service-card::-webkit-scrollbar-thumb,
.gtk-item.clicked .service-card::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.gtk-item:hover .service-card::-webkit-scrollbar-thumb:hover,
.gtk-item.clicked .service-card::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Hover State: Adjust Icon */
.gtk-item:hover .service-card img,
.gtk-item.clicked .service-card img {
  height: 50px !important;
  width: auto !important;
  margin-bottom: 15px !important;
  flex-shrink: 0; /* Prevent icon from squishing */
}

/* Hover State: Show Content */
.gtk-item:hover .hover-content,
.gtk-item.clicked .hover-content {
  display: block;
  opacity: 1;
}

/* RTL Support */
html[dir="rtl"] .hover-content {
  text-align: right;
}

/* Edge Item Alignment (Desktop) - Prevent overflow */
@media (min-width: 769px) {
  /* LTR: First item anchors left, grows right */
  html[dir="ltr"] .gtk-item:first-child:hover .service-card,
  html[dir="ltr"] .gtk-item:first-child.clicked .service-card {
    left: 0 !important;
    right: auto;
    transform: translateY(-50%) scale(1) !important;
  }

  /* LTR: Last item anchors right, grows left */
  html[dir="ltr"] .gtk-item:last-child:hover .service-card,
  html[dir="ltr"] .gtk-item:last-child.clicked .service-card {
    left: auto;
    right: 0 !important;
    transform: translateY(-50%) scale(1) !important;
  }

  /* RTL: First item (Visually Right) anchors right, grows left */
  html[dir="rtl"] .gtk-item:first-child:hover .service-card,
  html[dir="rtl"] .gtk-item:first-child.clicked .service-card {
    left: auto;
    right: 0 !important;
    transform: translateY(-50%) scale(1) !important;
  }

  /* RTL: Last item (Visually Left) anchors left, grows right */
  html[dir="rtl"] .gtk-item:last-child:hover .service-card,
  html[dir="rtl"] .gtk-item:last-child.clicked .service-card {
    left: 0 !important;
    right: auto;
    transform: translateY(-50%) scale(1) !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Reset transform for featured card on mobile so fixed positioning works correctly */
  .featured-card {
    transform: none !important;
    height: auto !important;
  }

  .gtk-item:hover .service-card,
  .gtk-item.clicked .service-card {
    width: 100% !important;
    position: unset !important;
    top: 50% !important;
    left: 50% !important;
    transform: unset !important; /* Center properly */
    z-index: 10000 !important;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0 !important; /* Reset any margins */
  }
}

.text-secondary {
  color: #070707 !important;
}

/* Mobile App Mockup Animation */
@keyframes up-down-slow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.app-mockup-img {
  animation: up-down-slow 4s ease-in-out infinite;
}

/* Coming Soon Letter Animation */
@keyframes letterWave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animated-text {
  display: inline-block;
}

.animated-text .letter {
  display: inline-block;
  animation: letterWave 1.5s ease-in-out infinite;
}

.animated-text .letter.space {
  width: 0.3em;
}
