/* ============================================================
   ASK AUNTY MIMI — GRAIN TEXTURE & ORGANIC BACKGROUND SYSTEM
   Subtle noise + floating shapes for the "Clean Sanctuary" theme
   ============================================================ */

/* ── GRAIN TEXTURE OVERLAY ─────────────────────────────── */
/* Applied globally via body::before in main.css,
   but this file provides additional grain control */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* ── ORGANIC BLOB SHAPES ───────────────────────────────── */
/* These are decorative background shapes for sections */
.organic-bg {
  position: relative;
  overflow: hidden;
}

.organic-bg::before,
.organic-bg::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

/* Teal blob — upper right */
.organic-bg::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  animation: blobFloat1 12s ease-in-out infinite;
}

/* Purple blob — lower left */
.organic-bg::after {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
  animation: blobFloat2 15s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-20px, 15px) scale(1.05); }
  66%       { transform: translate(10px, -10px) scale(0.97); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(15px, -20px) scale(1.04); }
  66%       { transform: translate(-10px, 12px) scale(0.98); }
}

/* ── SECTION SPECIFIC SHAPES ───────────────────────────── */
/* How It Works section — warm orange shape */
#how-it-works.organic-bg::before {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  width: 300px;
  height: 300px;
  top: 50px;
  right: 5%;
}

/* Services section — success green accent */
#services.organic-bg::after {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  width: 450px;
  height: 450px;
  bottom: -100px;
  right: -100px;
}

/* Languages section */
#languages.organic-bg::before {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 70%);
  top: -50px;
  left: 20%;
}

/* Privacy section */
#privacy.organic-bg::before {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  top: 30px;
  right: 10%;
}

/* ── DOTTED GRID PATTERN (ultra-subtle) ────────────────── */
.dot-grid-bg {
  background-image: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.08) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  background-position: center center;
}

/* ── HERO SECTION SHAPES ───────────────────────────────── */
/* Additional decorative shapes layered on hero */
.hero-shape-tl {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  animation: blobFloat1 10s ease-in-out infinite;
}

.hero-shape-br {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
  z-index: 1;
  animation: blobFloat2 8s ease-in-out infinite 1s;
}

/* ── CARD SHIMMER ON HOVER ─────────────────────────────── */
.shimmer-card {
  position: relative;
  overflow: hidden;
}

.shimmer-card::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 70%;
  height: 300%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%
  );
  transition: none;
  pointer-events: none;
}

.shimmer-card:hover::after {
  animation: shimmerPass 0.6s ease forwards;
}

@keyframes shimmerPass {
  from { left: -100%; top: -100%; }
  to   { left: 120%; top: -100%; }
}

/* ── FROSTED SECTION DIVIDER ───────────────────────────── */
.section-divider-wave {
  height: 60px;
  background: linear-gradient(180deg, #F0F4F8 0%, #FAFAFA 100%);
  clip-path: ellipse(55% 100% at 50% 0%);
  margin-top: -30px;
  position: relative;
  z-index: 1;
}

/* ── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .organic-bg::before,
  .organic-bg::after,
  .hero-shape-tl,
  .hero-shape-br {
    animation: none;
  }
}

/* ── PERFORMANCE: disable on low-end ──────────────────── */
@media (max-width: 480px) {
  .organic-bg::before,
  .organic-bg::after {
    filter: blur(40px);
    opacity: 0.5;
  }
}
