/* ============================================================
   FASHION CROWN — Luxury Fashion Awards & Voting Platform
   Animation System v2.0
   ============================================================ */

/* -----------------------------------------------------------
   1. KEYFRAME ANIMATIONS
   ----------------------------------------------------------- */

/* Fade In */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Fade In Up — Primary entrance animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left — used for vote feed entries */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right — used for mobile nav overlay */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In — modal / popup appearance */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scale Flip — countdown number change animation */
@keyframes scaleFlip {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Pulse — live indicator, pulse-dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Spin — loading spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Shimmer — skeleton loading placeholder */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Float — podium crown, decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Gold Pulse — vote update flash on card border */
@keyframes goldPulse {
    0% {
        border-color: var(--gold);
        box-shadow: 0 0 20px rgba(255, 77, 109, 0.2);
    }
    50% {
        border-color: transparent;
        box-shadow: 0 0 0 rgba(255, 77, 109, 0);
    }
    100% {
        border-color: var(--border-subtle);
        box-shadow: none;
    }
}

/* Row Flash — rankings table row highlight on update */
@keyframes rowFlash {
    0% {
        background-color: transparent;
    }
    25% {
        background-color: rgba(255, 77, 109, 0.08);
    }
    100% {
        background-color: transparent;
    }
}

/* Bounce Down — hero scroll indicator */
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(12px);
    }
    60% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* Glow Pulse — premium gold glow effect */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 77, 109, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 77, 109, 0.25);
    }
}

/* Confetti Fall — celebratory vote success */
@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Gradient Shift — subtle hero background movement */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ripple — button click feedback */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.4;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Expand width — progress bars */
@keyframes expandWidth {
    0% {
        width: 0;
    }
    100% {
        width: var(--target-width, 100%);
    }
}

/* Count up — animated stat numbers */
@keyframes countPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Slide Up Fade */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle Zoom */
@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.02);
    }
}

