/* GPioneers Custom Stylesheet */

/* Custom Variables and Core Styles */
:root {
  --color-deep-green: #0F5132;
  --color-emerald-green: #198754;
  --color-light-gray: #F8F9FA;
  --color-dark-gray: #212529;
}

body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  color: var(--color-dark-gray);
  background-color: #ffffff;
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-nav-scrolled {
  background: rgba(15, 81, 50, 0.95); /* Deep green on scroll for premium corporate look */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(25, 135, 84, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Infinite Loop Client Slider (Marquee) */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.slider-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

/* Scroll Animations using Intersection Observer */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay Helpers for staggered animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Hover Effects */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(15, 81, 50, 0.15);
}

/* Custom Scrollbar for premium corporate feel */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-emerald-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-deep-green);
}

/* Loader Screen styles */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(25, 135, 84, 0.1);
  border-left-color: var(--color-deep-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Nav Logo scale & shrink transition */
.logo-nav-img {
  height: 3.5rem; /* ~56px (h-14 equivalent) */
  width: auto;
  object-fit: contain;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-nav-img.logo-scrolled {
  height: 2.5rem; /* ~40px (h-10 equivalent) */
}

/* Coordinate Map Laser Scan Animation */
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.animate-scan {
  animation: scan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* SVG route connection line animations */
@keyframes lineFlow {
  to {
    stroke-dashoffset: -10;
  }
}

.route-lines line {
  animation: lineFlow 1.5s linear infinite;
}

/* Floating / Sticky Contact Widget and Mobile FAB */
.floating-contact-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-deep-green);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(15, 81, 50, 0.4);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.floating-action-btn:hover {
  transform: translateY(-4px);
  background: var(--color-emerald-green);
  box-shadow: 0 15px 30px -5px rgba(25, 135, 84, 0.5);
  color: #ffffff;
}

/* Mobile Sticky FAB Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(15, 81, 50, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(25, 135, 84, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.mobile-fab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.mobile-fab-primary {
  background: var(--color-emerald-green);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.25);
}

.mobile-fab-primary:hover, .mobile-fab-primary:focus {
  background: var(--color-deep-green);
  color: #ffffff;
}

.mobile-fab-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mobile-fab-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Trust Badge styles */
.trust-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  background: #f3f4f6;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}

/* Add margin to body to prevent content cutoff by mobile sticky bar */
@media (max-width: 767px) {
  body {
    margin-bottom: 4.5rem;
  }
}

