/* ============================================================
   HOME PAGE – Page-Specific Styles
   ============================================================ */

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.text-stroke {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
  color: transparent;
}

/* --- SERVICES (Backdrop Effect) --- */
.service-card {
  position: relative;
  display: block;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.5s ease;
}

.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
  opacity: 0.4;
  filter: grayscale(100%);
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-card:hover .service-bg {
  transform: scale(1.1);
  opacity: 0.8;
  filter: grayscale(0%);
}

.service-card:hover {
  border-color: var(--primary-color);
}

/* --- SUCCESS STORIES (4-Col Card) --- */
.story-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.story-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  filter: brightness(0.7);
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  z-index: 2;
}

.story-card:hover .story-img {
  transform: scale(1.1);
  filter: brightness(1);
}

/* --- CLIENT LOGO GRID --- */
.client-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.client-logo-box:hover {
  background: rgba(255, 255, 255, 0.05);
}

.client-logo-box i {
  transition: all 0.3s;
}

.client-logo-box:hover i {
  opacity: 1 !important;
  color: white;
  transform: scale(1.1);
}

/* --- BLOGS --- */
.blog-carousel .owl-item .item {
  display: flex;
  height: 100%;
}

.blog-card-new {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  border-bottom: 1px solid transparent;
  padding-bottom: 20px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-decoration: none;
}

.blog-card-cta-link {
  position: relative;
  z-index: 4;
}

.blog-card-new:hover {
  transform: translateY(-5px);
}

.blog-content-new {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-content-new>a {
  margin-top: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card-new:hover .blog-content-new>a {
  opacity: 1;
}

.blog-img-new {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.blog-card-new:hover .blog-img-new {
  transform: scale(1.05);
}

.hover-white:hover {
  color: white !important;
}

/* --- CONTACT FORM --- */
.contact-section {
  background: #000000;
}

.glass-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.form-control-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
}

.form-control-dark:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: none;
  color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 3rem;
  }

  .client-logo-box {
    border-right: none;
  }
}

/* --- CLIENTS SECTION --- */
.clients-section {
  position: relative;
  background-color: #010002;
  color: #ffffff;
  overflow: hidden;
}

.clients-bg-img {
  position: absolute;
  top: 0;
  left: -100px;
  width: auto;
  height: 659px;
  pointer-events: none;
  z-index: 0;
}

