/* ==========================================
   ANIMATED ICONS & EFFECTS
   Inspired by modern UI libraries
   ========================================== */

/* Animated Icon Containers */
.animated-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.animated-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Step Icon - Simplified */
.step-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--color-1) 0%, var(--color-3) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(200, 182, 255, 0.4);
    transition: transform 0.3s ease;
}

.step-icon-modern:hover {
    transform: translateY(-2px);
}

/* Float animation removed for performance */

/* Feature Card Icon with 3D Effect */
.feature-icon-3d {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-3d {
    transform: scale(1.05);
}

/* Emoji Replacement with Gradient Icons */
.modern-emoji {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--color-1), var(--color-3));
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.3);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.modern-emoji::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Glowing Button Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Stat Number Animation */
.stat-number-animated {
    position: relative;
    display: inline-block;
}

.stat-number-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.stat:hover .stat-number-animated::after {
    transform: scaleX(1);
}

/* Tag with Hover Effect */
.tag-modern {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(200, 182, 255, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #4a4a68;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tag-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-main);
    transition: width 0.3s ease;
    z-index: -1;
}

.tag-modern:hover {
    color: #1a1a2e;
    border-color: transparent;
}

.tag-modern:hover::before {
    width: 100%;
}

/* Checkbox Modern Style */
.checkbox-modern {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid rgba(200, 182, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-modern:checked {
    background: var(--gradient-main);
    border-color: transparent;
}

.checkbox-modern:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 14px;
}

/* Loading Spinner */
.spinner-modern {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar Modern */
.progress-bar-modern {
    height: 6px;
    background: rgba(200, 182, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    position: relative;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Badge with Notification Dot */
.badge-modern {
    position: relative;
    padding: 8px 16px;
    background: var(--gradient-main);
    color: #1a1a2e;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-modern::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Tooltip Modern */
.tooltip-modern {
    position: relative;
    cursor: help;
}

.tooltip-modern::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: #1a1a2e;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip-modern:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Card Hover Lift Effect */
.card-lift {
    transition: all 0.3s ease;
    position: relative;
}

.card-lift:hover {
    transform: translateY(-4px);
}

/* Gradient Border Animation */
.gradient-border {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(45deg, var(--color-1), var(--color-2), var(--color-3), var(--color-4), var(--color-5));
    background-size: 300% 300%;
    z-index: -1;
    animation: gradient-rotate 4s ease infinite;
}

@keyframes gradient-rotate {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Icon with Bounce Animation */
.icon-bounce {
    animation: bounce-icon 2s ease infinite;
}

/* Bounce animation removed for performance */

/* Text Gradient Animation */
.text-gradient-animated {
    background: linear-gradient(90deg, var(--color-1), var(--color-3), var(--color-5), var(--color-3), var(--color-1));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(200, 182, 255, 0.1) 25%, rgba(200, 182, 255, 0.2) 50%, rgba(200, 182, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Ripple Effect on Click */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

