/* ─── PrimePathAI Enhancements — Animations & Dynamic Effects ─── */

/* ── Gradient Orbs ────────────────────────────────────────────── */
.hero-orb-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,165,90,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: orb-in 1.2s ease-out forwards, orb-float1 9s 1.2s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,147,90,0.09) 0%, transparent 70%);
  top: 50px; right: -80px;
  animation: orb-in 1.4s 0.3s ease-out forwards, orb-float2 11s 1.4s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,208,144,0.07) 0%, transparent 70%);
  bottom: 0; left: 40%;
  animation: orb-in 1.6s 0.6s ease-out forwards, orb-float3 13s 1.6s ease-in-out infinite;
}
@keyframes orb-in { to { opacity: 1; } }
@keyframes orb-float1 {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(30px,-20px); }
  66% { transform: translate(-20px,30px); }
}
@keyframes orb-float2 {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(-25px,15px); }
  66% { transform: translate(20px,-25px); }
}
@keyframes orb-float3 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(15px,-20px); }
}

/* ── Hero enhancements ────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }

/* Gradient shimmer on H1 */
h1 .gradient-word {
  background: linear-gradient(90deg, #1a1610 0%, #c9a55a 40%, #b8935a 70%, #1a1610 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 4s linear infinite;
}
@keyframes text-shimmer {
  to { background-position: 200% center; }
}

/* Floating notification card */
.hero-notification {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,252,245,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201,165,90,0.28);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: #7a7060;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(201,165,90,0.12);
  animation: notif-enter 0.8s cubic-bezier(0.22,1,0.36,1) both, notif-float 4s 0.8s ease-in-out infinite;
}
.hero-notification .dot {
  width: 8px; height: 8px;
  background: #c9a55a;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201,165,90,0.6);
  animation: pulse-dot 2s ease infinite;
}
.hero-notification strong { color: #1a1610; }
@keyframes notif-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes notif-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Hero entry animations */
.hero-copy {
  animation: hero-copy-in 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Stats Strip ──────────────────────────────────────────────── */
.stats-strip {
  padding: 3rem 0;
  border-top: 1px solid rgba(201,165,90,0.12);
  border-bottom: 1px solid rgba(201,165,90,0.12);
  background: linear-gradient(180deg, rgba(201,165,90,0.03) 0%, transparent 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(201,165,90,0.12);
  transition: border-color 200ms ease, background 200ms ease;
}
.stat-item:hover {
  border-color: rgba(201,165,90,0.32);
  background: rgba(255,255,255,0.95);
}
.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #b8935a 0%, #e8d090 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  color: #9a8a70;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Marquee ──────────────────────────────────────────────────── */
.marquee-strip {
  padding: 1.2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(201,165,90,0.1);
  border-bottom: 1px solid rgba(201,165,90,0.1);
  background: rgba(201,165,90,0.03);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  color: #9a8e7c;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.marquee-item .sep {
  color: #c9a55a;
  font-size: 1.2rem;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Scroll reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Enhanced card ────────────────────────────────────────────── */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,165,90,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
  border-radius: inherit;
}
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Animated gradient CTA button ────────────────────────────── */
.btn-primary-glow {
  background: linear-gradient(135deg, #c9a55a 0%, #e8d090 50%, #c9a55a 100%);
  background-size: 200% auto;
  color: #1a1610 !important;
  animation: btn-shimmer 3s linear infinite;
  box-shadow: 0 0 30px rgba(201,165,90,0.3), 0 8px 25px rgba(0,0,0,0.08);
  border: none;
}
.btn-primary-glow:hover {
  box-shadow: 0 0 50px rgba(201,165,90,0.45), 0 12px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}
@keyframes btn-shimmer {
  to { background-position: 200% center; }
}

/* ── Section heading tag ─────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,165,90,0.08);
  border: 1px solid rgba(201,165,90,0.22);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b8935a;
  margin-bottom: 0.75rem;
}

/* ── Mobile fixes ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.8rem; }
}

/* ── All-in-one service card ──────────────────────────────────── */
.aio-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.2rem 2rem;
  border-color: rgba(201,165,90,0.2);
  background: linear-gradient(160deg, rgba(201,165,90,0.04) 0%, #ffffff 50%);
}
.aio-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(201,165,90,0.12);
}
.aio-badge {
  display: inline-block;
  background: linear-gradient(90deg, #c9a55a, #e8d090);
  color: #1a1610;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.aio-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #1a1610;
}
.aio-subtitle {
  color: #7a7060;
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
.aio-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  margin-bottom: 2rem;
}
.aio-feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.aio-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.aio-feature strong {
  display: block;
  color: #1a1610;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.aio-feature p {
  color: #7a7060;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}
.aio-footer {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201,165,90,0.1);
  flex-wrap: wrap;
}
.aio-note {
  color: #9a8a70;
  font-size: 0.85rem;
  font-weight: 500;
}
@media (max-width: 640px) {
  .aio-features { grid-template-columns: 1fr; }
  .aio-card { padding: 1.5rem 1.2rem; }
  .aio-footer { justify-content: center; text-align: center; }
}

/* ── Scrolled nav ─────────────────────────────────────────────── */
.site-header.scrolled {
  background: rgba(250,248,243,0.97);
  box-shadow: 0 1px 0 rgba(201,165,90,0.12), 0 4px 20px rgba(160,130,60,0.06);
}

/* Active nav link */
.main-nav a.active {
  color: #c9a55a;
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-notification, .hero-copy,
  .marquee-track, h1 .gradient-word, .btn-primary-glow {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
