/* ============================================================
     CSS
     ============================================================ */

/* Diagonal checker pattern (About / Testimonials) */
.rajat-bg-pattern {
  background-image:
    linear-gradient(45deg, #f0fdf4 25%, transparent 25%),
    linear-gradient(-45deg, #f0fdf4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0fdf4 75%),
    linear-gradient(-45deg, transparent 75%, #f0fdf4 75%);
  background-size: 64px 64px;
  background-position: 0 0, 0 32px, 32px -32px, -32px 0px;
}

.rajat-bg-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 20%, rgba(240, 253, 244, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* SVG noise grain (Products) */
.vakratunda-section-wrap {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 250'%3E%3Cfilter id='rough'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.65  0 0 0 0 0.65  0 0 0 0 0.65  0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23rough)'/%3E%3C/svg%3E");
}

/* Why Choose Us backdrop */
.cards-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -60px;
  right: -60px;
  height: 200px;
  background-color: #122f2a;
  border-radius: 6px;
  z-index: 1;
}

@media (max-width: 992px) {
  .cards-wrapper::before {
    height: 380px;
    left: -20px;
    right: -20px;
  }
}

@media (max-width: 600px) {
  .cards-wrapper::before {
    display: none;
  }
}

/* Client carousel infinite animation */
.carousel-track {
  animation: scrollAnimation 25s linear infinite;
}

.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scrollAnimation {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 12.5px));
  }
}

/* Custom scrollbars */
.rajat-dropdown-scroll::-webkit-scrollbar,
.custom-options::-webkit-scrollbar {
  width: 6px;
}

.rajat-dropdown-scroll::-webkit-scrollbar-thumb,
.custom-options::-webkit-scrollbar-thumb {
  background: #41c447;
  border-radius: 9999px;
}

.rajat-dropdown-scroll::-webkit-scrollbar-track,
.custom-options::-webkit-scrollbar-track {
  background: #f1f5f2;
  border-radius: 9999px;
}

/* Dynamic state modifiers controlled by JavaScript */
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide.active .company-name {
  animation: heroFadeInUp 0.8s ease forwards 0.3s;
}

.hero-slide.active .hero-title {
  animation: heroFadeInUp 0.8s ease forwards 0.5s;
}

.hero-slide.active .hero-btn {
  animation: heroFadeInUp 0.8s ease forwards 0.7s;
}

@keyframes heroFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-wrapper.open .select-arrow {
  transform: rotate(180deg);
}

.error-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-overlay.active .success-icon {
  transform: scale(1);
}

/* CSS FOR OUR TEAM */
/* Custom dynamic transition curve & scroll state helper */
.custom-bezier {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

/* Panel + overlay open/close transitions (JS toggles .open) */
#rajatSidebar {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  box-shadow: 24px 0 60px rgba(9, 20, 17, 0);
}

#rajatSidebar.open {
  transform: translateX(0);
  box-shadow: 24px 0 60px rgba(9, 20, 17, 0.35);
}

#rajatSidebarOverlay.open {
  opacity: 1;
  visibility: visible;
}

/* Thin green scrollbar inside the sidebar */
.rajat-sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}

.rajat-sidebar-scroll::-webkit-scrollbar-thumb {
  background: #41c447;
  border-radius: 9999px;
}

.rajat-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Primary sidebar links / accordion trigger */
.rajat-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 0.85rem;
  border-radius: 0.6rem;
  color: rgba(18, 47, 42, 0.82);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.rajat-sidebar-link span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rajat-sidebar-link:hover,
.rajat-sidebar-link:focus-visible {
  background: rgba(65, 196, 71, 0.12);
  color: #2e8b33;
  padding-left: 1.1rem;
}

#rajatSidebarProductToggle[aria-expanded="true"] {
  background: rgba(65, 196, 71, 0.1);
  color: #2e8b33;
}

#rajatSidebarProductToggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Smooth-height accordion panel for the Product submenu */
.rajat-sidebar-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rajat-sidebar-panel.open {
  grid-template-rows: 1fr;
}

.rajat-sidebar-panel>div {
  overflow: hidden;
}

.rajat-sidebar-sublink {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(18, 47, 42, 0.6);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.rajat-sidebar-sublink:hover,
.rajat-sidebar-sublink:focus-visible {
  background: rgba(65, 196, 71, 0.1);
  color: #2e8b33;
  padding-left: 1rem;
}

/* Staggered slide-in reveal for each nav item once the sidebar opens */
.rajat-sidebar-item {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#rajatSidebar.open .rajat-sidebar-item {
  opacity: 1;
  transform: translateX(0);
}

#rajatSidebar.open .rajat-sidebar-item:nth-child(1) {
  transition-delay: 0.08s;
}

#rajatSidebar.open .rajat-sidebar-item:nth-child(2) {
  transition-delay: 0.13s;
}

#rajatSidebar.open .rajat-sidebar-item:nth-child(3) {
  transition-delay: 0.18s;
}

#rajatSidebar.open .rajat-sidebar-item:nth-child(4) {
  transition-delay: 0.23s;
}

#rajatSidebar.open .rajat-sidebar-item:nth-child(5) {
  transition-delay: 0.28s;
}

#rajatSidebar.open .rajat-sidebar-item:nth-child(6) {
  transition-delay: 0.33s;
}

#rajatSidebar.open .rajat-sidebar-item:nth-child(7) {
  transition-delay: 0.38s;
}

/* Lock page scroll while the sidebar is open */
body.rajat-sidebar-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

  #rajatSidebar,
  #rajatSidebarOverlay,
  .rajat-sidebar-item,
  .rajat-sidebar-panel {
    transition-duration: 0.01ms !important;
  }
}


/* CSS FOR FOOTER */
/* Custom branded scrollbar for the footer products column */
.footer-products-scroll::-webkit-scrollbar {
  width: 4px;
}

.footer-products-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.footer-products-scroll::-webkit-scrollbar-thumb {
  background: #41c447;
  border-radius: 8px;
}

.footer-products-scroll::-webkit-scrollbar-thumb:hover {
  background: #38b03e;
}