/* ═══════════════════════════════════════════════════════════════════════
   WORLDWIDE MEDITATION — ANIMATION & GRAPHICS ENHANCEMENTS
   Modern, swish, polished animations and visual effects
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── PARTICLE CANVAS (Hero Background) ─── */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ─── ANIMATED GRADIENT BACKGROUNDS ─── */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* ─── FLOATING ANIMATION ─── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* ─── PULSE GLOW ─── */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.6), 0 0 60px rgba(245, 158, 11, 0.2); }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* ─── SCROLL REVEAL ANIMATIONS ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── GLASSMORPHISM CARDS ─── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Dark glass variant */
.glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card-dark:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ─── SHIMMER TEXT EFFECT ─── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(90deg, #f59e0b 0%, #fff 25%, #fbbf24 50%, #fff 75%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ─── NEON GLOW BORDERS ─── */
@keyframes neonPulse {
    0%, 100% { border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 0 10px rgba(245, 158, 11, 0.1); }
    50% { border-color: rgba(245, 158, 11, 0.8); box-shadow: 0 0 25px rgba(245, 158, 11, 0.3), 0 0 50px rgba(245, 158, 11, 0.1); }
}

.neon-border {
    animation: neonPulse 3s ease-in-out infinite;
}

/* ─── MAGNETIC BUTTON EFFECT ─── */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.magnetic-btn:hover::before {
    width: 300px;
    height: 300px;
}

.magnetic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}

/* ─── TILT CARD EFFECT ─── */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.tilt-card .tilt-content {
    transform: translateZ(20px);
}

/* ─── AURORA BACKGROUND ─── */
@keyframes aurora {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

.aurora-bg {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15) 0%, 
        rgba(59, 130, 246, 0.15) 25%, 
        rgba(16, 185, 129, 0.15) 50%, 
        rgba(245, 158, 11, 0.15) 75%, 
        rgba(239, 68, 68, 0.15) 100%);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
}

/* ─── COUNTDOWN PULSE ─── */
@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.countdown-pulse {
    animation: countdownPulse 2s ease-in-out infinite;
}

/* ─── STAGGER ENTRANCE ─── */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stagger-entrance > * {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.stagger-entrance > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-entrance > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-entrance > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-entrance > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-entrance > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-entrance > *:nth-child(6) { animation-delay: 0.6s; }

/* ─── QUOTE CARD HOVER LIFT ─── */
.quote-card-lift {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote-card-lift:hover {
    transform: translateY(-6px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ─── PARTICLE ORBS ─── */
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(30px, -40px) scale(1.2); opacity: 0.8; }
    50% { transform: translate(-20px, -60px) scale(0.9); opacity: 0.5; }
    75% { transform: translate(40px, -30px) scale(1.1); opacity: 0.7; }
}

.particle-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

/* ─── NAV LINK UNDERLINE ANIMATION ─── */
.nav-link-animated {
    position: relative;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-animated:hover::after {
    width: 100%;
}

/* ─── PROGRESSIVE BLUR ─── */
@keyframes blurIn {
    from { filter: blur(20px); opacity: 0; transform: scale(1.1); }
    to { filter: blur(0); opacity: 1; transform: scale(1); }
}

.blur-in {
    animation: blurIn 0.8s ease forwards;
}

/* ─── SMOOTH SCROLL BEHAVIOR ─── */
html {
    scroll-behavior: smooth;
}

/* ─── CUSTOM SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

/* ─── FOCUS STATES ─── */
*:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── MOBILE OPTIMIZATIONS ─── */
@media (max-width: 768px) {
    .glass-card:hover,
    .glass-card-dark:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .particle-orb {
        display: none;
    }
}