/* Axencia.co — Securing the Globe: World-Class Animations */

.globe-section {
  position: relative;
  overflow: hidden;
}

.globe-section .globe-header,
.globe-section .globe-visual,
.globe-section .globe-features {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.globe-section.in-view .globe-header,
.globe-section.in-view .globe-visual,
.globe-section.in-view .globe-features {
  opacity: 1;
  transform: translateY(0);
}

.globe-section.in-view .globe-visual { transition-delay: 0.15s; }
.globe-section.in-view .globe-features { transition-delay: 0.3s; }

.globe-header {
  text-align: center;
  margin-bottom: 56px;
}

.globe-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  animation: globeLivePulse 5s ease-in-out infinite;
}

.globe-live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: globeLiveDot 4s ease-in-out infinite;
}

@keyframes globeLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { opacity: 0.9; transform: scale(1.2); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes globeLivePulse {
  0%, 100% { border-color: rgba(34, 197, 94, 0.35); }
  50% { border-color: rgba(34, 197, 94, 0.6); box-shadow: 0 0 20px rgba(34, 197, 94, 0.15); }
}

.globe-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e8e8ed, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.globe-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Globe visual */
.globe-visual {
  position: relative;
  max-width: 600px;
  margin: 0 auto 48px;
  aspect-ratio: 1;
}

.globe-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9) 0%, rgba(3, 7, 18, 0.95) 70%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 0 80px rgba(59, 130, 246, 0.15),
    inset 0 0 60px rgba(59, 130, 246, 0.05);
}

/* Orbiting rings — slow, smooth movement */
.globe-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.15);
  animation: globeRingRotate 45s linear infinite;
}

.globe-ring-2 { inset: 18%; animation-duration: 55s; animation-direction: reverse; }
.globe-ring-3 { inset: 26%; animation-duration: 40s; animation-delay: -5s; }

@keyframes globeRingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Core glow */
.globe-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(6, 182, 212, 0.2) 50%, transparent 70%);
  animation: globeCorePulse 6s ease-in-out infinite;
}

@keyframes globeCorePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Connection nodes */
.globe-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.globe-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
  animation: globeNodePulse 2s ease-in-out infinite;
}

.globe-node:nth-child(1) { animation-delay: 0s; }
.globe-node:nth-child(2) { animation-delay: 0.5s; }
.globe-node:nth-child(3) { animation-delay: 1s; }
.globe-node:nth-child(4) { animation-delay: 1.5s; }
.globe-node:nth-child(5) { animation-delay: 2s; }
.globe-node:nth-child(6) { animation-delay: 2.5s; }
.globe-node:nth-child(7) { animation-delay: 3s; }
.globe-node:nth-child(8) { animation-delay: 3.5s; }

@keyframes globeNodePulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 12px rgba(96, 165, 250, 0.8); }
  50% { transform: scale(1.4); opacity: 0.9; box-shadow: 0 0 24px rgba(96, 165, 250, 1); }
}

.globe-node { animation-duration: 4s; }

/* Connection lines */
.globe-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.globe-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
  transform-origin: left center;
  animation: globeLineFlow 3s ease-in-out infinite;
}

.globe-line-1 { top: 30%; left: 25%; width: 35%; transform: rotate(-25deg); animation-delay: 0s; }
.globe-line-2 { top: 45%; left: 50%; width: 30%; transform: rotate(15deg); animation-delay: 0.5s; }
.globe-line-3 { top: 60%; left: 20%; width: 40%; transform: rotate(-10deg); animation-delay: 1s; }
.globe-line-4 { top: 25%; left: 55%; width: 35%; transform: rotate(30deg); animation-delay: 1.5s; }
.globe-line-5 { top: 70%; left: 45%; width: 30%; transform: rotate(-20deg); animation-delay: 2s; }
.globe-line-6 { top: 40%; left: 15%; width: 45%; transform: rotate(5deg); animation-delay: 2.5s; }

.globe-line { animation-duration: 6s; }

@keyframes globeLineFlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

/* Outer pulse */
.globe-pulse {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  animation: globePulseExpand 4s ease-out infinite;
}

@keyframes globePulseExpand {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 0; }
}

.globe-pulse { animation-duration: 8s; }

/* Stats */
.globe-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.globe-stat {
  text-align: center;
  padding: 24px 36px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  min-width: 140px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.globe-stat:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.1);
}

.globe-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #60a5fa;
  font-variant-numeric: tabular-nums;
}

.globe-stat-suffix {
  font-size: 1.1rem;
  color: #93c5fd;
  margin-left: 2px;
}

.globe-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Feature pills */
.globe-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.globe-feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #93c5fd;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.globe-feature:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.globe-feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-feature-icon svg {
  width: 100%;
  height: 100%;
  color: #60a5fa;
  transition: all 0.4s ease;
}

.globe-feature:hover .globe-feature-icon svg {
  color: #38bdf8;
  transform: scale(1.1);
}

/* Axencia Connect — subtle connector animation */
.globe-axencia-connect .globe-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
  border-radius: 2px;
  animation: axenciaConnectPulse 6s ease-in-out infinite;
}

@keyframes axenciaConnectPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

.globe-axencia-connect .globe-live {
  animation: globeLivePulse 5s ease-in-out infinite, axenciaConnectGlow 8s ease-in-out infinite;
}

@keyframes axenciaConnectGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 24px rgba(59, 130, 246, 0.15); }
}

@media (max-width: 768px) {
  .globe-visual { max-width: 320px; margin: 0 auto 32px; }
  .globe-stats { gap: 20px; }
  .globe-stat { padding: 20px 24px; min-width: 110px; }
  .globe-stat-num { font-size: 1.75rem; }
}
