/* =====================================================
   BI Solutions.ai — Enhanced Hero Section
   Dark Navy → Dramatic Cyan Bloom | 3D Diamonds | Glassmorphism
   ===================================================== */

/* ---- Hero Base Override ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #04101f 0%, #071527 30%, #071e38 55%, #062040 75%, #062850 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

/* ---- Cyan Bloom Glow System (right side) ---- */
.hero-bloom {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Primary large bloom — far right */
.bloom-primary {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(0, 212, 255, 0.22) 0%,
    rgba(0, 212, 255, 0.10) 25%,
    rgba(14, 197, 193, 0.06) 50%,
    transparent 70%);
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  animation: bloomPulse 6s ease-in-out infinite;
}

/* Secondary mid bloom */
.bloom-secondary {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(14, 197, 193, 0.18) 0%,
    rgba(0, 212, 255, 0.08) 35%,
    transparent 65%);
  top: 30%;
  right: 5%;
  animation: bloomPulse 8s ease-in-out infinite reverse;
}

/* Small accent bloom — lower right */
.bloom-accent {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(0, 240, 255, 0.25) 0%,
    rgba(0, 212, 255, 0.08) 40%,
    transparent 65%);
  bottom: 15%;
  right: 20%;
  animation: bloomPulse 5s ease-in-out 1s infinite;
}

/* Very subtle left-edge bloom to frame the text */
.bloom-left {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(0, 120, 200, 0.08) 0%,
    transparent 65%);
  top: 20%;
  left: -80px;
}

@keyframes bloomPulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50%       { opacity: 0.7; transform: translateY(-50%) scale(1.08); }
}

/* For non-translateY blooms */
.bloom-secondary,
.bloom-accent,
.bloom-left {
  animation-fill-mode: both;
}
.bloom-secondary  { animation: bloomPulseSimple 8s ease-in-out infinite reverse; }
.bloom-accent     { animation: bloomPulseSimple 5s ease-in-out 1s infinite; }

@keyframes bloomPulseSimple {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.65; transform: scale(1.1); }
}

/* ---- Particle / Node Grid ---- */
.hero-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.node {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0;
  animation: nodeFade 4s ease-in-out infinite;
}

@keyframes nodeFade {
  0%, 100% { opacity: 0; transform: scale(1); }
  40%, 60% { opacity: 0.55; transform: scale(1.4); }
}

/* Connecting lines between nodes — CSS only */
.node-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  transform-origin: left center;
  animation: lineFade 4s ease-in-out infinite;
}

@keyframes lineFade {
  0%, 100% { opacity: 0; }
  40%, 60%  { opacity: 0.6; }
}

/* ---- 3D Diamond / Geometric Shapes ---- */

/* Base diamond */
.diamond {
  position: absolute;
  transform-style: preserve-3d;
  animation: diamondFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Diamond shape via clip-path on a glass pane */
.diamond-inner {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 38%, 80% 100%, 20% 100%, 0% 38%);
  position: relative;
  overflow: hidden;
}

/* Glassmorphism diamond */
.diamond-glass {
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.18) 0%,
    rgba(14, 197, 193, 0.06) 50%,
    rgba(0, 100, 200, 0.12) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(0, 212, 255, 0.2),
    0 0 40px rgba(0, 212, 255, 0.08);
}

/* Highlight facet inside diamond */
.diamond-inner::before {
  content: '';
  position: absolute;
  top: 5%; left: 20%;
  width: 30%; height: 40%;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  clip-path: polygon(0 0, 100% 30%, 70% 100%, 0% 70%);
}

/* Diamond sizes and positions */
.diamond-xl {
  width: 120px; height: 120px;
  top: 12%; right: 9%;
  animation-duration: 9s;
  animation-delay: 0s;
}

.diamond-lg {
  width: 80px; height: 80px;
  top: 58%; right: 4%;
  animation-duration: 7s;
  animation-delay: 1.5s;
}

.diamond-md {
  width: 56px; height: 56px;
  top: 22%; right: 40%;
  animation-duration: 10s;
  animation-delay: 0.8s;
}

.diamond-sm {
  width: 38px; height: 38px;
  top: 70%; right: 38%;
  animation-duration: 6s;
  animation-delay: 2.5s;
}

.diamond-xs {
  width: 24px; height: 24px;
  top: 40%; right: 14%;
  animation-duration: 5s;
  animation-delay: 3s;
}

.diamond-xs2 {
  width: 20px; height: 20px;
  top: 82%; right: 25%;
  animation-duration: 7s;
  animation-delay: 1s;
}

