/* ═══════════════════════════════════════════
   RUDRATIC TECHNOLOGIES — GLOBAL STYLES
   Shared across all pages
═══════════════════════════════════════════ */

/* ── Page Loader ── */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 60px;
  margin-bottom: 20px;
  animation: loader-pulse 2s ease-in-out infinite;
}

@keyframes loader-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(105, 39, 255, 0.15);
  border-top: 3px solid #6927ff;
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ── Navbar ── */
.ftco-navbar-light {
  background: transparent !important;
  z-index: 100;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  position: relative;
}

.ftco-navbar-light .container {
  background: #ffffff;
  padding: 8px 30px;
  width: 94%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .navbar-brand {
  margin-right: 10px;
}

.navbar-collapse {
  flex-grow: 0;
}

.navbar-nav .nav-link {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

@media (max-width: 991px) {
  .ftco-navbar-light .container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 15px;
    background: #ffffff;
  }
  .ftco-navbar-light .navbar-toggler {
    color: #1a1a2e !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
  }
  .ftco-navbar-light .navbar-toggler span.oi-menu {
    color: #1a1a2e !important;
  }
}

.ftco-navbar-light .navbar-nav>.nav-item>.nav-link {
  color: #333;
}

.ftco-navbar-light .navbar-nav>.nav-item>.nav-link:hover {
  color: #6927ff;
}

.ftco-navbar-light .navbar-nav>.nav-item.active>a {
  color: #6927ff;
}

.ftco-navbar-light.scrolled {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.ftco-navbar-light.scrolled .navbar-nav>.nav-item>.nav-link {
  color: #000;
}

.ftco-navbar-light.scrolled .navbar-nav>.nav-item>.nav-link:hover {
  color: #6927ff;
}

.ftco-navbar-light.scrolled .navbar-nav>.nav-item.active>a {
  color: #6927ff;
}

/* ── Section Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(105, 39, 255, 0.3), transparent);
  margin: 0;
}

/* ── Footer ── */
.ftco-footer {
  background: #0f0f23;
  padding: 60px 0 20px;
}

.ftco-footer .heading-section h2 {
  color: #fff;
}

.ftco-footer h2 {
  color: #fff;
}

.ftco-footer p {
  color: rgba(255, 255, 255, 0.6);
}

.ftco-footer a {
  color: rgba(255, 255, 255, 0.6);
}

.ftco-footer a:hover {
  color: #6927ff;
}

.ftco-footer-widget h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
}

.bg-primary {
  background: #6927ff !important;
}

/* ── Scroll Progress Bar (Key & Lock) ── */
#scroll-progress-track {
  position: fixed;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 8px;
  background: rgba(0, 0, 0, 0.12);
  z-index: 9999;
  pointer-events: none;
  border-radius: 999px 999px 0 0;
  overflow: visible;
}

#scroll-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #6927ff, #a56bff);
  transition: width 0.1s linear;
  border-radius: 999px 999px 0 0;
}

#scroll-key {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  line-height: 1;
  transition: left 0.1s linear, filter 0.4s ease;
  pointer-events: none;
  filter: drop-shadow(0 0 0px rgba(105, 39, 255, 0));
  left: 0%;
}

#scroll-key.glowing {
  filter: drop-shadow(0 0 6px rgba(169, 107, 255, 0.9));
}

#scroll-lock {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#scroll-lock.unlocked {
  transform: translateY(-50%) scale(1.3) rotate(-15deg);
}

/* ── Back to Top ── */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #6927ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(105, 39, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 5000;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #5a1fe0;
  transform: translateY(-3px);
}

/* ── Floating CTA ── */
#floating-cta {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 5000;
}

#floating-cta .fcta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #6927ff, #5a1fe0);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(105, 39, 255, 0.45);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#floating-cta .fcta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(105, 39, 255, 0.55);
  color: #fff;
  text-decoration: none;
}

#floating-cta .fcta-pulse {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #6927ff;
  animation: fcta-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes fcta-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

#floating-cta .fcta-icon {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  #floating-cta {
    display: block;
    bottom: 10px;
    left: 10px;
    transform: scale(0.68) !important;
    transform-origin: bottom left;
    z-index: 5000;
  }
}

/* ── Section Reveal Animation ── */
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Interactive Card Effects ── */
.interactive-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.interactive-card:hover::before {
  left: 100%;
}

.interactive-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ── Shimmer Button Effect ── */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.shimmer-btn:hover::before {
  left: 150%;
}