/* Badge Appear */
@keyframes badgeAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Underline Draw — nav link underline animation */
@keyframes underlineDraw {
    0% {
        width: 0;
        left: 50%;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

/* Dot Pulse — loading dots */
@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shake — error state */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

/* Success Check — checkmark draw */
@keyframes successCheck {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Breathing — ambient glow */
@keyframes breathing {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Ticker Scroll — text marquee */
@keyframes tickerScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* -----------------------------------------------------------
   2. SCROLL ANIMATIONS (IntersectionObserver Integration)
   ----------------------------------------------------------- */

/* Base scroll-animate state: invisible, shifted down */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Triggered by JS: IntersectionObserver adds .animate-in */
.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children — creates a cascading entrance */
.scroll-animate:nth-child(1) { transition-delay: 0s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate:nth-child(5) { transition-delay: 0.4s; }
.scroll-animate:nth-child(6) { transition-delay: 0.5s; }
.scroll-animate:nth-child(7) { transition-delay: 0.6s; }
.scroll-animate:nth-child(8) { transition-delay: 0.7s; }
.scroll-animate:nth-child(9) { transition-delay: 0.8s; }
.scroll-animate:nth-child(10) { transition-delay: 0.9s; }
.scroll-animate:nth-child(11) { transition-delay: 1.0s; }
.scroll-animate:nth-child(12) { transition-delay: 1.1s; }

/* Scroll-animate variants */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

.scroll-animate-fade {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-fade.animate-in {
    opacity: 1;
}


/* -----------------------------------------------------------
   3. PAGE ENTER ANIMATION
   ----------------------------------------------------------- */
body {
    animation: fadeIn 0.6s ease;
}


/* -----------------------------------------------------------
   4. HOVER EFFECTS (Reusable classes)
   ----------------------------------------------------------- */

/* Lift on hover — cards, interactive elements */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gold glow on hover */
.hover-glow {
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: var(--shadow-gold);
}

/* Subtle scale on hover */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Gold border on hover */
.hover-border {
    transition: border-color 0.4s ease;
}

.hover-border:hover {
    border-color: rgba(255, 77, 109, 0.3);
}

/* Opacity reveal on hover */
.hover-reveal {
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.hover-reveal:hover {
    opacity: 1;
}

/* Tilt on hover (subtle 3D) */
.hover-tilt {
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
}

.hover-tilt:hover {
    transform: perspective(800px) rotateY(2deg) rotateX(-1deg);
}

/* Shine sweep on hover */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.hover-shine:hover::before {
    left: 100%;
}


/* -----------------------------------------------------------
   5. ANIMATION UTILITY CLASSES
   ----------------------------------------------------------- */

/* Animation delays */
.delay-1 {
    animation-delay: 0.15s;
    transition-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
    transition-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

.delay-5 {
    animation-delay: 0.75s;
    transition-delay: 0.75s;
}

.delay-6 {
    animation-delay: 0.9s;
    transition-delay: 0.9s;
}

/* Pre-built entrance animations */
.fade-in {
    animation: fadeIn 0.6s ease both;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Animation duration modifiers */
.anim-fast {
    animation-duration: 0.3s !important;
}

.anim-normal {
    animation-duration: 0.6s !important;
}

.anim-slow {
    animation-duration: 1.2s !important;
}

/* Animation fill modes */
.anim-fill-both {
    animation-fill-mode: both;
}

.anim-fill-forwards {
    animation-fill-mode: forwards;
}

/* Looping utilities */
.anim-infinite {
    animation-iteration-count: infinite;
}

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

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

.anim-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

.anim-spin {
    animation: spin 0.8s linear infinite;
}

.anim-shimmer {
    animation: shimmer 2s linear infinite;
}

.anim-breathing {
    animation: breathing 3s ease-in-out infinite;
}

/* State trigger animations */
.anim-shake {
    animation: shake 0.6s ease;
}

.anim-success {
    animation: successCheck 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.anim-count-pop {
    animation: countPop 0.3s ease;
}

.anim-badge-appear {
    animation: badgeAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}


/* -----------------------------------------------------------
   6. HERO PARTICLES (Premium Gold Sparkles)
   ----------------------------------------------------------- */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Particle 1 */
.hero-particles::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.6), transparent);
    box-shadow:
        calc(10vw) calc(20vh) 0 0 rgba(255, 77, 109, 0.3),
        calc(25vw) calc(45vh) 0 1px rgba(232, 213, 163, 0.25),
        calc(70vw) calc(15vh) 0 0 rgba(255, 77, 109, 0.35),
        calc(85vw) calc(60vh) 0 1px rgba(232, 213, 163, 0.2),
        calc(40vw) calc(75vh) 0 0 rgba(255, 77, 109, 0.3),
        calc(55vw) calc(30vh) 0 1px rgba(232, 213, 163, 0.15);
    animation: particleFloat1 8s ease-in-out infinite;
    top: 0;
    left: 0;
}

/* Particle 2 — offset timing */
.hero-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 213, 163, 0.5), transparent);
    box-shadow:
        calc(15vw) calc(55vh) 0 0 rgba(255, 77, 109, 0.25),
        calc(35vw) calc(10vh) 0 1px rgba(232, 213, 163, 0.3),
        calc(60vw) calc(70vh) 0 0 rgba(255, 77, 109, 0.2),
        calc(80vw) calc(35vh) 0 0 rgba(232, 213, 163, 0.3),
        calc(45vw) calc(50vh) 0 1px rgba(255, 77, 109, 0.15),
        calc(92vw) calc(80vh) 0 0 rgba(232, 213, 163, 0.25);
    animation: particleFloat2 10s ease-in-out infinite;
    top: 0;
    left: 0;
}

@keyframes particleFloat1 {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-8px) translateX(-5px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) translateX(8px);
        opacity: 0.8;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-12px) translateX(-8px);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-18px) translateX(12px);
        opacity: 0.4;
    }
    80% {
        transform: translateY(-6px) translateX(-4px);
        opacity: 0.7;
    }
}


/* -----------------------------------------------------------
   7. TRANSITION CLASSES (Composable)
   ----------------------------------------------------------- */

