/* Modal Styles for Portfolio App */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    max-width: 50rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--text-color);
    font-size: 2.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--main-color);
    color: white;
}

.modal-body {
    padding: 3rem;
}

.modal-body p {
    color: var(--text-color);
    font-size: 1.6rem;
    margin-bottom: 3rem;
    text-align: center;
}

.modal-options {
    display: grid;
    gap: 1.5rem;
}

.modal-option {
    background: var(--second-bg-color);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.modal-option:hover {
    border-color: var(--main-color);
    background: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(255, 0, 0, 0.3);
}

.modal-option i {
    font-size: 3rem;
    color: var(--main-color);
    transition: color 0.3s ease;
}

.modal-option:hover i {
    color: white;
}

.modal-option span {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-option:hover span {
    color: white;
}

.modal-option small {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 0.5rem;
}

/* Animation classes */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2rem;
    }
    
    .modal-header {
        padding: 1.5rem 2rem;
    }
    
    .modal-header h3 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 2rem;
    }
    
    .modal-options {
        gap: 1rem;
    }
    
    .modal-option {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .modal-option i {
        font-size: 2.5rem;
    }
    
    .modal-option span {
        font-size: 1.6rem;
    }
}

@media (max-width: 462px) {
    .modal-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-option span {
        font-size: 1.4rem;
    }
}