/* ── 3D Tilt Card ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 25px 50px rgba(105, 39, 255, 0.15);
}

/* ── Gradient Border ── */
.gradient-border {
  position: relative;
  background: #fff;
  border-radius: 12px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6927ff, #a56bff, #6927ff);
  background-size: 400% 400%;
  animation: gradient-rotate 4s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

@keyframes gradient-rotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── Glow Text ── */
.glow-text {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(105, 39, 255, 0.3);
  }

  50% {
    text-shadow: 0 0 25px rgba(105, 39, 255, 0.6), 0 0 40px rgba(105, 39, 255, 0.3);
  }
}

/* ── Counter Animation ── */
.counter-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.counter-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Common Styles ── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a3e 0%, #0f0f23 100%);
  padding: 140px 0 80px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(105, 39, 255, 0.2) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  background: transparent;
  justify-content: center;
  margin-bottom: 0;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb span {
  color: #6927ff;
}

@media (max-width: 767.98px) {
  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero {
    padding: 100px 0 60px;
  }
}

/* ── Particle Canvas ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Testimonial Carousel ── */
.testimonial-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(105, 39, 255, 0.1);
}

.testimonial-card .quote-icon {
  font-size: 40px;
  color: #6927ff;
  opacity: 0.3;
  margin-bottom: 15px;
  display: block;
}

.testimonial-card p {
  color: rgba(0, 0, 0, 0.65);
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card .client-name {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 16px;
  margin-bottom: 5px;
}

.testimonial-card .client-role {
  color: #6927ff;
  font-size: 13px;
  font-weight: 500;
}

/* ── Animated Process Timeline ── */
.process-timeline {
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, #6927ff, #a56bff);
  transition: height 1.5s ease;
  z-index: 0;
}

.process-timeline.animated::before {
  height: calc(100% - 60px);
}

@media (min-width: 768px) {
  .process-timeline::before {
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px !important;
    transform: translateY(-50%);
  }

  .process-timeline.animated::before {
    height: 2px !important;
  }
}

/* ── Clients Logo Carousel ── */
.clients-carousel-section {
  padding: 60px 0;
  background: #fff;
  overflow: hidden;
}

.partner-carousel {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.partner-track {
  display: flex;
  animation: partner-scroll 25s linear infinite;
  width: max-content;
}

.partner-item {
  flex: 0 0 auto;
  padding: 0 40px;
}

.partner-item img {
  height: 50px;
  width: auto;
  filter: grayscale(40%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes partner-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 767.98px) {
  .testimonial-card {
    padding: 25px 20px;
  }

  #scroll-progress-track {
    left: 10px;
    right: 10px;
    height: 6px;
  }

  #scroll-key,
  #scroll-lock {
    font-size: 14px;
  }

  #back-to-top {
    width: 42px;
    height: 42px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Touch Device Overrides ── */
@media (hover: none) {
  .interactive-card:hover {
    transform: translateY(-4px);
  }

  .shimmer-btn::before,
  .gradient-border::before,
  .interactive-card::before {
    display: none;
  }
}

#scroll-lock.unlocked {
  animation: glowPulse 1.2s infinite alternate;
}

@keyframes glowPulse {
  from {
    filter: drop-shadow(0 0 8px #a96bff);
  }

  to {
    filter: drop-shadow(0 0 25px #a96bff) drop-shadow(0 0 35px #a96bff);
  }
}

/* Footer heading spacing for mobile */
@media (max-width: 768px){

.ftco-footer-widget{
margin-bottom:35px;
}

.ftco-footer-widget h2{
margin-bottom:15px;
}

.ftco-footer-widget p{
margin-bottom:15px;
}

}
/* Better footer spacing on mobile */
@media (max-width: 768px){

.ftco-footer .col-md{
margin-bottom:40px;
}

.ftco-footer-widget h2{
margin-bottom:15px;
}

}

/* ── Client Login Nav Button ── */
.navbar-nav .clp-nav-btn {
  display: flex !important;
  align-items: center;
  margin-left: 15px;
}

.btn-client-login-style,
.ftco-navbar-light.scrolled .navbar-nav > .nav-item > .btn-client-login-style {
  background: linear-gradient(135deg, #6927ff, #5a1fe0) !important;
  color: #fff !important;
  border-radius: 30px;
  padding: 6px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(105, 39, 255, 0.3);
  text-decoration: none;
  transition: opacity 0.3s ease;
  line-height: normal;
}

.btn-client-login-style:hover {
  opacity: 0.9;
  color: #fff !important;
}

@media (max-width: 991px) {
  .navbar-nav .clp-nav-btn {
    margin-left: 0;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 100%;
    display: flex !important;
    justify-content: center !important;
  }
  .navbar-nav .clp-nav-btn .btn-client-login-style {
    width: 90%;
    text-align: center;
    padding: 12px !important;
    font-size: 15px !important;
  }
}