.clients-butterfly-img {
  position: absolute;
  top: 15px;
  left: 90px;
  width: 90px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.blogs-butterfly-img {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-220px);
  width: 70px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.client-title {
  font-size: calc(1.4rem + 0.8vw);
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
}

.client-subtitle {
  font-size: 1rem;
}

.client-logo-card {
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.client-logo-card img {
  max-height: 60px;
  border-radius: 8px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo-card:hover img {
  transform: scale(1.08);
}

@media (max-width: 991px) {
  .client-title {
    max-width: 100%;
    text-align: center;
  }

  .client-subtitle {
    text-align: center;
  }

  .clients-section .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }

  .clients-bg-img {
    width: 921px;
    opacity: 1;
    left: -73px;
    object-fit: none;
  }

  .clients-butterfly-img {
    width: 60px;
    top: 15%;
    left: 20px;
  }
}

@media (max-width: 576px) {
  .client-logo-card {
    padding: 8px 6px;
  }

  .client-logo-card img {
    max-height: 35px;
  }
}

/* --- Clients Marquee --- */
.logo-marquee-wrapper {
  width: 100%;
  overflow: hidden;
}

.marquee-row {
  overflow: hidden;
  margin-bottom: 8px;
}

.marquee-row:last-child {
  margin-bottom: 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track.marquee-reverse {
  animation-direction: reverse;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-track .client-logo-card {
  flex-shrink: 0;
  width: 130px;
}

@media (max-width: 576px) {
  .marquee-track .client-logo-card {
    width: 90px;
  }
}

/* --- BENTO GRID / SERVICES GRID --- */

.header {
  margin-bottom: 2rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.title-gradient {
  background: linear-gradient(to right,
      var(--gradient-start),
      var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32rem;
  font-weight: 400;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 1rem;
  cursor: pointer;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: var(--delay);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition:
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.5s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card:hover .card-bg {
  transform: scale(1.08);
  opacity: 0.25;
}

.card-product {
  grid-column: span 2;
  grid-row: span 2;
  background: #0f172a;
}

.card-ai {
  grid-column: span 2;
  background: #1c1917;
}

.card-salesforce {
  grid-column: span 2;
  background: #0c0a09;
}

.card-standard {
  background: #111;
}

.card-product .card-bg {
  background-image: url("../../../images/external/images-unsplash-com-photo-1512941937669-90a1b58e7e9c-7071a2ef1618.webp");
}

.card-ai .card-bg {
  background-image: url("../../../images/external/images-unsplash-com-photo-1677442136019-21780ecad995-e61c56902356.webp");
}

.card-transformation .card-bg {
  background-image: url("../../../images/external/images-unsplash-com-photo-1451187580459-43490279c0fa-96d94e217d5c.webp");
}

.card-staff .card-bg {
  background-image: url("../../../images/external/images-unsplash-com-photo-1522071820081-009f0129c71c-3f252c5bea9a.webp");
}

.card-salesforce .card-bg {
  background-image: url("../../../images/external/images-unsplash-com-photo-1534067783941-51c9c23ecefd-55885845a521.webp");
}

.card-consulting .card-bg {
  background-image: url("../../../images/external/images-unsplash-com-photo-1460925895917-afdab827c52f-ae221895c56d.webp");
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #fff;
}

.card-title-lg {
  font-size: 1.25rem;
}

.card-title-md {
  font-size: 1.1rem;
}

.card-title-sm {
  font-size: 1rem;
}

.card-desc {
  color: #a1a1aa;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.card-desc-sm {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}

.arrow {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.card:hover .arrow {
  transform: translate(2px, -2px);
  color: #fff;
  opacity: 1;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(160px, auto);
  }

  .card-product,
  .card-ai,
  .card-salesforce {
    grid-column: span 2;
  }

  .title {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-product,
  .card-ai,
  .card-salesforce {
    grid-column: span 1;
  }
}

/* --- CAROUSEL CONTAINER --- */
.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  padding-left: 16px;
  padding-right: 16px;
}

.card-purple {
  background-color: #f5f3ff;
}

.card-lavender {
  background-color: #faf5ff;
}

.card-blue {
  background-color: #eff6ff;
}

.card-pink {
  background-color: #fdf2f8;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-box {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.logo-box svg {
  width: 100%;
  height: 100%;
}

.logo-purple {
  color: #9333ea;
}

.logo-indigo {
  color: #4f46e5;
}

.logo-blue {
  color: #2563eb;
}

.logo-pink {
  color: #db2777;
}

.card-description {
  font-size: 0.875rem;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.3;
  margin-top: 2px;
}

.media-container-pill {
  margin-top: auto;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
  height: 160px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.media-purple {
  background-color: #e9d5ff;
}

.media-indigo {
  background-color: #c7d2fe;
}

.media-blue {
  background-color: #dbeafe;
}

.media-pink {
  background-color: #fce7f3;
}

.image-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
}

@media (max-width: 640px) {
  .header h2 {
    font-size: 1.25rem;
  }
}

/* --- KPI SECTION --- */
.kpi_Section {
  background-color: #000000;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 40px;
  padding: 45px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid #ffffff1a;
}

.stat-card1 {
  background:
    radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.08),
      transparent 55%),
    linear-gradient(160deg, #48148c, #27015a);
}

.stat-card2 {
  background:
    radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.08),
      transparent 55%),
    linear-gradient(160deg, #4a1854, #33013d);
}

.stat-card3 {
  border-color: oklab(80.8751% 0.0277576 0.157963 / 0.2);
  background:
    radial-gradient(circle at top left, rgb(54 44 80), rgb(21 11 47) 60%),
    linear-gradient(188deg, #362c50, #180e32) !important;
}

.stat-card4 {
  background:
    radial-gradient(circle at top left, #1f1022, #150618 55%),
    linear-gradient(160deg, #1e0f21, #150618) !important;
}

.big-card {
  min-height: 550px;
}

.label-top {
  color: var(--accent-yellow);
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 14px;
  margin-bottom: 30px;
}

.big-number {
  font-size: 100px;
  font-weight: 900;
  color: var(--text-mint);
  line-height: 0.85;
  margin-bottom: 10px;
}

.big-number span {
  display: block;
  font-size: 85px;
}

.sub-header {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.description {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 90%;
}

.bolt-bg {
  position: absolute;
  top: 40px;
  right: 20px;
  width: 180px;
  height: auto !important;
  opacity: 0.05;
}

.small-card {
  padding: 35px;
  min-height: 220px;
  justify-content: center;
}

.small-card .top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.small-card h2 {
  font-size: 62px;
  font-weight: 900;
  margin: 0;
}

.small-card .label-bottom {
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 5px;
}

.team-card {
  background: linear-gradient(145deg, #0d2123 0%, #051416 100%);
  border: 1px solid rgba(255, 183, 3, 0.1);
}

.team-label {
  color: var(--accent-yellow) !important;
}

.team-icon-bg {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 120px;
  height: auto !important;
  opacity: 0.1;
}

.award-card {
  background: radial-gradient(circle at top left, #111, #000);
  padding: 0;
}

.award-inner {
  padding: 50px;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 400C150 300 250 100 400 0' stroke='%23ffffff' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E") no-repeat center right;
  background-size: cover;
}

.badge-sq {
  width: 65px;
  height: 65px;
  background: var(--accent-yellow);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 120px;
}

.award-pill {
  position: absolute;
  top: 50px;
  right: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.recognition-label {
  color: var(--accent-yellow);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 15px;
}

.award-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
}

.carousel-indicators {
  justify-content: flex-start;
  margin-left: 50px;
  margin-bottom: 40px;
}

.carousel-indicators [data-bs-target] {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background-color: #333;
  border: none;
}

.carousel-indicators .active {
  background-color: var(--accent-yellow);
}

@media (max-width: 991px) {
  .big-card {
    min-height: auto;
    margin-bottom: 20px;
  }

  .big-number {
    font-size: 80px;
  }

  .big-number span {
    font-size: 60px;
  }

  .contact-section>img[src*="BG_05"] {
    width: 800px !important;
  }

  .contact-section img[src*="ButterFly-2"] {
    top: -68px !important;
    left: 220px !important;
    right: auto !important;
  }
}

/* --- LABELS & FORM STYLING --- */
.label-accent {
  color: var(--accent-yellow);
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: bold;
}

.line {
  display: inline-block;
  width: 45px;
  height: 0.5px;
  background: var(--accent-yellow);
  vertical-align: middle;
  margin-right: 10px;
}

.text-secondary-muted {
  color: var(--text-muted);
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-yellow);
  background: rgba(251, 176, 52, 0.05);
}

.email-link {
  color: #9cdada;
  text-decoration: none;
  font-size: 1.2rem;
}

.form-control,
.form-select {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: white !important;
  border-radius: 0;
}

.form-control:focus,
.form-select:focus {
  background-color: transparent;
  border-color: var(--accent-yellow);
  box-shadow: none;
}

.input-group-custom {
  transition: all 0.3s ease;
}

.input-group-custom:focus-within .form-label {
  color: var(--accent-yellow) !important;
}

.input-group-custom input::placeholder,
.input-group-custom textarea::placeholder {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
}

textarea.form-control {
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: white !important;
  border-radius: 0;
}

.upload-area {
  border: 1px dashed var(--border-color);
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.upload-area:hover {
  border-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.03);
}

.upload-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.contact-checkbox {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.contact-checkbox:checked {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

.contact-checkbox:focus {
  box-shadow: none;
  border-color: var(--accent-yellow);
}

.contact-email-link {
  color: var(--accent-yellow);
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
  color: var(--accent-yellow);
}

/* --- SERVICES SCROLL SECTION --- */
.services-container {
  width: 100%;
  max-width: 1600px;
  padding: 0 40px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  padding: 0 10px;
}

.header h2 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.nav-controls {
  display: flex;
  gap: 15px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  border-color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.1);
}

.services-scroll-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 10px 40px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.services-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 360px;
  height: 470px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(130, 60, 200, 0.2);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  scroll-snap-align: start;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  text-decoration: none;
}

.card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  transition: transform 0.8s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(5, 0, 15, 0.98) 0%,
      rgba(15, 5, 35, 0.85) 35%,
      rgba(10, 0, 20, 0.25) 60%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  transition: var(--transition);
}

.card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  font-weight: 300;
  line-height: 1.2;
}

.service-desc-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.88rem;
  margin-bottom: 0;
  font-weight: 300;
  flex: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 2;
  transition: background 0.3s ease;
  pointer-events: none;
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.38);
}

.service-card:hover {
  border-color: transparent;
  transform: translateY(-5px);
}

.service-card:hover .card-bg-img {
  transform: scale(1.08);
}

.service-card:hover h3 {
  color: var(--gold-accent);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

@media (max-width: 768px) {
  .service-card {
    flex: 0 0 280px;
    height: 420px;
    padding: 20px;
  }

  .services-container {
    padding: 0 12px;
  }

  .header h2 {
    font-size: 2.2rem;
  }

  .nav-controls {
    display: none;
  }
}

/* --- BADGE SECTION --- */
.badge-main {
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.badge-main h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.badge-main h1 span {
  color: var(--primary);
}

.badge-main .header-desc {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--text-muted2);
}

.badge-main .bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.badge-main .bento-card {
  background-color: var(--card-bg1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color1);
  box-shadow: var(--shadow);
  transition: var(--transition1);
}

.badge-main .bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.badge-main .bento-card-hero {
  grid-column: span 7;
}

.badge-main .bento-card-tall {
  grid-column: span 5;
  grid-row: span 2;
}

.badge-main .bento-card-square-1 {
  grid-column: span 3;
}

.badge-main .bento-card-square-2 {
  grid-column: span 4;
}

.badge-main .img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
}

.badge-main .bento-card-hero .img-wrapper {
  height: 60%;
}

.badge-main .bento-card-tall .img-wrapper {
  height: 70%;
}

.badge-main .bento-card-square-1 .img-wrapper,
.badge-main .bento-card-square-2 .img-wrapper {
  height: 55%;
}

.badge-main .bento-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.badge-main .bento-card:hover .bento-card-img {
  transform: scale(1.05);
}

.badge-main .content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-main .brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-main .brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background-color: var(--primary-bg1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.badge-main .brand-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-main h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.badge-main .bento-card:hover h3 {
  color: var(--primary);
}

.badge-main .desc {
  font-size: 0.85rem;
  color: var(--text-muted2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-main .kpi-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.badge-main .pill {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border-width: 1px;
  border-style: solid;
}

.badge-main .pill-primary {
  background: var(--primary-bg1);
  color: var(--primary);
  border-color: rgba(19, 127, 236, 0.2);
}

.badge-main .pill-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-main .pill-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.2);
}

.badge-main .pill-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.2);
}

.badge-main .testimonial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(15, 23, 42, 0.75),
      transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.badge-main .quote-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 100%;
}

.badge-main .quote-text {
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}

.badge-main .quote-author {
  font-size: 0.6rem;
  font-weight: 700;
  margin-top: 0.35rem;
  opacity: 0.9;
  text-transform: uppercase;
}

.badge-main .cta {
  text-align: center;
  margin-bottom: 4rem;
}

.badge-main .cta h4 {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.badge-main .btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge-main .btn {
  padding: 0.65rem 1.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  font-size: 0.95rem;
}

.badge-main .btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(19, 127, 236, 0.3);
}

.badge-main .btn-primary:hover {
  background-color: var(--primary-hover);
}

.badge-main .btn-outline {
  background-color: var(--card-bg1);
  color: var(--text-main1);
  border: 1px solid var(--border-color1);
}

.badge-main .btn-outline:hover {
  background-color: var(--bg-light);
}

@media (max-width: 1024px) {
  .bento-grid {
    display: flex !important;
    flex-direction: column;
    height: auto;
  }

  .badge-main .bento-card {
    min-height: 350px;
  }
}

/* --- KPI SECTION NEW --- */
.kpi-section-new {
  background-color: #000000;
  position: relative;
}

.kpi-section-new .container {
  position: relative;
  z-index: 2;
}

.kpi-bg-img {
  position: absolute;
  top: 50%;
  left: -80px;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transform: translateY(-65%);
}

.kpi-butterfly-img {
  position: absolute;
  top: 10%;
  left: 80px;
  width: 80px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 991px) {
  .wwd-bg-img {
    width: 500px !important;
    right: -30px !important;
  }
  .wwd-butterfly-img {
    top: 20px !important;
    right: 15px !important;
    width: 50px !important;
  }
  .kpi-bg-img {
    opacity: 0.85;
    width: 140%;
    transform: translateY(-140px);
  }

  .kpi-butterfly-img {
    width: 55px;
    right: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 30px));
  }
  .blogs-butterfly-img{
    bottom: 20px;
    left: 50%;
    width: 60px;
    transform: translate(-85px, 0);
  }
}

.kpi-item {
  padding: 40px 20px;
  position: relative;
}

.kpi-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 193, 7, 0.3);
}

.kpi-icon {
  font-size: 32px;
  color: #ffc107;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.kpi-item:hover .kpi-icon {
  transform: translateY(-5px);
}

.kpi-item h2 {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.kpi-certified h2 {
  color: #ffffff;
  font-size: 28px;
}

.kpi-underline {
  display: block;
  width: 40px;
  height: 3px;
  background: #ffffff;
  margin: 0 auto 15px;
  transition: width 0.4s ease;
}

.kpi-item:hover .kpi-underline {
  width: 70px;
}

.kpi-item p {
  color: #ffc107;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 767px) {
  .kpi-section-new {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .kpi-item:not(:last-child)::after {
    display: none;
  }

  .kpi-item {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.08);
  }

  .kpi-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 193, 7, 0.12);
  }

  .kpi-icon {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .kpi-item h2 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .kpi-certified h2 {
    font-size: 17px;
  }

  .kpi-underline {
    margin: 0 auto 8px;
  }

  .kpi-item p {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

/* --- SERVICE CARD ARROW --- */
.service-learn-more {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  padding-top: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-learn-more i {
  font-size: 1.3rem;
  color: #f9b522;
  transition: transform 0.25s ease;
}

.service-card:hover .service-learn-more {
  opacity: 1;
}

.service-card:hover .service-learn-more i {
  transform: translateX(4px);
}

/* --- SUCCESS CARD --- */
.success-description {
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
  padding-bottom: 0px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.success-case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 10px;
  transition: gap 0.2s ease, transform 0.25s ease;
  box-shadow: 8px 8px 15px #001add10;
  border: 0.5px solid #ffffff23;
  border-radius: 50%;
  size: 50px;
  padding: 5px;
}

.success-case-link:hover {
  gap: 10px;
  color: var(--primary-color);
}

/* --- SECTION RHYTHM & SPACING --- */
:root {
  --section-py: clamp(2.5rem, 4vw, 4rem);
  --section-gap-xl: clamp(3.5rem, 6vw, 6rem);
}

.kpi-section-new,
.success-section,
.clients-section {
  padding-top: var(--section-py) !important;
  padding-bottom: var(--section-py) !important;
}

.portfolio-body {
  padding-top: clamp(3.5rem, 5.5vw, 5.5rem) !important;
}

#blogs {
  padding-bottom: var(--section-gap-xl) !important;
}

/* --- MOBILE RESPONSIVE FIXES --- */
.hero-desc {
  width: 50%;
}

@media (max-width: 767px) {
  .hero-desc {
    width: 100%;
  }

  .hero-section .d-flex.flex-wrap {
    flex-direction: column;
  }

  .hero-section .d-flex.flex-wrap .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .success-image-box {
    max-height: 180px;
  }

  .success-image-box img {
    min-height: 150px;
    max-height: 180px;
  }

  .success-content {
    padding: 16px 20px;
  }

  .success-title {
    font-size: 1.2rem !important;
  }

  .success-description {
    font-size: 13px;
  }

  .category-tag {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .roi-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  #services>img[src*="BG_01"] {
    width: 500px !important;
    right: -30px !important;
  }

  #services>img[src*="Butterfly"] {
    top: 0% !important;
    right: 2%;
  }

  #blogs>img[src*="BG_04"] {
    width: 100% !important;
  }

  .blog-section-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-desc {
    display: none;
  }

  .hero-content {
    height: 100vh;
    flex-direction: column;
    display: flex;
    justify-content: space-between;
    padding-block: 161px 22px;
  }

  .clients-bg-img {
    width: 760px !important;
    opacity: 1;
    left: -60px;
  }
}

/* --- SUCCESS STORIES SECTION --- */
.success-section {
  background-color: #000000;
  overflow: hidden;
}

.success-card {
  background: #200226;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
  margin-bottom: 20px;
}

.success-image-box {
  max-height: 220px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.success-image-box img {
  width: 100% !important;
  height: auto;
  min-height: 180px;
  max-height: 220px;
  object-fit: cover;
}

.bg-green-brand {
  background: #8cc63f;
}

.bg-blue-brand {
  background: #cbdce6;
}

.app-mockup {
  max-height: 100% !important;
  width: auto !important;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

.success-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-tag {
  
  color: #ffffff05;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  letter-spacing: 1.9px;
  color: #FFFFFF;
  text-transform: uppercase;
  opacity: 0.5;
}

.category-tag .story-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.success-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.5rem * 1.2 * 2);
}

.success-description {
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0px;
}

.roi-badge {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(249, 181, 34, 0.05);
  border: 1px solid #882ba781;
  border-radius: 100px;
  color: #D87321;
}

.roi-badge-1 {
  color: #F9B522;
}

/* --- OWL CAROUSEL DOTS --- */
.owl-dots {
  margin-top: 50px !important;
}

@media (max-width: 576px) {
  .owl-dots {
    margin-top: 10px !important;
  }
}

.owl-theme .owl-dots .owl-dot span {
  background: #333 !important;
  width: 12px;
  height: 12px;
  transition: 0.3s;
}

.owl-theme .owl-dots .owl-dot.active span {
  background: #f9b522 !important;
  width: 30px;
}

.success-carousel .owl-stage,
.blog-carousel .owl-stage {
  display: flex;
}

.success-carousel .owl-item,
.blog-carousel .owl-item {
  display: flex;
}

.success-carousel .item {
  display: flex;
  width: 100%;
}

.success-card {
  background: #200226;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.success-content {
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.success-roi-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.success-roi-row .roi-container {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.success-roi-row .success-case-link {
  margin-top: 0;
  flex-shrink: 0;
  margin-left: auto;
}

.success-roi-row .success-case-link:hover {
  transform: translateX(5px);
}

.roi-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.roi-container::-webkit-scrollbar {
  display: none;
}

/* --- BLOG / CONTACT FIXES --- */
section#blogs {
  background-color: #000000 !important;
}

.contact-section {
  background-color: #000000 !important;
}

.blog-card-new {
  border-bottom: 1px solid transparent !important;
}

.blog-card-new .blog-content-new>a,
.blog-card-new a.hover-white:not(.btn) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card-new:hover .blog-content-new>a,
.blog-card-new:hover a.hover-white:not(.btn) {
  opacity: 1;
}

@media (max-width: 576px) {
  #blogs {
    padding-bottom: 10px !important;
  }
}
