/* Modal Project Display Animation CSS */

.modal-project-display {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    margin-bottom: 1rem;
}

.modal-project-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color)
    );
    animation: rotate 15s linear infinite;
    opacity: 0.7;
    z-index: 1;
}

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

.modal-project-content {
    position: relative;
    z-index: 3;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-light);
}

.modal-project-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.modal-project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.modal-project-subtitle {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

/* Tech stack pills for modal */
.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-tech-pill {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    transition: all 0.3s ease;
}

.modal-tech-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    background: rgba(0, 217, 255, 0.3);
}

/* Floating elements */
.floating-element {
    position: absolute;
    z-index: 2;
    opacity: 0.6;
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

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

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

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

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

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

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

/* Glowing effect */
.modal-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: 2;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-project-display {
        height: 250px;
    }
    
    .modal-project-icon {
        font-size: 2.5rem;
    }
    
    .modal-project-title {
        font-size: 1.3rem;
    }
}
