/* ================================================
   Guangzhou Geluming Trading Co., Ltd - Animations
   Premium Scroll Animations & Effects
   ================================================ */

/* ===================== SCROLL ANIMATIONS ===================== */
[data-animate] {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Up */
[data-animate="fade-up"] {
    transform: translateY(60px);
}

[data-animate="fade-up"].animated {
    transform: translateY(0);
}

/* Fade In Down */
[data-animate="fade-down"] {
    transform: translateY(-60px);
}

[data-animate="fade-down"].animated {
    transform: translateY(0);
}

/* Fade In Left */
[data-animate="fade-left"] {
    transform: translateX(-80px);
}

[data-animate="fade-left"].animated {
    transform: translateX(0);
}

/* Fade In Right */
[data-animate="fade-right"] {
    transform: translateX(80px);
}

[data-animate="fade-right"].animated {
    transform: translateX(0);
}

/* Scale In */
[data-animate="scale-in"] {
    transform: scale(0.8);
}

[data-animate="scale-in"].animated {
    transform: scale(1);
}

/* Rotate In */
[data-animate="rotate-in"] {
    transform: rotate(-10deg) scale(0.9);
}

[data-animate="rotate-in"].animated {
    transform: rotate(0) scale(1);
}

/* Stagger Animation Delays */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }
[data-delay="700"] { transition-delay: 700ms; }
[data-delay="800"] { transition-delay: 800ms; }
[data-delay="900"] { transition-delay: 900ms; }
[data-delay="1000"] { transition-delay: 1000ms; }

/* ===================== HOVER EFFECTS ===================== */
/* Glow Effect */
.hover-glow {
    transition: all 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 50px rgba(233, 69, 96, 0.5);
}

/* Scale Effect */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Lift Effect */
.hover-lift {
    transition: all 0.4s ease;
}

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

/* Slide Effects */
.hover-slide-left:hover {
    transform: translateX(-10px);
}

.hover-slide-right:hover {
    transform: translateX(10px);
}

/* Border Animation */
.border-animate {
    position: relative;
    overflow: hidden;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: all 0.4s ease;
}

.border-animate:hover::before {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

/* ===================== PARALLAX EFFECTS ===================== */
.parallax-container {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}

.parallax-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.parallax-layer-back {
    transform: translateZ(-1px) scale(2);
}

.parallax-layer-deep {
    transform: translateZ(-2px) scale(3);
}

/* ===================== TEXT EFFECTS ===================== */
/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 1s ease forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 4s steps(40) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Gradient Text Animation */
.gradient-animate {
    background: linear-gradient(90deg, var(--gold-color), var(--gold-light), var(--gold-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================== SHAPE ANIMATIONS ===================== */
/* Rotating Shape */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate {
    animation: rotate 20s linear infinite;
}

.rotate-slow {
    animation: rotate 40s linear infinite;
}

.rotate-reverse {
    animation: rotate 20s linear infinite reverse;
}

/* Pulse Shape */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

/* Ping Effect */
@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

.ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* ===================== LINE ANIMATIONS ===================== */
/* Line Draw Animation */
.line-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Line Grow */
.line-grow {
    transform: scaleX(0);
    transform-origin: left;
}

.line-grow.animated {
    animation: lineGrow 1s ease forwards;
}

@keyframes lineGrow {
    to { transform: scaleX(1); }
}

/* ===================== BACKGROUND EFFECTS ===================== */
/* Gradient Shift */
@keyframes gradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

/* ===================== COUNTER ANIMATION ===================== */
.counter {
    display: inline-block;
}

.counter-value {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

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

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

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

/* ===================== MORPHING SHAPES ===================== */
@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

.morph {
    animation: morph 8s ease-in-out infinite;
}

/* ===================== WAVE ANIMATION ===================== */
@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wave {
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }

/* ===================== MARQUEE ===================== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* ===================== IMAGE EFFECTS ===================== */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.6s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Grayscale to Color */
.img-colorize {
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.img-colorize:hover {
    filter: grayscale(0%);
}

/* ===================== LOADING STATES ===================== */
/* Skeleton Loading */
@keyframes skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

/* ===================== SPECIAL EFFECTS ===================== */
/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Glow */
.neon-glow {
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
}

/* Blur on Hover */
.blur-hover {
    transition: filter 0.4s ease;
}

.blur-hover:hover {
    filter: blur(5px);
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
