/* Project Display Animation CSS */

.project-display {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--gradient-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
}

.project-display:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-glow);
}

.project-display::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: var(--gradient-primary);
    animation: rotate 15s linear infinite;
    opacity: 0.3;
}

.project-display::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--dark-color);
    border-radius: calc(var(--border-radius-md) - 3px);
    z-index: 1;
}

.project-name {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 0 10px rgba(10, 132, 255, 0.8);
}

.project-name span {
    display: inline-block;
}

/* Project type badges */
.project-type {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: rgba(10, 132, 255, 0.2);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Project icon */
.project-icon {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.8;
}

/* Animation for text reveal */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.char {
    animation: textReveal 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: calc(0.04s * var(--char-index));
    opacity: 0;
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 8s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100%) translateX(20px);
        opacity: 0;
    }
}

/* Project-specific styles */
.project-pet-adoption {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.project-gail-app {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.project-chatapp {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.project-restaurant {
    background: linear-gradient(135deg, #F44336, #C62828);
}

.project-calculator {
    background: linear-gradient(135deg, #9C27B0, #6A1B9A);
}

.project-entertainment {
    background: linear-gradient(135deg, #673AB7, #4527A0);
}

/* Glowing effect */
.glow {
    position: absolute;
    width: 40%;
    height: 40%;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.15;
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-display {
        height: 180px;
    }
    
    .project-name {
        font-size: 1.2rem;
    }
}
