/* Game Demo Styles */
.game-demo .game-screen {
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.game-demo .game-player {
    width: 30px;
    height: 30px;
    background: #00ffff;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    left: 20px;
    animation: playerMove 3s ease-in-out infinite;
}

.game-demo .game-enemies {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.game-demo .enemy {
    width: 20px;
    height: 20px;
    background: #ff0080;
    border-radius: 3px;
    animation: enemyFloat 2s ease-in-out infinite alternate;
}

.game-demo .enemy:nth-child(2) {
    animation-delay: 1s;
}

/* YouTube Demo Styles */
.youtube-demo .video-player {
    height: 120px;
    background: #000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.play-button {
    width: 40px;
    height: 40px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    animation: pulse 2s infinite;
}

.video-info {
    padding: 0 10px;
}

.video-title {
    height: 15px;
    background: #00ffff;
    border-radius: 3px;
    margin-bottom: 5px;
}

.video-stats {
    height: 10px;
    background: #666;
    border-radius: 3px;
    width: 60%;
}

/* Course Demo Styles */
.course-demo .course-header {
    background: linear-gradient(135deg, #ff0080, #cc0066);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.3);
}

.course-title {
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.course-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 8px;
}

.lesson {
    height: 28px;
    background: linear-gradient(135deg, #00ffff, #0099cc);
    border-radius: 6px;
    animation: lessonGlow 3s ease-in-out infinite alternate;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.lesson::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.lesson::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.lesson:nth-child(2) { animation-delay: 1s; }
.lesson:nth-child(3) { animation-delay: 2s; }

/* Project Links */
.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #00ffff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Animations */
@keyframes playerMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes enemyFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes lessonGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Graphics Demo Styles */
.graphics-demo .graphics-header {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
}

.graphics-title {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.graphics-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
}

.design-item {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff3366, #ff9933);
    border-radius: 8px;
    animation: rotatePulse 4s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    transform-origin: center;
}

.design-item:nth-child(2) { 
    animation-delay: 1s; 
    background: linear-gradient(135deg, #00ffff, #0066ff); 
    border-radius: 50%;
}
.design-item:nth-child(3) { 
    animation-delay: 2s; 
    background: linear-gradient(135deg, #cc00ff, #6600ff); 
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

@keyframes rotatePulse {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.8; }
}