/* Rotated diamond (square tilted 45°) */
.diamond-square {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.diamond-sq-lg {
  width: 70px; height: 70px;
  top: 45%; right: 30%;
  animation-duration: 8s;
  animation-delay: 2s;
}

.diamond-sq-md {
  width: 44px; height: 44px;
  top: 15%; right: 28%;
  animation-duration: 11s;
  animation-delay: 0.5s;
}

.diamond-sq-sm {
  width: 28px; height: 28px;
  top: 75%; right: 14%;
  animation-duration: 6.5s;
  animation-delay: 3.5s;
}

/* Sphere/orb (circle with glass) */
.diamond-orb {
  clip-path: circle(50% at 50% 50%);
}

.diamond-orb-lg {
  width: 64px; height: 64px;
  top: 35%; right: 2%;
  animation-duration: 9s;
  animation-delay: 1.2s;
}

.diamond-orb-sm {
  width: 32px; height: 32px;
  top: 65%; right: 48%;
  animation-duration: 7.5s;
  animation-delay: 4s;
}

/* Cyan-tinted variant */
.diamond-cyan .diamond-inner {
  background: linear-gradient(135deg,
    rgba(0, 230, 255, 0.28) 0%,
    rgba(0, 180, 255, 0.10) 60%,
    rgba(0, 212, 255, 0.15) 100%);
  border: 1px solid rgba(0, 230, 255, 0.45);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 0 24px rgba(0, 220, 255, 0.3),
    0 0 50px rgba(0, 212, 255, 0.12);
}

/* Teal variant */
.diamond-teal .diamond-inner {
  background: linear-gradient(135deg,
    rgba(14, 197, 193, 0.22) 0%,
    rgba(0, 170, 180, 0.08) 60%,
    rgba(14, 197, 193, 0.14) 100%);
  border: 1px solid rgba(14, 197, 193, 0.4);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(14, 197, 193, 0.25),
    0 0 40px rgba(14, 197, 193, 0.10);
}

/* Float animations */
@keyframes diamondFloat {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-14px) rotate(5deg); }
  50%  { transform: translateY(-22px) rotate(-3deg); }
  75%  { transform: translateY(-10px) rotate(8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes diamondFloatAlt {
  0%   { transform: translateY(0px) rotate(45deg); }
  33%  { transform: translateY(-18px) rotate(52deg); }
  66%  { transform: translateY(-8px) rotate(38deg); }
  100% { transform: translateY(0px) rotate(45deg); }
}

.diamond-sq-lg .diamond-inner,
.diamond-sq-md .diamond-inner,
.diamond-sq-sm .diamond-inner {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.diamond-sq-lg,
.diamond-sq-md,
.diamond-sq-sm {
  animation-name: diamondFloatAlt;
}

/* ---- Enhanced Dashboard Mockup ---- */
.hero-dashboard-wrap {
  position: relative;
  z-index: 2;
}

/* Perspective tilt on dashboard — like mockup image */
.hero-dashboard-tilt {
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  animation: dashboardTilt 6s ease-in-out infinite;
}

@keyframes dashboardTilt {
  0%, 100% { transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) translateY(0); }
  50%       { transform: perspective(1000px) rotateY(-5deg) rotateX(1deg) translateY(-10px); }
}

.hero-dashboard-tilt:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-5px) !important;
  animation-play-state: paused;
}

/* Dashboard glow behind it */
.hero-dashboard-wrap::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center,
    rgba(0, 212, 255, 0.18) 0%,
    rgba(0, 212, 255, 0.06) 50%,
    transparent 75%);
  border-radius: 30px;
  z-index: -1;
  animation: dashGlow 4s ease-in-out infinite;
}

@keyframes dashGlow {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 1.0; }
}

/* Enhanced dashboard card itself */
.hero-dashboard {
  background: rgba(6, 18, 38, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 212, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Sub-mini charts inside dashboard */
.mini-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mini-chart {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}

.mini-chart-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

/* Sparkline bars */
.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
}

.spark-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.7), rgba(14, 197, 193, 0.5));
  min-width: 3px;
}

/* Neural network dots in dashboard */
.neural-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  height: 40px;
  align-items: center;
}

.neural-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.5);
  margin: auto;
  animation: dotPulse 2s ease-in-out infinite;
}

.neural-dot:nth-child(odd)  { animation-delay: 0.3s; background: rgba(14, 197, 193, 0.6); }
.neural-dot:nth-child(3n)   { animation-delay: 0.6s; background: rgba(0, 180, 255, 0.4); width: 4px; height: 4px; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1.0; transform: scale(1.4); }
}

/* ---- AI Text Badge (like in mockup) ---- */
.hero-ai-badge {
  position: absolute;
  bottom: 12%;
  right: 44%;
  background: rgba(6, 18, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.05);
  animation: aiBadgePulse 3s ease-in-out infinite;
  z-index: 3;
  letter-spacing: -1px;
}

@keyframes aiBadgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.3), inset 0 0 20px rgba(0,212,255,0.05); }
  50%       { box-shadow: 0 0 40px rgba(0,212,255,0.55), inset 0 0 30px rgba(0,212,255,0.1); }
}

/* ---- Connection Lines between diamonds (SVG overlay) ---- */
.hero-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---- Hero grid Z-index fix ---- */
.hero-content  { position: relative; z-index: 2; }
.hero-visual   { position: relative; z-index: 2; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .diamond-xl, .diamond-lg, .diamond-sq-lg, .diamond-orb-lg { display: none; }
  .bloom-primary { width: 500px; height: 500px; right: -150px; }
  .bloom-secondary { display: none; }
  .hero-ai-badge { bottom: 5%; right: 42%; width: 50px; height: 50px; font-size: 0.9rem; }
  .hero-dashboard-tilt { transform: none !important; animation: none !important; }
}

@media (max-width: 480px) {
  .diamond-md, .diamond-sm, .diamond-sq-md { display: none; }
  .hero-ai-badge { display: none; }
}
