/* ===================================================
   NuGen Global Distributions — Shared Stylesheet
   =================================================== */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  margin: 0;
  overflow-x: hidden;
}

/* Grid pattern overlay */
.hero-pattern {
  background-image:
    linear-gradient(rgba(33, 150, 243, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── NAV ─────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 1px 20px rgba(10,22,40,0.08);
  backdrop-filter: blur(12px);
}
.nav-scrolled .nav-link { color: #1a1a2e !important; }
.nav-scrolled .nav-link:hover { color: #2196F3 !important; }
.nav-scrolled .logo-text { color: #0a1628 !important; }
.nav-scrolled .logo-icon { color: #2196F3 !important; }
.nav-scrolled .nav-cta { background: #2196F3 !important; color: #fff !important; }

.nav-link-active { color: #42a5f5 !important; }
.nav-scrolled .nav-link-active { color: #2196F3 !important; }

/* ── ANIMATIONS ──────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes rotate-globe {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.globe-ring {
  animation: rotate-globe 20s linear infinite;
  transform-origin: center;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.hero-float-card { animation: float 6s ease-in-out infinite; }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-toast { animation: slide-in 0.4s ease; }

/* ── CARDS & COMPONENTS ──────────────────────────── */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10,22,40,0.12);
}

.cta-btn {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(33,150,243,0.35);
}

.cta-btn-outline {
  transition: all 0.25s ease;
}
.cta-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.industry-card {
  transition: all 0.25s ease;
  cursor: default;
}
.industry-card:hover {
  background: #0e1e38 !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(10,22,40,0.18);
}
.industry-card:hover .industry-icon { color: #42a5f5 !important; }
.industry-card:hover .industry-label { color: #fff !important; }
.industry-card:hover .industry-icon-wrap { background: rgba(33,150,243,0.2) !important; }

.why-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

/* ── STATS BAR ───────────────────────────────────── */
.stat-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #2196F3, #64b5f6, #2196F3);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

/* ── STEP NUMBERS ────────────────────────────────── */
.step-number {
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(33,150,243,0.08);
  position: absolute;
  top: -8px;
  right: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.05em;
  pointer-events: none;
}

/* ── FORM ────────────────────────────────────────── */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}
.select-arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ── MISC ────────────────────────────────────────── */
.img-fallback {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
}

/* ── BACK TO TOP ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  background: #2196F3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(33,150,243,0.45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
  border: none;
  outline: none;
}
.back-to-top.btt-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #1565C0;
  box-shadow: 0 6px 28px rgba(33,150,243,0.6);
  transform: translateY(-3px) scale(1);
}

/* ── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0a1628 0%, #132848 55%, #1e3a5f 100%);
  padding-top: 9rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero { padding-top: 11rem; padding-bottom: 5rem; }
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.page-hero-breadcrumb .bar { width: 2rem; height: 2px; background: #42a5f5; }
.page-hero-breadcrumb span {
  color: #42a5f5;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
