/* =========================================================
   FILE: assets/css/animations.css
   PURPOSE: Keyframes, scroll reveal classes, animation utilities
   ========================================================= */

/* ===== KEYFRAMES ===== */

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: translate(-50%, -52%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -52%) scale(1.1); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes float-chip {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-phone {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-right-fade {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-left-fade {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoom-out {
    from {
        opacity: 0;
        transform: scale(1.15);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes navbar-drop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes counter-count {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes border-glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 168, 76, 0.2); }
    50% { box-shadow: 0 0 30px rgba(201, 168, 76, 0.5); }
}

@keyframes progress-fill {
    from { width: 0%; }
    to { width: var(--target-width); }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) translateX(var(--drift)) scale(1);
        opacity: 0;
    }
}

@keyframes glow-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(201, 168, 76, 0);
    }
}

/* ===== ANIMATION UTILITY CLASSES ===== */

/* Fade In */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
}

/* Slide Up */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Down */
.slide-down {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-down.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Left */
.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide Right */
.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom In */
.zoom-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Zoom Out */
.zoom-out {
    opacity: 0;
    transform: scale(1.15);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-out.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 500ms; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 600ms; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 700ms; }

.stagger-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOVER EFFECT CLASSES ===== */

/* Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Hover Glow */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3), 0 0 60px rgba(201, 168, 76, 0.1);
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Image Zoom (on parent hover) */
.image-zoom {
    overflow: hidden;
    border-radius: inherit;
}

.image-zoom img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-zoom:hover img {
    transform: scale(1.06);
}

/* Card Tilt — applied via JS */
.card-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease;
}

/* Counter Animate */
.counter-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.counter-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Gold Shimmer text effect */
.gold-shimmer {
    background: linear-gradient(
        90deg,
        #C9A84C 0%,
        #E4C76B 25%,
        #fff8e1 50%,
        #E4C76B 75%,
        #C9A84C 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Glow Ring pulse */
.glow-ring {
    animation: glow-ring 2s ease-in-out infinite;
}

/* Navbar load animation */
.navbar-aurex {
    animation: navbar-drop 0.6s ease 0.2s both;
}

/* Section entrance delay variants */
.delay-100 { animation-delay: 0.1s !important; transition-delay: 0.1s !important; }
.delay-200 { animation-delay: 0.2s !important; transition-delay: 0.2s !important; }
.delay-300 { animation-delay: 0.3s !important; transition-delay: 0.3s !important; }
.delay-400 { animation-delay: 0.4s !important; transition-delay: 0.4s !important; }
.delay-500 { animation-delay: 0.5s !important; transition-delay: 0.5s !important; }
.delay-600 { animation-delay: 0.6s !important; transition-delay: 0.6s !important; }

/* Spinning loader */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: rotate-spin 0.8s linear infinite;
    display: inline-block;
}

/* Page transition */
.page-transition {
    animation: fade-in 0.4s ease forwards;
}

/* Floating orb background animation */
.float-anim {
    animation: float-slow 8s ease-in-out infinite;
}

.float-anim--fast {
    animation: float-slow 5s ease-in-out infinite;
}

.float-anim--slow {
    animation: float-slow 12s ease-in-out infinite;
}

/* AOS-like custom attributes handled by animations.js */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="fade"] {
    opacity: 0;
}

[data-reveal="slide-up"] {
    transform: translateY(40px);
}

[data-reveal="slide-left"] {
    transform: translateX(-60px);
}

[data-reveal="slide-right"] {
    transform: translateX(60px);
}

[data-reveal="zoom"] {
    transform: scale(0.85);
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}
