/* Custom Stylesheet for BFTS Global - White-Centric Rebrand */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary-light: #FFFFFF;
  --color-secondary-light: #F9FAFB;
  --color-tertiary-light: #F3F4F6;
  --color-text-dark: #111827;
  --color-text-muted: #4B5563;
  --color-brand-blue: #0A6A8B;     /* Logo Blue-Teal */
  --color-brand-green: #7BB833;    /* Logo Lime Green */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-primary-light);
  color: var(--color-text-dark);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-secondary-light);
}
::-webkit-scrollbar-thumb {
  background: rgba(10, 106, 139, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-blue);
}

/* Glassmorphism Styles (Light Mode) */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
}

.glass-panel-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 106, 139, 0.2);
  box-shadow: 0 12px 40px 0 rgba(10, 106, 139, 0.08);
  transform: translateY(-4px);
}

/* Glow Text & Buttons */
.glow-text-teal {
  text-shadow: 0 0 12px rgba(10, 106, 139, 0.15);
}
.glow-text-green {
  text-shadow: 0 0 12px rgba(123, 184, 51, 0.15);
}

.glow-btn-teal {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.glow-btn-teal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.5s ease;
}
.glow-btn-teal:hover::before {
  left: 100%;
}
.glow-btn-teal:hover {
  box-shadow: 0 4px 15px rgba(10, 106, 139, 0.3);
}

/* Tech Mesh Grid Backgrounds (Light Mode) */
.tech-grid {
  position: relative;
}
.tech-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Energy Pulse Keyframe Animations */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(123, 184, 51, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(123, 184, 51, 0.6);
  }
}
.energy-pulse-green {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes energyFlow {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.energy-flow-path {
  stroke-dasharray: 8 4;
  animation: energyFlow 4s linear infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Mega-Menu Styling (Light Mode) */
.mega-menu-wrapper {
  perspective: 1000px;
}
.mega-menu-content {
  opacity: 0;
  visibility: hidden;
  transform: rotateX(-10deg) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}
.group:hover .mega-menu-content {
  opacity: 1;
  visibility: visible;
  transform: rotateX(0deg) translateY(0);
}

/* Custom Inverted Hero Gradient Overlay (Light Mode) */
.hero-gradient {
  background: radial-gradient(circle at 50% 30%, rgba(10, 106, 139, 0.04), transparent 60%);
}

/* Product Card Spec Table */
.spec-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}
.spec-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Map Simulation Styling */
.map-canvas {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
  background-size: 16px 16px;
}
.map-point {
  position: relative;
}
.map-point::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-brand-blue);
  border-radius: 50%;
  top: -6px;
  left: -6px;
  animation: mapPulse 1.8s infinite ease-out;
  opacity: 0;
}
@keyframes mapPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Smooth Tab Transition */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Open Back-drop Styling (Light Mode Overlay) */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}
