/* Shared Base Styles */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility: Animate onScroll fade-up */
.animate-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lift */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

/* Glass morphism */
.glass-panel {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
}

/* Smooth pulse for CTA rings */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.45); }
  70% { box-shadow: 0 0 0 18px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
.pulse-ring {
  animation: pulse-ring 2.4s infinite;
}

/* Section spacing */
.section-pad {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .section-pad {
    padding: 48px 0;
  }
}

/* ======== CUSTOM STYLES: Indigo + Violet Alliance Network ======== */

/* Animated connection line SVG decoration */
.bg-network-lines {
  position: relative;
  overflow: hidden;
}

.bg-network-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%236366f1;stop-opacity:0.12'/%3E%3Cstop offset='100%25' style='stop-color:%23a78bfa;stop-opacity:0.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='15%25' cy='25%25' r='4' fill='%236366f1' opacity='0.15'/%3E%3Ccircle cx='35%25' cy='40%25' r='3' fill='%238b5cf6' opacity='0.12'/%3E%3Ccircle cx='55%25' cy='30%25' r='5' fill='%23a78bfa' opacity='0.15'/%3E%3Ccircle cx='75%25' cy='50%25' r='4' fill='%236366f1' opacity='0.12'/%3E%3Ccircle cx='85%25' cy='65%25' r='3' fill='%238b5cf6' opacity='0.15'/%3E%3Ccircle cx='20%25' cy='70%25' r='5' fill='%23a78bfa' opacity='0.12'/%3E%3Cline x1='15%25' y1='25%25' x2='35%25' y2='40%25' stroke='%236366f1' stroke-width='1' opacity='0.1'/%3E%3Cline x1='35%25' y1='40%25' x2='55%25' y2='30%25' stroke='%238b5cf6' stroke-width='1' opacity='0.1'/%3E%3Cline x1='55%25' y1='30%25' x2='75%25' y2='50%25' stroke='%23a78bfa' stroke-width='1' opacity='0.1'/%3E%3Cline x1='75%25' y1='50%25' x2='85%25' y2='65%25' stroke='%236366f1' stroke-width='1' opacity='0.1'/%3E%3Cline x1='20%25' y1='70%25' x2='55%25' y2='30%25' stroke='%238b5cf6' stroke-width='1' opacity='0.08'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

/* Indigo glow on hover for cards */
.indigo-glow {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}

.indigo-glow:hover {
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.18), 0 0 8px rgba(167, 139, 250, 0.10);
  border-color: rgba(99, 102, 241, 0.20);
}

/* Gradient text utility */
.text-gradient-indigo-violet {
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient border card */
.gradient-border-card {
  position: relative;
  background: white;
  border-radius: 16px;
}

.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, #6366f1, #a78bfa, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Pulse dot animation */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.8); }
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Network node hover effect */
.network-node {
  transition: all 0.3s ease;
}

.network-node:hover {
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
  transform: scale(1.15);
}

/* Section divider with gradient */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #6366f1, #a78bfa, #6366f1, transparent);
  border: none;
  margin: 0;
  opacity: 0.4;
}

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Staggered animation delays */
.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 scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #a78bfa);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4f46e5, #8b5cf6);
}

/* Active nav link indicator */
.nav-active {
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
}
