/* ==========================================
   ADVANCED UNIQUE FEATURES STYLES
   ========================================== */

/* Cursor Trail Dots */
.cursor-trail-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #aa64ff, #64c8ff);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 0 10px rgba(170, 100, 255, 0.6);
}

/* Click Ripple Effect */
.click-ripple {
    position: fixed;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(170, 100, 255, 0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    animation: rippleExpand 0.8s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        margin-left: 0;
        margin-top: 0;
        opacity: 1;
    }

    100% {
        width: 200px;
        height: 200px;
        margin-left: -100px;
        margin-top: -100px;
        opacity: 0;
    }
}

/* Mouse Glow Effect */
.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    background: radial-gradient(circle, rgba(170, 100, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: left 0.1s ease, top 0.1s ease;
    mix-blend-mode: screen;
}

/* Copy Button */
.copy-btn {
    background: transparent;
    border: 1px solid rgba(170, 100, 255, 0.3);
    color: var(--color-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(170, 100, 255, 0.3);
}

/* Download CV Button */
.download-cv-btn {
    box-shadow: 0 4px 20px rgba(170, 100, 255, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(170, 100, 255, 0.4);
    }

    50% {
        box-shadow: 0 6px 30px rgba(170, 100, 255, 0.6);
    }
}

/* Project Filters */
.project-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(170, 100, 255, 0.5);
    color: var(--color-text);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(170, 100, 255, 0.4);
}

/* Reading Progress Indicator */
.reading-progress-indicator {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 998;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.reading-progress-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(100, 200, 255, 0.4);
}

/* Visitor Counter */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Share Button */
.share-page-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-page-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px) rotate(15deg);
    box-shadow: 0 4px 20px rgba(170, 100, 255, 0.4);
}

/* Heart Animation */
.heart-animation {
    position: fixed;
    font-size: 3rem;
    pointer-events: none;
    z-index: 9999;
    animation: heartFloat 1s ease-out forwards;
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

@media (max-width: 768px) {

    .cursor-trail-dot,
    .mouse-glow {
        display: none;
    }

    .sound-toggle {
        top: 70px;
        width: 45px;
        height: 45px;
    }
}