/* =========================
   EFFECTS LAYER
   J. M. Taggart Website
   Glow • Sparkles • Animation • Atmosphere
   ========================= */


/* =========================
   ✨ BACKGROUND GLOW FIELD
   ========================= */

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 20% 25%, rgba(203,178,122,0.16), transparent 45%),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at 40% 85%, rgba(203,178,122,0.12), transparent 50%);

  filter: blur(1.5px);
  animation: drift 16s ease-in-out infinite alternate;
}


/* ✨ Glow drifting motion */
@keyframes drift {
  from { transform: translateY(0px); }
  to { transform: translateY(-18px); }
}


/* =========================
   ✨ CURSOR SPARKLES
   ========================= */

.sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;

  background: radial-gradient(circle, #cbb27a, transparent 70%);
  animation: sparkleFade 0.8s ease-out forwards;
}


/* ✨ Sparkle fade animation */
@keyframes sparkleFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}


/* =========================
   ✨ HEADER ATMOSPHERIC OVERLAY
   ========================= */

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(203,178,122,0.08), transparent 70%);
  pointer-events: none;
}


/* =========================
   ✨ GLOBAL SMOOTH ANIMATIONS
   ========================= */

/* Smooth page rendering feel */
html {
  scroll-behavior: smooth;
}

/* Gentle fade-in for entire page */
body {
  animation: pageFade 0.8s ease-out;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* =========================
   ✨ HOVER MICRO-INTERACTIONS
   ========================= */

/* Slight lift for interactive elements (fallback safety) */
a,
.button,
.btn,
.book {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Soft glow on hover for book cards */
.book:hover {
  box-shadow: 0 0 25px rgba(203,178,122,0.25);
}


/* =========================
   ✨ OPTIONAL: TEXT GLOW ACCENT
   ========================= */

h1 {
  text-shadow: 0 0 10px rgba(203,178,122,0.15);
}

.tagline {
  text-shadow: 0 0 8px rgba(203,178,122,0.1);
}