/* ========================================
   ENHANCED CUSTOM SCROLLBAR
   ======================================== */

/* Custom Scrollbar for entire page */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--neon-cyan) 100%);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Portfolio Item Enhancements */
.portfolio-item {
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item:hover::before {
    opacity: 0.1;
}

.portfolio-img {
    position: relative;
    z-index: 2;
}

.portfolio-info {
    position: relative;
    z-index: 2;
}

/* Enhanced Input Fields */
.proposal-form input:focus,
.proposal-form textarea:focus,
.search-container input:focus,
.chat-input input:focus {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    transform: translateY(-1px);
}

/* Message Bubbles Enhancement */
.message.sent {
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.3);
}

.message.received {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Send Button Enhancement */
.send-btn {
    background: var(--accent-gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

/* Progress Bar Enhancement */
.fill {
    background: var(--success-gradient);
    box-shadow: 0 0 10px rgba(67, 233, 123, 0.5);
    position: relative;
    overflow: hidden;
}

.fill::after {
    content: '';
    position: absolute;
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
    will-change: transform;
}

@keyframes shimmer {
    100% {
        transform: translateX(200%);
        /* Move across and beyond */
    }
}

/* View Profile Button Enhancement */
.view-profile-btn {
    transition: all 0.3s ease;
    position: relative;
}

.view-profile-btn::after {
    content: '→';
    margin-left: 5px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.view-profile-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.view-profile-btn:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Back Link Enhancement */
.back-link {
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.back-link ion-icon {
    transition: transform 0.3s ease;
}

.back-link:hover ion-icon {
    transform: translateX(-3px);
}

/* Price Tag Enhancement */
.price-tag {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(67, 233, 123, 0.3);
}

/* Verified Badge Enhancement */
.verified-badge ion-icon {
    filter: drop-shadow(0 0 5px var(--success-color));
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Category List Enhancement */
.category-list li.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
}

.category-list li:hover {
    transform: translateX(5px);
}

/* Chat Item Enhancement */
.chat-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, transparent 100%);
    border-left: 3px solid var(--accent-color);
}

/* Notification Dot Enhancement */
.notif .dot {
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #ff0000;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Step Number Enhancement */
.step.active .step-num {
    background: var(--accent-gradient);
    box-shadow: 0 0 15px var(--accent-color);
    animation: stepGlow 2s ease-in-out infinite;
}

@keyframes stepGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Replaced expensive box-shadow animation with opacity */

/* Add ripple effect utility class */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating Animation for special elements */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Apply floating to some elements */
.big-avatar {
    animation: floating 3s ease-in-out infinite;
}

/* Enhanced online status */
.online-status {
    box-shadow: 0 0 10px var(--success-color);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 10px var(--success-color);
    }

    50% {
        box-shadow: 0 0 20px var(--success-color), 0 0 30px var(--success-color);
    }
}