/* ============================================
   TATI LABS, LINE & LOTUS ACCENT ANIMATIONS
   Thin structural lines forming geometric shapes
   Subtle, intentional, never decorative
   ============================================ */

/* === LINE-DRAW LOTUS (SVG accent) === */
.lotus-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

.lotus-accent svg {
  width: 100%;
  height: 100%;
}

.lotus-accent path {
  fill: none;
  stroke: var(--deep-indigo);
  stroke-width: 0.8;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.lotus-accent.visible path {
  animation: lineReveal 3s ease forwards;
}

@keyframes lineReveal {
  to { stroke-dashoffset: 0; }
}

/* === CONNECTING LINES between sections === */
.section-connector {
  position: relative;
}

.section-connector::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -1px;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--line-color-strong), transparent);
  transform: translateX(-50%);
}

/* === FLOWING DOTS (represents data/information flowing) === */
.flow-line {
  position: absolute;
  width: 1px;
  height: 120px;
  overflow: hidden;
  opacity: 0.15;
  pointer-events: none;
}

.flow-line::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--soft-violet));
  animation: flowDown 4s ease-in-out infinite;
}

@keyframes flowDown {
  0% { top: -20px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 120px; opacity: 0; }
}

/* === GEOMETRIC GRID PATTERN (represents underlying structure) === */
.grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}

.grid-pattern.visible {
  opacity: 1;
}

.grid-pattern svg {
  width: 100%;
  height: 100%;
}

.grid-pattern line {
  stroke: var(--text-primary);
  stroke-width: 0.3;
  opacity: 0.04;
}

/* === PETAL UNFOLD, small decorative lotus petals that draw in === */
.petal-group {
  position: relative;
  width: 80px;
  height: 80px;
}

.petal-group svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.petal-group path {
  fill: none;
  stroke: var(--soft-violet);
  stroke-width: 0.6;
  opacity: 0.12;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.5s ease;
}

.petal-group.visible path {
  stroke-dashoffset: 0;
}

.petal-group.visible path:nth-child(2) { transition-delay: 0.2s; }
.petal-group.visible path:nth-child(3) { transition-delay: 0.4s; }
.petal-group.visible path:nth-child(4) { transition-delay: 0.6s; }
.petal-group.visible path:nth-child(5) { transition-delay: 0.8s; }
