/* ============================================
   DIAMOND DESK — SCROLL ANIMATIONS
   ============================================ */

/* ---- BASE REVEAL STATES ---- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s var(--ease-out);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

/* ---- ACTIVE STATES ---- */
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---- DELAY CLASSES ---- */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ---- SPARKLE EFFECT ---- */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    pointer-events: none;
}

/* ---- PAGE TRANSITION ---- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 9999;
    pointer-events: none;
    animation: pageLoad 0.8s var(--ease-out) forwards;
}

@keyframes pageLoad {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---- LOGO SHIMMER ---- */
@keyframes logoShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.logo-accent {
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        var(--color-accent-light) 40%,
        #e8d5a8 50%,
        var(--color-accent-light) 60%,
        var(--color-accent) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s linear infinite;
}

/* ---- STAT COUNTER ANIMATION ---- */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number.active {
    animation: countUp 0.6s var(--ease-out) forwards;
}

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

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

/* ---- DIAMOND ROTATE ---- */
@keyframes diamondRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- PULSE GLOW ---- */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 110, 0.1); }
    50% { box-shadow: 0 0 40px rgba(201, 169, 110, 0.25); }
}

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

.marquee-track {
    display: flex;
    gap: 80px;
    animation: marquee 30s linear infinite;
}

/* ---- SMOOTH UNDERLINE ---- */
.smooth-underline {
    position: relative;
    display: inline;
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-position: 0 100%;
    background-size: 0% 1px;
    background-repeat: no-repeat;
    transition: background-size 0.4s var(--ease-out);
}

.smooth-underline:hover {
    background-size: 100% 1px;
}

/* ---- CURSOR DOT (optional) ---- */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ---- LOADING SCREEN ---- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-diamond {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    transform: rotate(45deg);
    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: rotate(45deg) scale(1); opacity: 1; }
    50% { transform: rotate(45deg) scale(1.2); opacity: 0.5; }
}