/* Transition base for manual toggling */
.t-opacity {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-transform {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-all {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-fast {
    transition-duration: 0.2s;
}

.t-slow {
    transition-duration: 0.8s;
}


/* -----------------------------------------------------------
   8. CONFETTI PARTICLES (Vote Success Celebration)
   ----------------------------------------------------------- */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 8px;
    animation: confettiFall 3s ease-in forwards;
    opacity: 0.8;
}

.confetti-piece:nth-child(1) {
    left: 10%;
    background: var(--gold);
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.confetti-piece:nth-child(2) {
    left: 25%;
    background: var(--gold-light);
    animation-delay: 0.2s;
    animation-duration: 3s;
    width: 6px;
    height: 10px;
}

.confetti-piece:nth-child(3) {
    left: 40%;
    background: var(--gold);
    animation-delay: 0.4s;
    animation-duration: 2.8s;
}

.confetti-piece:nth-child(4) {
    left: 55%;
    background: var(--gold-light);
    animation-delay: 0.1s;
    animation-duration: 3.2s;
    width: 10px;
    height: 6px;
}

.confetti-piece:nth-child(5) {
    left: 70%;
    background: var(--gold);
    animation-delay: 0.3s;
    animation-duration: 2.6s;
}

.confetti-piece:nth-child(6) {
    left: 85%;
    background: var(--gold-light);
    animation-delay: 0.5s;
    animation-duration: 3.1s;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.confetti-piece:nth-child(7) {
    left: 15%;
    background: var(--gold-dark);
    animation-delay: 0.15s;
    animation-duration: 2.9s;
    width: 5px;
    height: 12px;
}

.confetti-piece:nth-child(8) {
    left: 60%;
    background: var(--gold);
    animation-delay: 0.35s;
    animation-duration: 2.7s;
    border-radius: 50%;
}

.confetti-piece:nth-child(9) {
    left: 35%;
    background: var(--gold-light);
    animation-delay: 0.25s;
    animation-duration: 3.3s;
    width: 4px;
    height: 8px;
}

.confetti-piece:nth-child(10) {
    left: 80%;
    background: var(--gold-dark);
    animation-delay: 0.45s;
    animation-duration: 2.4s;
}


/* -----------------------------------------------------------
   9. LOADING DOTS ANIMATION
   ----------------------------------------------------------- */
.loading-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: dotPulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}


/* -----------------------------------------------------------
   10. GRADIENT ANIMATED BORDER
   ----------------------------------------------------------- */
.gradient-border {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        var(--gold),
        transparent 40%,
        transparent 60%,
        var(--gold-light)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: gradientShift 6s ease infinite;
    background-size: 200% 200%;
}


/* -----------------------------------------------------------
   11. NOTIFICATION BADGE PING
   ----------------------------------------------------------- */
.ping {
    position: relative;
}

.ping::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: glowPulse 2s ease-in-out infinite;
}


/* -----------------------------------------------------------
   12. IMAGE REVEAL ANIMATION
   ----------------------------------------------------------- */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.img-reveal.revealed::after {
    transform: scaleX(0);
    transform-origin: right;
}


/* -----------------------------------------------------------
   13. NUMBER COUNTER ANIMATION
   ----------------------------------------------------------- */
.counter-animate {
    display: inline-block;
    transition: all 0.3s ease;
}

.counter-animate.updating {
    animation: countPop 0.3s ease;
}


/* -----------------------------------------------------------
   14. TOOLTIP ANIMATIONS
   ----------------------------------------------------------- */
.tooltip-animate {
    position: relative;
}

.tooltip-animate::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.tooltip-animate:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}


/* -----------------------------------------------------------
   15. FOCUS RING ANIMATION
   ----------------------------------------------------------- */
@keyframes focusRing {
    0% {
        outline-offset: 0px;
        outline-color: rgba(255, 77, 109, 0.5);
    }
    50% {
        outline-offset: 4px;
        outline-color: rgba(255, 77, 109, 0.8);
    }
    100% {
        outline-offset: 2px;
        outline-color: var(--gold);
    }
}

.focus-ring:focus-visible {
    animation: focusRing 0.3s ease forwards;
    outline: 2px solid var(--gold);
}


/* -----------------------------------------------------------
   16. CARD FLIP ANIMATION
   ----------------------------------------------------------- */
.card-flip {
    perspective: 1000px;
}

.card-flip-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
    backface-visibility: hidden;
}

.card-flip-back {
    transform: rotateY(180deg);
    position: absolute;
    inset: 0;
}


/* -----------------------------------------------------------
   17. AMBIENT BACKGROUND GLOW
   ----------------------------------------------------------- */
.ambient-glow {
    position: relative;
}

.ambient-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(255, 77, 109, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
    animation: breathing 4s ease-in-out infinite;
    z-index: 0;
}


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

    .scroll-animate,
    .scroll-animate-left,
    .scroll-animate-right,
    .scroll-animate-scale,
    .scroll-animate-fade {
        opacity: 1;
        transform: none;
    }

    .hero-particles::before,
    .hero-particles::after {
        animation: none;
        opacity: 0.3;
    }

    .hover-lift:hover,
    .hover-scale:hover,
    .hover-tilt:hover {
        transform: none;
    }

    .confetti-container {
        display: none;
    }

    body {
        animation: none;
    }
}
