/* Lucent — Custom Styles */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes blob-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out both; }
.animate-fade-in-delay-1 { animation-delay: 0.1s; }
.animate-fade-in-delay-2 { animation-delay: 0.2s; }
.animate-fade-in-delay-3 { animation-delay: 0.3s; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float 8s ease-in-out 2s infinite; }
.animate-pulse-soft { animation: pulse-soft 4s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 30s linear infinite; }
.animate-blob { animation: blob-morph 8s ease-in-out infinite; }

/* ============================
   Background Patterns (CSS only)
   ============================ */

/* Dot grid pattern */
.bg-dot-pattern {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Finer dot pattern */
.bg-dot-pattern-fine {
  background-image: radial-gradient(circle, #e5e7eb 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

/* Grid lines pattern */
.bg-grid-pattern {
  background-image:
    linear-gradient(to right, #f3f4f6 1px, transparent 1px),
    linear-gradient(to bottom, #f3f4f6 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal lines */
.bg-diagonal-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(37, 99, 235, 0.03) 10px,
    rgba(37, 99, 235, 0.03) 11px
  );
}

/* Cross-hatch */
.bg-crosshatch {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(37, 99, 235, 0.02) 10px,
      rgba(37, 99, 235, 0.02) 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(37, 99, 235, 0.02) 10px,
      rgba(37, 99, 235, 0.02) 11px
    );
}

/* Radial gradient glow */
.bg-glow-blue {
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
}
.bg-glow-blue-bottom {
  background: radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

/* Gradient mesh (hero-style) */
.bg-gradient-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(219, 234, 254, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(191, 219, 254, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(224, 231, 255, 0.5) 0%, transparent 50%);
}

/* Noise texture overlay */
.bg-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* ============================
   Decorative Blob Shapes
   ============================ */
.blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  pointer-events: none;
}
.blob-blue {
  background: rgba(37, 99, 235, 0.08);
}
.blob-indigo {
  background: rgba(99, 102, 241, 0.06);
}
.blob-cyan {
  background: rgba(6, 182, 212, 0.06);
}
.blob-amber {
  background: rgba(245, 158, 11, 0.06);
}

/* ============================
   Decorative Ring / Circle
   ============================ */
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.08);
  pointer-events: none;
}
.deco-ring-dashed {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.1);
  pointer-events: none;
}

/* Striped circle (like Ziston's video-1-shape-1) */
.deco-striped-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}
.deco-striped-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(37, 99, 235, 0.1) 4px,
    rgba(37, 99, 235, 0.1) 5px
  );
}

/* Dot cluster decoration */
.deco-dots {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.15) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

/* ============================
   Card Hover Effects
   ============================ */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Icon box glow on hover */
.icon-box-glow {
  transition: all 0.3s ease;
}
.card-hover:hover .icon-box-glow {
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08);
}

/* ============================
   Gradient text
   ============================ */
.text-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   Section Dividers
   ============================ */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* ============================
   Prose styling (blog)
   ============================ */
.prose h2 { margin-top: 2em; margin-bottom: 0.75em; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.prose p { margin-bottom: 1.25em; line-height: 1.75; }
.prose ul, .prose ol { margin-bottom: 1.25em; padding-left: 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  border-left: 3px solid #2563EB;
  padding-left: 1em;
  color: #374151;
  font-style: italic;
  margin: 1.5em 0;
}
.prose code {
  background: #F3F4F6;
  padding: 0.125em 0.375em;
  border-radius: 0.25em;
  font-size: 0.875em;
}
.prose pre {
  background: #111827;
  color: #F9FAFB;
  padding: 1.25em;
  border-radius: 0.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: 0.5em; margin: 1.5em 0; }
.prose a { color: #2563EB; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #1D4ED8; }

/* ============================
   Logo cloud
   ============================ */
.grayscale-logo {
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s;
}
.grayscale-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Active nav link */
.nav-active {
  color: #2563EB !important;
}
