@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 320;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-underline path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawLine 1s ease-out 0.9s forwards;
}

.text-muted {
  color: #212529 !important;
}

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .anim-underline path {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
}

/* ===== Custom Colors and Styles for Bootstrap ===== */
.text-navy {
  color: rgb(25, 8, 45) !important;
}

.text-amber {
  color: #f59e0b !important;
}

.bg-amber {
  background-color: #f59e0b !important;
}

.bg-amber-light {
  background-color: rgba(245, 158, 11, 0.15) !important;
}

.border-amber-hover:hover {
  border-color: #fcd34d !important;
}

.text-gradient-amber {
  background: linear-gradient(to right, #f59e0b, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 81%);
  z-index: -1;
}

.hero-content {
  padding-top: 7rem;
  padding-bottom: 2rem;
  z-index: 1;
}

.chip-service {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 50rem;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  color: #0d1b3e;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: default;
  transition: border-color 0.2s;
}

.btn-amber-custom {
  background-color: #f59e0b;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50rem;
  border: none;
  transition: background-color 0.2s;
  box-shadow: 0 0.5rem 1rem rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-amber-custom:hover {
  background-color: #d97706;
  color: white;
}

.btn-light-custom {
  background-color: white;
  color: #0d1b3e;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50rem;
  border: 1px solid #dee2e6;
  transition: background-color 0.2s;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-light-custom:hover {
  background-color: #f8f9fa;
}

.review-card {
  background: white;
  border: 1px solid #f8f9fa;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border-color: #fde68a;
}

.review-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .stats-row {
    --bs-gutter-x: -18rem;
  }
}

@media (max-width: 425px) {
  .review-card {
    padding: 0.45rem 0.7rem;
    gap: 0.6rem !important;
  }

  .review-icon-wrapper {
    width: 2rem;
    /* 1.75rem → 2rem */
    height: 2rem;
    flex-shrink: 0;
  }

  .review-icon-wrapper svg,
  .review-icon-wrapper img {
    width: 19px !important;
    height: 19px !important;
  }

  .review-card p.fw-bold {
    font-size: 12px !important;
  }

  .review-card .text-muted {
    font-size: 10px !important;
  }

  .review-card span.text-amber {
    font-size: 11px !important;
  }

  .review-card svg[width="14"] {
    width: 12px !important;
    height: 12px !important;
  }
}

@media (max-width: 380px) {
  .review-icon-wrapper {
    width: 1.85rem;
    /* 1.5rem → 1.85rem */
    height: 1.85rem;
  }

  .review-icon-wrapper svg,
  .review-icon-wrapper img {
    width: 17px !important;
    height: 17px !important;
  }
}

.stat-break {
  display: none;
}

/* Sirf chhote mobile pe break dikhao */
@media (max-width: 1024px) {
  .stat-break {
    display: block;
  }
}

/* ============================================================
   SECTION 2: AI Solutions — Tab Panel
   ============================================================ */

.ai-section-header {
  text-align: center;
  margin: 0 auto 48px auto;
}

.ai-section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.ai-section-header p {
  font-size: 18px;
  color: #666;
  line-height: 1.7;
  margin: 0 auto;
}

/* Tab section shell */
.tech-section {
  background: #fdf6f0;
  border-radius: 20px;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  max-width: 1150px;
  margin: 0 auto 40px auto;
}

/* Sidebar */
.tab-sidebar {
  width: 400px;
  min-width: 260px;
  padding: 32px 20px;
  border-right: 1px solid #f0e8e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tab buttons */
.tab-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  border-radius: 50px;
  transition:
    background 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tab-btn .arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.tab-btn .arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #aaa;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.tab-btn:hover {
  background: #f5ede4;
  color: #f89100;
}
.tab-btn:hover .arrow svg {
  stroke: #f89100;
}

.tab-btn.active {
  background: #f89100;
  color: #fff;
}
.tab-btn.active .arrow {
  background: rgba(255, 255, 255, 0.25);
}
.tab-btn.active .arrow svg {
  stroke: #fff;
}

/* Tab content */
.tab-content-wrap {
  flex: 1;
  padding: 44px 38px;
  display: flex;
  align-items: flex-start;
}

.tab-panel {
  display: none;
  width: 100%;
}
.tab-panel.active {
  display: block;
  animation: fadeUp 0.25s ease;
}

.feature-desc {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
}
.feature-desc p {
  margin: 0 0 16px 0;
}
.feature-desc p:last-child {
  margin-bottom: 0;
}

/* Mobile dropdown for AI tabs */
.mobile-tab-select {
  display: none;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #f89100;
  border: none;
  border-radius: 50px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpolyline points='3,5 8,11 13,5' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
  margin-bottom: 20px;
}

.mobile-tab-select option {
  background: #fff;
  color: #1a1a1a;
  font-weight: 500;
}

/* Responsive — AI tabs */
@media (max-width: 768px) {
  .tech-section {
    flex-direction: column;
    border-radius: 0;
    background: transparent;
    min-height: unset;
  }

  .tab-sidebar {
    display: none;
  }

  .mobile-tab-select {
    display: block;
  }

  .tab-content-wrap {
    padding: 0;
    background: #fdf6f0;
    border-radius: 16px;
  }

  .tab-panel.active {
    padding: 24px 20px;
  }

  .feature-desc {
    font-size: 16px;
  }

  .ai-section-header h2 {
    font-size: 24px;
  }
  .ai-section-header p {
    font-size: 18px;
  }
}

/* ============================================================
   SECTION 3: Awards & Recognitions — Marquee
   ============================================================ */

.awards-section {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow: hidden;
}

.awards-left {
  min-width: 280px;
  max-width: 400px;
  flex-shrink: 0;
}

.awards-left h2 {
  font-size: 34px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.awards-left p {
  font-size: 18px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
}

.awards-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  transition: gap 0.2s;
}
.awards-viewall:hover {
  gap: 12px;
  color: #e85d1a;
}

.awards-right {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Marquee rows */
.marquee-row {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

@keyframes scrollRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollLTR {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-row.rtl .marquee-track {
  animation: scrollRTL 24s linear infinite;
}
.marquee-row.ltr .marquee-track {
  animation: scrollLTR 24s linear infinite;
}
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

/* Award cards */
.awards-card {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.awards-card img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.awards-card.clutch-card {
  padding: 10px;
  overflow: hidden;
}

/* Responsive — Awards */
@media (max-width: 768px) {
  .awards-section {
    flex-direction: column;
    margin: 48px 0;
    gap: 32px;
    padding: 0 16px;
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
  }

  .awards-left {
    max-width: 100%;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .awards-left h2 {
    font-size: 26px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .awards-left p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .awards-card {
    width: 145px;
    height: 85px;
  }

  /* Marquee overflow sirf yahan */
  .awards-right {
    width: 100%;
    overflow: hidden;
  }
}

/* ============================================================
   SHARED UTILITY — text-muted override
   (inline style se override hone se bachne ke liye)
   ============================================================ */

.hero-section .text-muted {
  color: #212529 !important;
}

/* ============================================================
   SECTION 4: Hire Developer — services-main-home Carousel
   ============================================================ */

.rs-services.services-main-home {
  padding-bottom: 60px !important;
  overflow: visible !important;
}

.rs-services.services-main-home .srv-carousel-wrapper {
  position: relative;
  padding: 0 52px;
}

.rs-services.services-main-home .srv-carousel-outer {
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
}

.rs-services.services-main-home .srv-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  overflow: visible;
}

.rs-services.services-main-home .srv-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

.rs-services.services-main-home .srv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  padding-bottom: 8px;
}

.rs-services.services-main-home .srv-grid-mobile {
  display: flex;
  justify-content: center;
  width: 100%;
}

.rs-services.services-main-home .mobile-carousel,
.rs-services.services-main-home .mobile-dots {
  display: none !important;
}

.rs-services.services-main-home .services-item {
  height: 100%;
  margin: 8px 8px !important;
  box-shadow: none !important;
  transition:
    background 0.3s,
    border 0.3s,
    border-radius 0.3s,
    box-shadow 0.3s;
}

.rs-services.services-main-home .services-wrap {
  background: #f8f9fc;
  border: 1px solid #eaedf3;
  border-radius: 16px;
  padding: 30px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    box-shadow 0.25s,
    transform 0.25s !important;
}

.rs-services.services-main-home .services-wrap:hover {
  box-shadow: 0 8px 32px rgba(248, 145, 0, 0.13) !important;
  transform: translateY(-4px);
}

.rs-services.services-main-home
  .services-item
  .services-wrap
  .services-content {
  margin: 14px 0 0 0 !important;
}

.rs-services.services-main-home
  .services-item
  .services-wrap
  .services-content
  .title {
  margin: 0 0 14px !important;
}

.rs-services.services-main-home .services-img {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs-services.services-main-home .services-img img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

.rs-services.services-main-home .services-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.rs-services.services-main-home .services-content .title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 16px;
  line-height: 1.4;
}

.rs-services.services-main-home .services-content .title a {
  color: inherit;
  text-decoration: none;
}

.rs-services.services-main-home .services-button {
  margin-top: auto;
}

.rs-services.services-main-home .services-button a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f89100;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s;
}

.rs-services.services-main-home .srv-arr-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 16px;
  color: #333;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  line-height: 1;
  padding: 0;
}

.rs-services.services-main-home .srv-arr-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rs-services.services-main-home .srv-arr-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rs-services.services-main-home .srv-arr-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.rs-services.services-main-home .srv-arr-prev {
  left: 0;
}
.rs-services.services-main-home .srv-arr-next {
  right: 0;
}

.rs-services.services-main-home .srv-dots-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 10px;
  padding: 8px 0 4px;
  position: relative;
  z-index: 2;
}

.rs-services.services-main-home .srv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  transition:
    background 0.2s,
    transform 0.2s;
}

.rs-services.services-main-home .srv-dot.active {
  background: #f89100;
  transform: scale(1.3);
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .rs-services.services-main-home .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-services.services-main-home .services-wrap {
    min-height: 260px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .rs-services.services-main-home {
    padding-bottom: 50px !important;
  }
  .rs-services.services-main-home .desktop-carousel,
  .rs-services.services-main-home .desktop-dots {
    display: none !important;
  }
  .rs-services.services-main-home .mobile-carousel,
  .rs-services.services-main-home .mobile-dots {
    display: block !important;
  }
  .rs-services.services-main-home .mobile-carousel.srv-carousel-wrapper {
    display: block !important;
    padding: 0 36px;
  }
  .rs-services.services-main-home .srv-grid-mobile {
    display: flex !important;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .rs-services.services-main-home .srv-grid-mobile .services-item {
    width: 100% !important;
    max-width: 260px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .rs-services.services-main-home .services-wrap {
    padding: 24px 20px 20px !important;
    border-radius: 16px;
    height: 250px !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .rs-services.services-main-home .mobile-carousel .services-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }
  .rs-services.services-main-home .mobile-carousel .services-button {
    margin-top: auto !important;
    padding-top: 10px !important;
  }
  .rs-services.services-main-home .services-img {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }
  .rs-services.services-main-home .services-img img {
    max-width: 60px;
    max-height: 60px;
  }
  .rs-services.services-main-home .services-content .title {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  .rs-services.services-main-home .services-button a {
    font-size: 13px;
  }
  .rs-services.services-main-home .srv-arr-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .rs-services.services-main-home .mobile-dots.srv-dots-wrap {
    display: flex !important;
    margin-top: 20px;
    margin-bottom: 16px;
    gap: 6px;
  }
  .rs-services.services-main-home .srv-dot {
    width: 8px;
    height: 8px;
  }
}

/* Blog Section Start */
.image-wrap {
  position: relative;
  overflow: hidden;
}

.blog-date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f4780b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Stack left on top, right below */
  #rs-blog .col-md-4,
  #rs-blog .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Heading font size fix - text cut off */
  #rs-blog .sec-title2 .title {
    font-size: 28px !important;
    line-height: 36px !important;
  }

  /* Left section bottom spacing */
  #rs-blog .col-md-4 {
    margin-bottom: 30px !important;
  }

  /* Carousel show 2 items properly */
  #rs-blog .blog-two-col {
    width: 100% !important;
  }
}

/* ── MOBILE FIX (below 767px) ── */
@media (max-width: 767px) {
  #rs-blog .col-md-4,
  #rs-blog .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  #rs-blog .sec-title2 .title {
    font-size: 24px !important;
    line-height: 32px !important;
  }

  #rs-blog .col-md-4 {
    margin-bottom: 24px !important;
  }
}
