/* Project Rotation Styles */

/* Rotation badge for featured projects */
.rotation-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: badgePulse 2s ease-in-out infinite;
}

.rotation-badge i {
    margin-right: 5px;
    animation: rotate 2s linear infinite;
}

/* Pulse animation for the badge */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
}

/* Rotation icon animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced experience card for rotated projects */
.experience-card[data-rotated="true"] {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
    position: relative;
    overflow: hidden;
}

.experience-card[data-rotated="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(102, 126, 234, 0.1), 
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

/* Shimmer effect for rotated cards */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Project rotated animation class */
.project-rotated {
    animation: projectRotateIn 0.6s ease-out;
}

@keyframes projectRotateIn {
    0% {
        transform: scale(0.8) rotateY(-10deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.02) rotateY(5deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

/* Enhanced hover effects for rotated projects */
.experience-card[data-rotated="true"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.experience-card[data-rotated="true"]:hover .rotation-badge {
    transform: scale(1.1);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive adjustments for rotation badge */
@media (max-width: 768px) {
    .rotation-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Dark mode support for rotation elements */
@media (prefers-color-scheme: dark) {
    .experience-card[data-rotated="true"] {
        background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
                    linear-gradient(135deg, #667eea, #764ba2) border-box;
    }
    
    .rotation-badge {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    }
}

/* Loading state for project rotation */
.experience-card.rotating {
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.experience-card.rotating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
